summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
authorzecke <zecke>2002-07-01 23:00:43 (UTC)
committer zecke <zecke>2002-07-01 23:00:43 (UTC)
commit8863cf6b20e881e638e8a3cdb18709ecc8201d51 (patch) (unidiff)
tree23012f54bd75a76ac11f8c720d1e81850c3d3689 /noncore/multimedia/opieplayer2/lib.h
parentb34df43c4d141b6845a6251e8f52f7daf3d1a867 (diff)
downloadopie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.zip
opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.tar.gz
opie-8863cf6b20e881e638e8a3cdb18709ecc8201d51.tar.bz2
Hija,
first bits of a XINE C++ lib for the OpieMediaPlayer
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
new file mode 100644
index 0000000..d9dc931
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -0,0 +1,60 @@
1
2
3#ifndef ZECKEXINELIB_H
4#define ZECKEXINELIB_H
5
6#include <qcstring.h>
7#include <qstring.h>
8#include <xine.h>
9
10namespace XINE {
11
12 /**
13 * Lib wrapps the simple interface
14 * of libxine for easy every day use
15 * This will become a full C++ Wrapper
16 * It supports playing, pausing, info,
17 * stooping, seeking.
18 */
19 class Frame;
20 class Lib {
21 public:
22 Lib();
23 ~Lib();
24 QCString version();
25 int majorVersion()/*const*/;
26 int minorVersion()/*const*/;
27 int subVersion()/*const*/;
28
29
30 int play( const QString& fileName,
31 int startPos = 0,
32 int start_time = 0 );
33 void stop() /*const*/;
34 void pause()/*const*/;
35
36 int speed() /*const*/;
37 void setSpeed( int speed = SPEED_PAUSE );
38
39 int status() /*const*/;
40
41 int currentPosition()/*const*/;
42 //in seconds
43 int currentTime()/*const*/;
44 int length() /*const*/;
45
46 bool isSeekable()/*const*/;
47
48 Frame currentFrame()/*const*/;
49 int error() /*const*/;
50 private:
51 xine_t *m_xine;
52 config_values_t *m_config;
53 vo_driver_t *m_videoOutput;
54 ao_driver_t* m_audioOutput;
55
56 };
57};
58
59
60#endif