struct timeval { union { } __value; } _G_fpos_t; typedef struct xine_stream_s xine_stream_t; typedef struct { } xine_post_api_t; int xine_get_pos_length(xine_stream_t * stream, int *pos_stream, int *pos_time, int *length_time); class QTime { public: QTime addMSecs(); unsigned int ds; }; class KXineWidget { QTime getLengthInfo(); QTime msToTime(); xine_stream_t *m_xineStream; }; QTime KXineWidget::getLengthInfo() { int pos, time, length; bool ok = xine_get_pos_length(m_xineStream, &pos, &time, &length); if ((ok) && (length > 0)) { return msToTime(); } } QTime KXineWidget::msToTime() { QTime t; t = t.addMSecs(); return t; }