diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /kicker-applets/mediacontrol/playerInterface.h | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker-applets/mediacontrol/playerInterface.h')
-rw-r--r-- | kicker-applets/mediacontrol/playerInterface.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/kicker-applets/mediacontrol/playerInterface.h b/kicker-applets/mediacontrol/playerInterface.h new file mode 100644 index 0000000..aa4701e --- /dev/null +++ b/kicker-applets/mediacontrol/playerInterface.h @@ -0,0 +1,57 @@ +/*************************************************************************** + this is the abstract class to access a player from + ------------------- + begin : Mon Jan 15 21:09:00 MEZ 2001 + copyright : (C) 2001 by Stefan Gehn + email : metz {AT} gehn {DOT} net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef PLAYERINTERFACE_H +#define PLAYERINTERFACE_H + +#include <qobject.h> +#include <qdragobject.h> + +class PlayerInterface : public QObject +{ + Q_OBJECT + public: + PlayerInterface(); + virtual ~PlayerInterface(); + + enum PlayingStatus { Stopped=0, Playing, Paused }; + + public slots: + virtual void updateSlider()=0; // gets called on timer-timeout + virtual void sliderStartDrag()=0; + virtual void sliderStopDrag()=0; + virtual void jumpToTime( int msec )=0; + virtual void playpause()=0; + virtual void stop()=0; + virtual void next()=0; + virtual void prev()=0; + virtual void volumeUp()=0; + virtual void volumeDown()=0; + virtual void dragEnterEvent(QDragEnterEvent* event)=0; + virtual void dropEvent(QDropEvent* event)=0; + virtual const QString getTrackTitle() const=0; + virtual int playingStatus()=0; + + void startPlayer(const QString &desktopname); + + signals: + void newSliderPosition(int, int); + void playingStatusChanged(int); + void playerStarted(); + void playerStopped(); +}; +#endif |