/*************************************************************************** dummyplayer.h - description ------------------- begin : Thu Apr 24 2003 copyright : (C) 2003 by Oliver Nölle email : yammi-developer@lists.sourceforge.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 DUMMYPLAYER_H #define DUMMYPLAYER_H #include /**a dummy player class with no behaviour *@author Oliver Nölle */ class DummyPlayer : public MediaPlayer { Q_OBJECT public: DummyPlayer( YammiModel *y) : MediaPlayer(y) {} ; virtual ~DummyPlayer() {} ; virtual bool finishInitialization() { return true; } QString getName() { return "DummyPlayer"; } public: void clearPlaylist() {} ; public slots: void check() {} ; PlayerStatus getStatus() { return STOPPED; } bool play() { return true; } bool pause() { return true; } bool stop() { return true; } bool playPause() { return true; } bool skipForward(bool) { return true; } bool skipBackward(bool) { return true; } void syncYammi2Player() {} ; bool jumpTo(int) { return true; } QString getCurrentFile() { return ""; } int getCurrentTime() { return 0; } int getTotalTime() { return 0; } void quit() {} ; }; #endif