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.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h
index 1de610b..b1300a8 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.h
+++ b/noncore/multimedia/opieplayer2/xinecontrol.h
@@ -14,93 +14,103 @@
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..}^=.=       =       ; 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 "mediadetect.h"
39#include <qobject.h> 38#include <qobject.h>
40 39
41class XineControl : public QObject { 40class XineControl : public QObject {
42 Q_OBJECT 41 Q_OBJECT
43public: 42public:
44 XineControl( QObject *parent = 0, const char *name =0 ); 43 XineControl( QObject *parent = 0, const char *name =0 );
45 ~XineControl(); 44 ~XineControl();
46 45
47 bool hasVideo() const { return hasVideoChannel; } 46 bool hasVideo() const { return hasVideoChannel; }
48 bool hasAudio() const { return hasAudioChannel; } 47 bool hasAudio() const { return hasAudioChannel; }
49 48
50public slots: 49public slots:
51 void play( const QString& fileName ); 50 void play( const QString& fileName );
52 void stop( bool ); 51 void stop( bool );
53 52
54 /** 53 /**
55 * Pause the media stream 54 * Pause the media stream
56 * @param if pause or not 55 * @param if pause or not
57 */ 56 */
58 void pause( bool ); 57 void pause( bool );
59 58
60 /** 59 /**
61 * Set videos fullscreen 60 * Set videos fullscreen
62 * @param yes or no 61 * @param yes or no
63 */ 62 */
64 void setFullscreen( bool ); 63 void setFullscreen( bool );
65 64
66 /** 65 /**
67 * 66 *
68 */ 67 */
69 long currentTime(); 68 long currentTime();
70 void seekTo( long ); 69 void seekTo( long );
71 // get length of media file and set it 70 // get length of media file and set it
72 void length(); 71 void length();
73 long position(); 72 long position();
74 73
75 /** 74 /**
76 * Proceed to the next media file in playlist 75 * Proceed to the next media file in playlist
77 */ 76 */
78 void nextMedia(); 77 void nextMedia();
79 78
79 /**
80 * Get as much info about the stream from xine as possible
81 */
82 QString getMetaInfo();
83
84 /**
85 * get the error code and "translate" it for the user
86 *
87 */
88 QString getErrorCode();
89
90
80 void videoResized ( const QSize &s ); 91 void videoResized ( const QSize &s );
81 92
82 /** 93 /**
83 * Set the gamma value of the video output 94 * Set the gamma value of the video output
84 * @param int value between -100 and 100, 0 is original 95 * @param int value between -100 and 100, 0 is original
85 */ 96 */
86 void setGamma( int ); 97 void setGamma( int );
87 98
88 99
89private: 100private:
90 XINE::Lib *libXine; 101 XINE::Lib *libXine;
91 MediaDetect mdetect;
92 long m_currentTime; 102 long m_currentTime;
93 long m_position; 103 long m_position;
94 int m_length; 104 int m_length;
95 QString m_fileName; 105 QString m_fileName;
96 bool disabledSuspendScreenSaver : 1; 106 bool disabledSuspendScreenSaver : 1;
97 bool hasVideoChannel : 1; 107 bool hasVideoChannel : 1;
98 bool hasAudioChannel : 1; 108 bool hasAudioChannel : 1;
99 109
100signals: 110signals:
101 void positionChanged( long ); 111 void positionChanged( long );
102 112
103}; 113};
104 114
105 115
106#endif 116#endif