author | zecke <zecke> | 2002-07-09 13:49:34 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-09 13:49:34 (UTC) |
commit | 87bb55055c826b6c75d4a66a7ff6e21058cf6361 (patch) (unidiff) | |
tree | 000f68448ce3b903da00a3e5a2ad24140a18f85b /noncore/multimedia/opieplayer2/lib.h | |
parent | e99adc2029808f6276474c95e8587607a4bd8091 (diff) | |
download | opie-87bb55055c826b6c75d4a66a7ff6e21058cf6361.zip opie-87bb55055c826b6c75d4a66a7ff6e21058cf6361.tar.gz opie-87bb55055c826b6c75d4a66a7ff6e21058cf6361.tar.bz2 |
Update the lib
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 47 |
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 | |||
@@ -1,32 +1,35 @@ | |||
1 | 1 | ||
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 | ||
10 | namespace XINE { | 12 | namespace 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*/; |
27 | int subVersion()/*const*/; | 30 | int subVersion()/*const*/; |
28 | 31 | ||
29 | 32 | ||
30 | int play( const QString& fileName, | 33 | int play( const QString& fileName, |
31 | int startPos = 0, | 34 | int startPos = 0, |
32 | int start_time = 0 ); | 35 | int start_time = 0 ); |
@@ -36,25 +39,67 @@ namespace XINE { | |||
36 | int speed() /*const*/; | 39 | int speed() /*const*/; |
37 | void setSpeed( int speed = SPEED_PAUSE ); | 40 | void setSpeed( int speed = SPEED_PAUSE ); |
38 | 41 | ||
39 | int status() /*const*/; | 42 | int status() /*const*/; |
40 | 43 | ||
41 | int currentPosition()/*const*/; | 44 | int currentPosition()/*const*/; |
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 |