Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h index 38938a1..75b9f12 100644 --- a/noncore/multimedia/opieplayer2/lib.h +++ b/noncore/multimedia/opieplayer2/lib.h | |||
@@ -41,6 +41,8 @@ | |||
41 | #include <xine.h> | 41 | #include <xine.h> |
42 | //#include "xine.h" | 42 | //#include "xine.h" |
43 | 43 | ||
44 | #include "threadutil.h" | ||
45 | |||
44 | class XineVideoWidget; | 46 | class XineVideoWidget; |
45 | 47 | ||
46 | namespace XINE { | 48 | namespace XINE { |
@@ -53,7 +55,7 @@ namespace XINE { | |||
53 | * stooping, seeking. | 55 | * stooping, seeking. |
54 | */ | 56 | */ |
55 | class Frame; | 57 | class Frame; |
56 | class Lib : public QObject { | 58 | class Lib : public ThreadUtil::Channel { |
57 | Q_OBJECT | 59 | Q_OBJECT |
58 | public: | 60 | public: |
59 | Lib(XineVideoWidget* = 0); | 61 | Lib(XineVideoWidget* = 0); |
@@ -176,6 +178,9 @@ namespace XINE { | |||
176 | 178 | ||
177 | void stopped(); | 179 | void stopped(); |
178 | 180 | ||
181 | protected: | ||
182 | virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType ); | ||
183 | |||
179 | private: | 184 | private: |
180 | int m_bytes_per_pixel; | 185 | int m_bytes_per_pixel; |
181 | int m_length, m_pos, m_time; | 186 | int m_length, m_pos, m_time; |
@@ -190,6 +195,7 @@ namespace XINE { | |||
190 | xine_event_queue_t *m_queue; | 195 | xine_event_queue_t *m_queue; |
191 | 196 | ||
192 | void handleXineEvent( const xine_event_t* t ); | 197 | void handleXineEvent( const xine_event_t* t ); |
198 | void handleXineEvent( int type ); | ||
193 | void drawFrame( uint8_t* frame, int width, int height, int bytes ); | 199 | void drawFrame( uint8_t* frame, int width, int height, int bytes ); |
194 | // C -> C++ bridge for the event system | 200 | // C -> C++ bridge for the event system |
195 | static void xine_event_handler( void* user_data, const xine_event_t* t); | 201 | static void xine_event_handler( void* user_data, const xine_event_t* t); |