summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
index dfddc2a..ab432a0 100644
--- a/noncore/multimedia/opieplayer2/lib.h
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -10,67 +10,66 @@
10 _;:,     .>    :=|. This program is free software; you can 10 _;:,     .>    :=|. This program is free software; you can
11.> <`_,   >  .   <= redistribute it and/or modify it under 11.> <`_,   >  .   <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public 12:`=1 )Y*s>-.--   : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software 13.="- .-=="i,     .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License, 14 - .   .-<_>     .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version. 15     ._= =}       : or (at your option) any later version.
16    .%`+i>       _;_. 16    .%`+i>       _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that 17    .i_,=:_.      -<s. This program is distributed in the hope that
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..}^=.=       =       ; Library General Public License for more 22..}^=.=       =       ; Library 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  -_. . .   )=.  = Library General Public License along with 26  -_. . .   )=.  = Library 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 ZECKEXINELIB_H 34#ifndef XINE_VIDEO_LIB_H
35#define ZECKEXINELIB_H 35#define XINE_VIDEO_LIB_H
36 36
37#include <xine.h> 37#include <xine.h>
38 38
39#include "threadutil.h" 39#include "threadutil.h"
40 40
41class XineVideoWidget; 41class XineVideoWidget;
42 42
43namespace XINE { 43namespace XINE {
44 44
45 /** 45 /**
46 * Lib wrapps the simple interface 46 * Lib wrapps the simple interface
47 * of libxine for easy every day use 47 * of libxine for easy every day use
48 * This will become a full C++ Wrapper 48 * This will become a full C++ Wrapper
49 * It supports playing, pausing, info, 49 * It supports playing, pausing, info,
50 * stooping, seeking. 50 * stooping, seeking.
51 */ 51 */
52 class Frame;
53 class Lib : public ThreadUtil::Channel, private ThreadUtil::Thread 52 class Lib : public ThreadUtil::Channel, private ThreadUtil::Thread
54 { 53 {
55 Q_OBJECT 54 Q_OBJECT
56 public: 55 public:
57 enum InitializationMode { InitializeImmediately, InitializeInThread }; 56 enum InitializationMode { InitializeImmediately, InitializeInThread };
58 57
59 Lib( InitializationMode initMode, XineVideoWidget* = 0); 58 Lib( InitializationMode initMode, XineVideoWidget* = 0);
60 59
61 ~Lib(); 60 ~Lib();
62 static int majorVersion(); 61 static int majorVersion();
63 static int minorVersion(); 62 static int minorVersion();
64 static int subVersion(); 63 static int subVersion();
65 64
66 65
67 void resize ( const QSize &s ); 66 void resize ( const QSize &s );
68 67
69 int play( const QString& fileName, 68 int play( const QString& fileName,
70 int startPos = 0, 69 int startPos = 0,
71 int start_time = 0 ); 70 int start_time = 0 );
72 void stop(); 71 void stop();
73 void pause( bool toggle ); 72 void pause( bool toggle );
74 73
75 int speed() const; 74 int speed() const;
76 75
@@ -138,53 +137,48 @@ namespace XINE {
138 137
139 /** 138 /**
140 * seek to a position 139 * seek to a position
141 */ 140 */
142 void seekTo( int time ); 141 void seekTo( int time );
143 142
144 /** 143 /**
145 * 144 *
146 * @return is media stream has video 145 * @return is media stream has video
147 */ 146 */
148 bool hasVideo() const; 147 bool hasVideo() const;
149 148
150 /** 149 /**
151 * 150 *
152 */ 151 */
153 void setScaling( bool ); 152 void setScaling( bool );
154 153
155 /** 154 /**
156 * Set the Gamma value for video output 155 * Set the Gamma value for video output
157 * @param int the value between -100 and 100, 0 is original 156 * @param int the value between -100 and 100, 0 is original
158 */ 157 */
159 void setGamma( int ); 158 void setGamma( int );
160 159
161 /** 160 /**
162 * test
163 */
164 Frame currentFrame() const;
165
166 /**
167 * Returns the error code 161 * Returns the error code
168 * XINE_ERROR_NONE 0 162 * XINE_ERROR_NONE 0
169 * XINE_ERROR_NO_INPUT_PLUGIN 1 163 * XINE_ERROR_NO_INPUT_PLUGIN 1
170 * XINE_ERROR_NO_DEMUXER_PLUGIN 2 164 * XINE_ERROR_NO_DEMUXER_PLUGIN 2
171 * XINE_ERROR_DEMUXER_FAILED 3 165 * XINE_ERROR_DEMUXER_FAILED 3
172 */ 166 */
173 int error() const; 167 int error() const;
174 168
175 void ensureInitialized(); 169 void ensureInitialized();
176 170
177 void setWidget( XineVideoWidget *widget ); 171 void setWidget( XineVideoWidget *widget );
178 172
179 signals: 173 signals:
180 174
181 void stopped(); 175 void stopped();
182 176
183 void initialized(); 177 void initialized();
184 178
185 protected: 179 protected:
186 virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType ); 180 virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType );
187 181
188 virtual void run(); 182 virtual void run();
189 183
190 private: 184 private: