summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.h
blob: cba83c031ad35e87dc1aea6915c604d8060d50a8 (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, const char *name );
    ~XineControl();

private 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