author | simon <simon> | 2002-12-13 22:12:49 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-13 22:12:49 (UTC) |
commit | 43ebe08628369c245da597555909025942f4ac0c (patch) (unidiff) | |
tree | 4b5a25d48afc481de153a2b0103964b03142e43b | |
parent | de449c83cf37a64a9d2df586f6d1acecf3bc0c6e (diff) | |
download | opie-43ebe08628369c245da597555909025942f4ac0c.zip opie-43ebe08628369c245da597555909025942f4ac0c.tar.gz opie-43ebe08628369c245da597555909025942f4ac0c.tar.bz2 |
- added a second constructor that takes a XINE::Lib object (and takes
ownership of it)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 13 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.h | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index ee2cd83..efa9934 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -49,4 +49,17 @@ XineControl::XineControl( XineVideoWidget *xineWidget, | |||
49 | libXine = new XINE::Lib( xineWidget ); | 49 | libXine = new XINE::Lib( xineWidget ); |
50 | 50 | ||
51 | init(); | ||
52 | } | ||
53 | |||
54 | XineControl::XineControl( XINE::Lib *xine, XineVideoWidget *xineWidget, | ||
55 | MediaPlayerState &_mediaPlayerState, | ||
56 | QObject *parent, const char *name ) | ||
57 | : QObject( parent, name ), libXine( xine ), mediaPlayerState( _mediaPlayerState ), xineVideoWidget( xineWidget ) | ||
58 | { | ||
59 | init(); | ||
60 | } | ||
61 | |||
62 | void XineControl::init() | ||
63 | { | ||
51 | connect( &mediaPlayerState, SIGNAL( pausedToggled( bool ) ), this, SLOT( pause( bool ) ) ); | 64 | connect( &mediaPlayerState, SIGNAL( pausedToggled( bool ) ), this, SLOT( pause( bool ) ) ); |
52 | connect( this, SIGNAL( positionChanged( long ) ), &mediaPlayerState, SLOT( updatePosition( long ) ) ); | 65 | connect( this, SIGNAL( positionChanged( long ) ), &mediaPlayerState, SLOT( updatePosition( long ) ) ); |
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h index fdc5d2b..0e985d6 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.h +++ b/noncore/multimedia/opieplayer2/xinecontrol.h | |||
@@ -46,4 +46,9 @@ public: | |||
46 | MediaPlayerState &_mediaPlayerState, | 46 | MediaPlayerState &_mediaPlayerState, |
47 | QObject *parent = 0, const char *name =0 ); | 47 | QObject *parent = 0, const char *name =0 ); |
48 | // note that this constructor takes over ownership of the passed | ||
49 | // XINE::Lib object. | ||
50 | XineControl( XINE::Lib *xine, XineVideoWidget *xineWidget, | ||
51 | MediaPlayerState &_mediaPlayerState, | ||
52 | QObject *parent = 0, const char *name =0 ); | ||
48 | ~XineControl(); | 53 | ~XineControl(); |
49 | 54 | ||
@@ -102,4 +107,6 @@ public slots: | |||
102 | 107 | ||
103 | private: | 108 | private: |
109 | void init(); | ||
110 | |||
104 | XINE::Lib *libXine; | 111 | XINE::Lib *libXine; |
105 | long m_currentTime; | 112 | long m_currentTime; |