summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h
index 00486f2..24e966b 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.h
+++ b/noncore/multimedia/opieplayer2/xinecontrol.h
@@ -18,52 +18,54 @@
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of 19    : ..    .:,     . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; General Public License for more 22..}^=.=       =       ; General Public License for more
23++=   -.     .`     .: details. 23++=   -.     .`     .: details.
24 :     =  ...= . :.=- 24 :     =  ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU 25 -.   .:....=;==+<; You should have received a copy of the GNU
26  -_. . .   )=.  = General Public License along with 26  -_. . .   )=.  = General Public License along with
27    --        :-=` this library; see the file COPYING.LIB. 27    --        :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
31 31
32*/ 32*/
33 33
34#ifndef XINECONTROL_H 34#ifndef XINECONTROL_H
35#define XINECONTROL_H 35#define XINECONTROL_H
36 36
37#include "lib.h" 37#include "lib.h"
38#include <qobject.h> 38#include <qobject.h>
39 39
40#include "mediaplayerstate.h" 40#include "mediaplayerstate.h"
41 41
42class VideoWidget;
43
42class XineControl : public QObject { 44class XineControl : public QObject {
43 Q_OBJECT 45 Q_OBJECT
44public: 46public:
45 XineControl( MediaPlayerState &_mediaPlayerState, QObject *parent = 0, const char *name =0 ); 47 XineControl( VideoWidget *videoWidget, MediaPlayerState &_mediaPlayerState, QObject *parent = 0, const char *name =0 );
46 ~XineControl(); 48 ~XineControl();
47 49
48 bool hasVideo() const { return hasVideoChannel; } 50 bool hasVideo() const { return hasVideoChannel; }
49 bool hasAudio() const { return hasAudioChannel; } 51 bool hasAudio() const { return hasAudioChannel; }
50 52
51public slots: 53public slots:
52 void play( const QString& fileName ); 54 void play( const QString& fileName );
53 void stop( bool ); 55 void stop( bool );
54 56
55 /** 57 /**
56 * Pause the media stream 58 * Pause the media stream
57 * @param if pause or not 59 * @param if pause or not
58 */ 60 */
59 void pause( bool ); 61 void pause( bool );
60 62
61 /** 63 /**
62 * Set videos fullscreen 64 * Set videos fullscreen
63 * @param yes or no 65 * @param yes or no
64 */ 66 */
65 void setFullscreen( bool ); 67 void setFullscreen( bool );
66 68
67 /** 69 /**
68 * 70 *
69 */ 71 */
@@ -92,28 +94,30 @@ public slots:
92 94
93 void videoResized ( const QSize &s ); 95 void videoResized ( const QSize &s );
94 96
95 /** 97 /**
96 * Set the gamma value of the video output 98 * Set the gamma value of the video output
97 * @param int value between -100 and 100, 0 is original 99 * @param int value between -100 and 100, 0 is original
98 */ 100 */
99 void setGamma( int ); 101 void setGamma( int );
100 102
101 103
102private: 104private:
103 XINE::Lib *libXine; 105 XINE::Lib *libXine;
104 long m_currentTime; 106 long m_currentTime;
105 long m_position; 107 long m_position;
106 int m_length; 108 int m_length;
107 QString m_fileName; 109 QString m_fileName;
108 bool disabledSuspendScreenSaver : 1; 110 bool disabledSuspendScreenSaver : 1;
109 bool hasVideoChannel : 1; 111 bool hasVideoChannel : 1;
110 bool hasAudioChannel : 1; 112 bool hasAudioChannel : 1;
111 MediaPlayerState &mediaPlayerState; 113 MediaPlayerState &mediaPlayerState;
112 114
113signals: 115signals:
114 void positionChanged( long ); 116 void positionChanged( long );
115 117
118private:
119 VideoWidget *videoUI;
116}; 120};
117 121
118 122
119#endif 123#endif