blob: 145cd0ce2ed229b32814dd0b1a4cc909f6e054b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef XINECONTROL_H
#define XINECONTROL_H
#include "lib.h"
#include "mediadetect.h"
#include <qobject.h>
class XineControl : public QObject {
Q_OBJECT
public:
XineControl( QObject *parent = 0, const char *name =0 );
~XineControl();
public slots:
void play( const QString& fileName );
void stop( bool );
void pause( bool );
void setFullscreen( bool );
int currentTime();
// get length of media file and set it
void length();
int position();
private:
XINE::Lib *libXine;
MediaDetect mdetect;
int m_length;
int m_currentTime;
int m_position;
signals:
void positionChanged( int position );
};
#endif
|