initial import
[ICEs.git] / 137376 / ice.ii.5
1 struct timeval {
2 union {
3 }
4 __value;
5 }
6 _G_fpos_t;
7 typedef struct xine_stream_s xine_stream_t;
8 typedef struct {
9 }
10 xine_post_api_t;
11 int xine_get_pos_length(xine_stream_t * stream, int *pos_stream, int *pos_time, int *length_time);
12 class QTime {
13 public: QTime addMSecs();
14 unsigned int ds;
15 };
16 class KXineWidget {
17 QTime getLengthInfo();
18 QTime msToTime();
19 xine_stream_t *m_xineStream;
20 };
21 QTime KXineWidget::getLengthInfo() {
22 int pos, time, length;
23 bool ok = xine_get_pos_length(m_xineStream, &pos, &time, &length);
24 if ((ok) && (length > 0)) {
25 return msToTime();
26 }
27 }
28 QTime KXineWidget::msToTime() {
29 QTime t;
30 t = t.addMSecs();
31 return t;
32 }