/*************************************************************************** amarokdcopiface.h - DCOP Interface ------------------- begin : Sat Oct 11 2003 copyright : (C) 2003 by Stanislav Karchebny (C) 2005 Ian Monroe (C) 2005 Seb Ruiz email : berkus@users.sf.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 AMAROK_DCOPIFACE_H #define AMAROK_DCOPIFACE_H #include #include #include /////////////////////////////////////////////////////////////////////// // WARNING! Please ask on #amarok before modifying the DCOP interface! /////////////////////////////////////////////////////////////////////// class AmarokPlayerInterface : virtual public DCOPObject { K_DCOP k_dcop: virtual TQString version() = 0; ///< returns amarok version string virtual bool dynamicModetqStatus() = 0; ///< Return dynamic mode status. virtual bool equalizerEnabled() = 0; ///< Return the equalizer status. virtual bool osdEnabled() = 0; ///< Return the OSD display status. virtual bool isPlaying() = 0; ///< Return true if something is playing now. virtual bool randomModetqStatus() = 0; ///< Return random mode status. virtual bool repeatPlaylisttqStatus() = 0; ///< Return repeat playlist status. virtual bool repeatTracktqStatus() = 0; ///< Return repeat track status. virtual int getVolume() = 0; ///< Return volume in range 0-100%. virtual int sampleRate() = 0; ///< Return the sample rate of the currently playing track. virtual float score() = 0; ///< Return the score of the currently playing track. virtual int rating() = 0; ///< Return the rating of the currently playing track. virtual int status() = 0; ///< Return playback status: 0 - stopped, 1 - paused, 2 - playing. < 0 - error virtual int trackCurrentTime() = 0; ///< Return current play position in seconds. virtual int trackCurrentTimeMs() = 0; ///< Return current play position in milliseconds. virtual int trackPlayCounter() = 0; ///< Return play counter for current song. virtual int trackTotalTime() = 0; ///< Return track length in seconds. virtual TQStringList labels() = 0; ///< Return the labels of the currently playing track /* New player API */ virtual TQString album() = 0; ///< Return the album of the currently playing track. virtual TQString artist() = 0; ///< Return the artist of the currently playing track. virtual TQString bitrate() = 0; ///< Return the bitrate of the currently playing track (XX kbps). virtual TQString comment() = 0; ///< Return the comment of the currently playing track. virtual TQString coverImage() = 0; ///< Return the encoded URL of the current track's cover image virtual TQString currentTime() = 0; ///< Return the position of the currently playing track ([h:]mm:ss format). virtual TQString encodedURL() = 0; ///< Return the encoded URL of the currently playing track. virtual TQString engine() = 0; ///