blob: 58ad8ecab1922c9f3e1ecdc7d27af4a6397a8fab (
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
|
#ifndef XINECONTROL_H
#define XINECONTROL_H
#include "lib.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();
void pause( bool );
int currentTime();
// get length of media file and set it
void length();
int position();
private:
XINE::Lib *libXine;
int m_length;
int m_currentTime;
int m_position;
signals:
void positionChanged( int position );
};
#endif
|