1 struct __attribute__((visibility("default"))) QShared {
2 typedef struct __locale_struct {
6 class __attribute__((visibility("default"))) Qt {
9 __extension__ typedef struct {
13 class __attribute__((visibility("default"))) QObject: public Qt {
15 class __attribute__((visibility("default"))) QPaintDevice {
17 class __attribute__((visibility("default"))) QWidget : public QObject, public QPaintDevice {
19 class __attribute__((visibility("default"))) QThread : public Qt {
21 class __attribute__((visibility("default"))) QTime {
24 QTime addMSecs( int ms ) const;
33 typedef struct __pthread_internal_slist {
37 struct __pthread_mutex_s {
49 pthread_barrierattr_t;
54 typedef struct xine_stream_s xine_stream_t;
58 int xine_get_pos_length (xine_stream_t *stream, int *pos_stream, int *pos_time, int *length_time);
64 xine_dropped_frames_t;
66 XINE_TVSYSTEM_PAL = 0, XINE_TVSYSTEM_NTSC }
70 void xine_usec_sleep(unsigned usec);
72 class KXineWidget : public QWidget, private QThread {
73 QTime getLengthInfo();
74 static QTime msToTime(int msec);
75 xine_stream_t* m_xineStream;
77 QTime KXineWidget::getLengthInfo() {
78 int pos, time, length;
80 while(((ret = xine_get_pos_length(m_xineStream, &pos, &time, &length)) == 0) && (++t < 5)) xine_usec_sleep(100000);
81 if ( (ret != 0) && (length > 0) ) {
82 return msToTime(length);
85 QTime KXineWidget::msToTime(int msec) {