summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.h
blob: aab00cd2fbdd84a88f6de4fd4cf89594ed171a70 (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 );

    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