Diffstat (limited to 'noncore/multimedia/opieplayer2/mediaplayer.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayer.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.h b/noncore/multimedia/opieplayer2/mediaplayer.h new file mode 100644 index 0000000..c4d38b5 --- a/dev/null +++ b/noncore/multimedia/opieplayer2/mediaplayer.h | |||
@@ -0,0 +1,43 @@ | |||
1 | |||
2 | #ifndef MEDIA_PLAYER_H | ||
3 | #define MEDIA_PLAYER_H | ||
4 | |||
5 | #include <qmainwindow.h> | ||
6 | #include <qframe.h> | ||
7 | #include <qpe/qlibrary.h> | ||
8 | #include <qpe/mediaplayerplugininterface.h> | ||
9 | |||
10 | |||
11 | class DocLnk; | ||
12 | |||
13 | |||
14 | class MediaPlayer : public QObject { | ||
15 | Q_OBJECT | ||
16 | public: | ||
17 | MediaPlayer( QObject *parent, const char *name ); | ||
18 | ~MediaPlayer(); | ||
19 | |||
20 | private slots: | ||
21 | void setPlaying( bool ); | ||
22 | void pauseCheck( bool ); | ||
23 | void play(); | ||
24 | void next(); | ||
25 | void prev(); | ||
26 | void startIncreasingVolume(); | ||
27 | void startDecreasingVolume(); | ||
28 | void stopChangingVolume(); | ||
29 | void cleanUp(); | ||
30 | |||
31 | protected: | ||
32 | void timerEvent( QTimerEvent *e ); | ||
33 | void keyReleaseEvent( QKeyEvent *e); | ||
34 | void doBlank(); | ||
35 | void doUnblank(); | ||
36 | private: | ||
37 | int volumeDirection; | ||
38 | const DocLnk *currentFile; | ||
39 | }; | ||
40 | |||
41 | |||
42 | #endif // MEDIA_PLAYER_H | ||
43 | |||