2 struct __attribute__((visibility("default"))) QShared {
3 typedef struct __locale_struct {
7 class __attribute__((visibility("default"))) Qt {
10 __extension__ typedef struct {
14 class __attribute__((visibility("default"))) QObject: public Qt {
16 class __attribute__((visibility("default"))) QPaintDevice {
18 class __attribute__((visibility("default"))) QWidget : public QObject, public QPaintDevice {
20 class __attribute__((visibility("default"))) QThread : public Qt {
22 class __attribute__((visibility("default"))) QTime {
25 QTime addMSecs( int ms ) const;
43 __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) throw () {
48 typedef struct __pthread_internal_slist {
52 struct __pthread_mutex_s {
76 pthread_barrierattr_t;
81 typedef struct xine_stream_s xine_stream_t;
84 struct xine_post_in_s {
88 xine_post_api_descr_t;
92 int xine_get_pos_length (xine_stream_t *stream, int *pos_stream, int *pos_time, int *length_time);
99 struct xine_health_check_s {
101 struct xine_cfg_entry_s {
108 xine_format_change_data_t;
111 xine_progress_data_t;
114 xine_set_mpeg_data_t;
117 xine_dropped_frames_t;
119 XINE_TVSYSTEM_PAL = 0, XINE_TVSYSTEM_NTSC }
123 void xine_usec_sleep(unsigned usec);
125 class KXineWidget : public QWidget, private QThread {
126 QTime getLengthInfo();
127 static QTime msToTime(int msec);
128 xine_stream_t* m_xineStream;
130 QTime KXineWidget::getLengthInfo() {
131 int pos, time, length;
133 while(((ret = xine_get_pos_length(m_xineStream, &pos, &time, &length)) == 0) && (++t < 5)) xine_usec_sleep(100000);
134 if ( (ret != 0) && (length > 0) ) {
135 return msToTime(length);
138 QTime KXineWidget::msToTime(int msec) {
140 t = t.addMSecs(msec);