From 43ebe08628369c245da597555909025942f4ac0c Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 13 Dec 2002 22:12:49 +0000 Subject: - added a second constructor that takes a XINE::Lib object (and takes ownership of it) --- (limited to 'noncore/multimedia/opieplayer2/xinecontrol.h') 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 @@ -45,6 +45,11 @@ public: XineControl( XineVideoWidget *xineWidget, MediaPlayerState &_mediaPlayerState, QObject *parent = 0, const char *name =0 ); + // note that this constructor takes over ownership of the passed + // XINE::Lib object. + XineControl( XINE::Lib *xine, XineVideoWidget *xineWidget, + MediaPlayerState &_mediaPlayerState, + QObject *parent = 0, const char *name =0 ); ~XineControl(); bool hasVideo() const { return hasVideoChannel; } @@ -101,6 +106,8 @@ public slots: void setGamma( int ); private: + void init(); + XINE::Lib *libXine; long m_currentTime; long m_position; -- cgit v0.9.0.2