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;
34 typedef struct __pthread_internal_slist {
38 struct __pthread_mutex_s {
50 pthread_barrierattr_t;
55 typedef struct xine_stream_s xine_stream_t;
59 int xine_get_pos_length (xine_stream_t *stream, int *pos_stream, int *pos_time, int *length_time);
65 xine_dropped_frames_t;
67 XINE_TVSYSTEM_PAL = 0, XINE_TVSYSTEM_NTSC }
71 void xine_usec_sleep(unsigned usec);
73 class KXineWidget : public QWidget, private QThread {
74 QTime getLengthInfo();
75 static QTime msToTime(int msec);
76 xine_stream_t* m_xineStream;
78 QTime KXineWidget::getLengthInfo() {
79 int pos, time, length;
81 while(((ret = xine_get_pos_length(m_xineStream, &pos, &time, &length)) == 0) && (++t < 5)) xine_usec_sleep(100000);
82 if ( (ret != 0) && (length > 0) ) {
83 return msToTime(length);
86 QTime KXineWidget::msToTime(int msec) {