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
@@ -26,25 +26,24 @@
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:
@@ -68,36 +67,47 @@ public slots:
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};