~ubuntu-branches/ubuntu/karmic/kaffeine/karmic

« back to all changes in this revision

Viewing changes to kaffeine/src/player-parts/xine-part/kxinewidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2008-01-22 13:50:29 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080122135029-zc52zvfzp99m6brl
Tags: 0.8.6-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
#include <qtimer.h>
50
50
#include <qptrlist.h>
 
51
#include <qthread.h>
51
52
#include <X11/Xlib.h>
52
53
#include <xine.h>
53
54
 
 
55
 
54
56
#ifndef USE_QT_ONLY
55
57
#include "postfilter.h"
56
58
#else
70
72
#define OSD_MESSAGE_LOW_PRIORITY    1
71
73
#define OSD_MESSAGE_NORMAL_PRIORITY 2
72
74
 
73
 
class KXineWidget : public QWidget
 
75
class KXineWidget : public QWidget, public QThread
74
76
{
75
77
 
76
78
        Q_OBJECT
228
230
        void slotSetFileSubtitles(QString);
229
231
        void slotStartSeeking();
230
232
        void slotSeekToPosition(int pos);
 
233
        void slotSeekToPositionBlocking(int pos);
231
234
        void slotSeekToTime(const QTime&);
232
235
        void slotStopSeeking();
233
236
        void slotEnableVideoFilters(bool enable);
310
313
        void mouseDoubleClickEvent(QMouseEvent*);
311
314
        void wheelEvent(QWheelEvent*);
312
315
        void initOSD();
 
316
        virtual void run();
313
317
 
314
318
private:
315
319
#ifndef HAVE_XCB
332
336
        static void showOSDMessagesChangedCallback(void* p, xine_cfg_entry_t* entry);
333
337
        static void sizeForOSDMessagesChangedCallback(void* p, xine_cfg_entry_t* entry);
334
338
        static void fontForOSDMessagesChangedCallback(void* p, xine_cfg_entry_t* entry);
 
339
        static void monitorXResChangedCallback(void* p, xine_cfg_entry_t* entry);
 
340
        static void monitorYResChangedCallback(void* p, xine_cfg_entry_t* entry);
335
341
 
336
342
        static void xineEventListener(void* p, const xine_event_t*);
337
343
 
360
366
protected:
361
367
        QStringList m_queue;
362
368
 
 
369
        int seekThreadPos;
 
370
        int seekThreadTime;
 
371
        bool seekThreadPause;
363
372
        bool m_startXineManual;
364
373
        bool m_xineReady;
365
374
        QString m_logoFile;
402
411
        char** m_osdSizeOptions;
403
412
        char* m_osdSizeInfo;
404
413
        char* m_osdFontInfo;
 
414
        double monitorXRes, monitorYRes;
 
415
        char *xResInfo;
 
416
        char *yResInfo;
405
417
 
406
418
#ifndef USE_QT_ONLY
407
419
        /*postfilter*/