author | harlekin <harlekin> | 2002-07-01 23:39:54 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-01 23:39:54 (UTC) |
commit | 7ae4965a4052808172e843356cdfb2d0a673bccf (patch) (side-by-side diff) | |
tree | cb9567ea7740ea1b3e63de03f836581a0e5ad589 /noncore/multimedia/opieplayer2/mediaplayer.h | |
parent | 329ea43b68180058bcd8e9d2af4d09d9c03c55a3 (diff) | |
download | opie-7ae4965a4052808172e843356cdfb2d0a673bccf.zip opie-7ae4965a4052808172e843356cdfb2d0a673bccf.tar.gz opie-7ae4965a4052808172e843356cdfb2d0a673bccf.tar.bz2 |
gui
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 @@ + +#ifndef MEDIA_PLAYER_H +#define MEDIA_PLAYER_H + +#include <qmainwindow.h> +#include <qframe.h> +#include <qpe/qlibrary.h> +#include <qpe/mediaplayerplugininterface.h> + + +class DocLnk; + + +class MediaPlayer : public QObject { + Q_OBJECT +public: + MediaPlayer( QObject *parent, const char *name ); + ~MediaPlayer(); + +private slots: + void setPlaying( bool ); + void pauseCheck( bool ); + void play(); + void next(); + void prev(); + void startIncreasingVolume(); + void startDecreasingVolume(); + void stopChangingVolume(); + void cleanUp(); + +protected: + void timerEvent( QTimerEvent *e ); + void keyReleaseEvent( QKeyEvent *e); + void doBlank(); + void doUnblank(); +private: + int volumeDirection; + const DocLnk *currentFile; +}; + + +#endif // MEDIA_PLAYER_H + |