summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h47
1 files changed, 46 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
index d9dc931..00a1248 100644
--- a/noncore/multimedia/opieplayer2/lib.h
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -2,25 +2,28 @@
2 2
3#ifndef ZECKEXINELIB_H 3#ifndef ZECKEXINELIB_H
4#define ZECKEXINELIB_H 4#define ZECKEXINELIB_H
5 5
6#include <qcstring.h> 6#include <qcstring.h>
7#include <qstring.h> 7#include <qstring.h>
8#include <qobject.h>
9
8#include <xine.h> 10#include <xine.h>
9 11
10namespace XINE { 12namespace XINE {
11 13
12 /** 14 /**
13 * Lib wrapps the simple interface 15 * Lib wrapps the simple interface
14 * of libxine for easy every day use 16 * of libxine for easy every day use
15 * This will become a full C++ Wrapper 17 * This will become a full C++ Wrapper
16 * It supports playing, pausing, info, 18 * It supports playing, pausing, info,
17 * stooping, seeking. 19 * stooping, seeking.
18 */ 20 */
19 class Frame; 21 class Frame;
20 class Lib { 22 class Lib : public QObject {
23 Q_OBJECT
21 public: 24 public:
22 Lib(); 25 Lib();
23 ~Lib(); 26 ~Lib();
24 QCString version(); 27 QCString version();
25 int majorVersion()/*const*/; 28 int majorVersion()/*const*/;
26 int minorVersion()/*const*/; 29 int minorVersion()/*const*/;
@@ -42,19 +45,61 @@ namespace XINE {
42 //in seconds 45 //in seconds
43 int currentTime()/*const*/; 46 int currentTime()/*const*/;
44 int length() /*const*/; 47 int length() /*const*/;
45 48
46 bool isSeekable()/*const*/; 49 bool isSeekable()/*const*/;
47 50
51 /**
52 * Whether or not to show video output
53 */
54 void setShowVideo(bool video);
55
56 /**
57 * is we show video
58 */
59 bool isShowingVideo() /*const*/;
60
61 /**
62 *
63 */
64 void showVideoFullScreen( bool fullScreen );
65
66 /**
67 *
68 */
69 bool isVideoFullScreen()/*const*/ ;
70
71 /**
72 *
73 */
74 bool isScaling();
75
76 /**
77 *
78 */
79 void setScaling( bool );
80 /**
81 * test
82 */
48 Frame currentFrame()/*const*/; 83 Frame currentFrame()/*const*/;
84
85 /**
86 * Returns the error code
87 */
49 int error() /*const*/; 88 int error() /*const*/;
89
90 signals:
91 void stopped();
50 private: 92 private:
51 xine_t *m_xine; 93 xine_t *m_xine;
52 config_values_t *m_config; 94 config_values_t *m_config;
53 vo_driver_t *m_videoOutput; 95 vo_driver_t *m_videoOutput;
54 ao_driver_t* m_audioOutput; 96 ao_driver_t* m_audioOutput;
55 97
98 void handleXineEvent( xine_event_t* t );
99 // C -> C++ bridge for the event system
100 static void xine_event_handler( void* user_data, xine_event_t* t);
56 }; 101 };
57}; 102};
58 103
59 104
60#endif 105#endif