diff options
Diffstat (limited to 'amarok/src/amarokcore/amarokdcopiface.h')
-rw-r--r-- | amarok/src/amarokcore/amarokdcopiface.h | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/amarok/src/amarokcore/amarokdcopiface.h b/amarok/src/amarokcore/amarokdcopiface.h index 2e37fa00..32b330a7 100644 --- a/amarok/src/amarokcore/amarokdcopiface.h +++ b/amarok/src/amarokcore/amarokdcopiface.h @@ -22,7 +22,7 @@ #include <dcopobject.h> #include <kurl.h> -#include <qstringlist.h> +#include <tqstringlist.h> /////////////////////////////////////////////////////////////////////// // WARNING! Please ask on #amarok before modifying the DCOP interface! @@ -34,7 +34,7 @@ class AmarokPlayerInterface : virtual public DCOPObject K_DCOP k_dcop: - virtual QString version() = 0; ///< returns amarok version string + virtual TQString version() = 0; ///< returns amarok version string virtual bool dynamicModeStatus() = 0; ///< Return dynamic mode status. virtual bool equalizerEnabled() = 0; ///< Return the equalizer status. @@ -52,32 +52,32 @@ k_dcop: 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 QStringList labels() = 0; ///< Return the labels of the currently playing track + virtual TQStringList labels() = 0; ///< Return the labels of the currently playing track /* New player API */ - virtual QString album() = 0; ///< Return the album of the currently playing track. - virtual QString artist() = 0; ///< Return the artist of the currently playing track. - virtual QString bitrate() = 0; ///< Return the bitrate of the currently playing track (XX kbps). - virtual QString comment() = 0; ///< Return the comment of the currently playing track. - virtual QString coverImage() = 0; ///< Return the encoded URL of the current track's cover image - virtual QString currentTime() = 0; ///< Return the position of the currently playing track ([h:]mm:ss format). - virtual QString encodedURL() = 0; ///< Return the encoded URL of the currently playing track. - virtual QString engine() = 0; ///<Return the current sound engine. - virtual QString genre() = 0; ///< Return the genre of the currently playing track. - virtual QString lyrics() = 0; ///< Return the lyrics of the currently playing track. - virtual QString lyricsByPath( QString path ) = 0; ///< Return the lyrics of a track by path. - virtual QString lastfmStation() = 0; ///< Return the lastfm stream that we are playing, if we are playing one + 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; ///<Return the current sound engine. + virtual TQString genre() = 0; ///< Return the genre of the currently playing track. + virtual TQString lyrics() = 0; ///< Return the lyrics of the currently playing track. + virtual TQString lyricsByPath( TQString path ) = 0; ///< Return the lyrics of a track by path. + virtual TQString lastfmStation() = 0; ///< Return the lastfm stream that we are playing, if we are playing one /* Compatibility method (used by mediacontrol as well). DO NOT TOUCH! */ - virtual QString nowPlaying() = 0; ///< The title of now playing media. - virtual QString path() = 0; ///< Return the unencoded path of the currently playing track. - virtual QString setContextStyle(const QString& ) = 0; ///< Set the CSS style for the context browser - virtual QString title() = 0; ///< Return the title of the currently playing track. - virtual QString totalTime() = 0; ///< Return the total length of the currently playing track ([h:]mm:ss format). - virtual QString track() = 0; ///< Return the track number. - virtual QString type() = 0; ///< Return the file type. - virtual QString year() = 0; ///< Return the year of the currently playing track. + virtual TQString nowPlaying() = 0; ///< The title of now playing media. + virtual TQString path() = 0; ///< Return the unencoded path of the currently playing track. + virtual TQString setContextStyle(const TQString& ) = 0; ///< Set the CSS style for the context browser + virtual TQString title() = 0; ///< Return the title of the currently playing track. + virtual TQString totalTime() = 0; ///< Return the total length of the currently playing track ([h:]mm:ss format). + virtual TQString track() = 0; ///< Return the track number. + virtual TQString type() = 0; ///< Return the file type. + virtual TQString year() = 0; ///< Return the year of the currently playing track. virtual void configEqualizer() = 0; ///< Toggle equalizer config dialog. virtual void enableOSD(bool enable) = 0; ///< Switch OSD display on or off. virtual void enableRandomMode(bool enable) = 0; ///< Switch Random Mode on or off. @@ -96,23 +96,23 @@ k_dcop: virtual void seekRelative(int s) = 0; ///< Seek to a position relative to the current track position. virtual void setEqualizer(int, int, int, int, int, int, int, int, int, int, int) = 0; ///< Set the equalizer bands virtual void setEqualizerEnabled( bool active ) = 0; ///< Toggle equalizer. - virtual void setEqualizerPreset( QString name ) = 0; ///< Set the equalizer preset - virtual void setLyricsByPath( const QString& url, const QString& lyrics ) = 0; ///< Set the lyrics of a track by it's path. + virtual void setEqualizerPreset( TQString name ) = 0; ///< Set the equalizer preset + virtual void setLyricsByPath( const TQString& url, const TQString& lyrics ) = 0; ///< Set the lyrics of a track by it's path. virtual void setBpm( float bpm ) = 0; ///< Set the bpm of the currently playing track. - virtual void setBpmByPath( const QString &url, float bpm ) = 0; ///< Set the bpm of a track by it's path. + virtual void setBpmByPath( const TQString &url, float bpm ) = 0; ///< Set the bpm of a track by it's path. virtual void setScore( float score ) = 0; ///< Set the score of the currently playing track. - virtual void setScoreByPath( const QString &url, float score ) = 0; ///< Set the score of a track by it's path. + virtual void setScoreByPath( const TQString &url, float score ) = 0; ///< Set the score of a track by it's path. virtual void setRating( int rating ) = 0; ///< Set the rating of the currently playing track. - virtual void setRatingByPath( const QString &url, int rating ) = 0; ///< Set the rating of a track by it's path. + virtual void setRatingByPath( const TQString &url, int rating ) = 0; ///< Set the rating of a track by it's path. virtual void setVolume(int volume) = 0; ///< Set volume in range 0-100%. virtual void setVolumeRelative(int ticks) = 0; ///< Set volume relatively by ticks. Can be positive or negative. - virtual void showBrowser( QString browser ) = 0; ///<Shows browsers in the playlist window. + virtual void showBrowser( TQString browser ) = 0; ///<Shows browsers in the playlist window. virtual void showOSD() = 0; ///< Show the OSD display on the screen. virtual void stop() = 0; ///< Equivalent to pressing "Stop" button. virtual void transferDeviceFiles() = 0; ///< Transfer files to media device. virtual void volumeDown() = 0; ///< Decrease volume by a reasonable step. virtual void volumeUp() = 0; ///< Increase volume by a reasonable step. - virtual void transferCliArgs( QStringList args ) = 0; + virtual void transferCliArgs( TQStringList args ) = 0; }; @@ -123,27 +123,27 @@ class AmarokPlaylistInterface : virtual public DCOPObject k_dcop: virtual int getActiveIndex() = 0; ///< Return the index of the currently active track. -1 if none. virtual int getTotalTrackCount() = 0; ///< Return number of tracks in playlist. 0 if none. - virtual QString saveCurrentPlaylist() = 0; ///< Saves the current playlist to current.xml and returns its path. + virtual TQString saveCurrentPlaylist() = 0; ///< Saves the current playlist to current.xml and returns its path. /* These two methods are used by mediacontrol. DO NOT TOUCH! */ virtual void addMedia(const KURL &) = 0; ///< Add audio media specified by the url. virtual void queueMedia(const KURL &) = 0; ///< Queue audio media specified by the url. virtual void addMediaList(const KURL::List &) = 0; ///< Add some audio media specified by the url. virtual void clearPlaylist() = 0; ///< Clears the playlist. - virtual QString currentTrackUniqueId() = 0; ///< Return the current track's unique ID + virtual TQString currentTrackUniqueId() = 0; ///< Return the current track's unique ID virtual void playByIndex(int) = 0; ///< Starts playing the track at the specified index. virtual void playMedia(const KURL &) = 0; ///< Add audio media specified by the url. - virtual void popupMessage(const QString&) = 0; ///< Shows a temporary popup message. + virtual void popupMessage(const TQString&) = 0; ///< Shows a temporary popup message. virtual void removeCurrentTrack() = 0; ///< Removes the current-track item from the playlist. virtual void removeByIndex(int) = 0; ///< Removes the item at the specified index from the playlist. virtual void repopulate() = 0; ///< Repopulate the playlist with random tracks. - virtual void saveM3u(const QString& path, bool relativePaths) = 0; ///< Saves the current playlist as m3u. + virtual void saveM3u(const TQString& path, bool relativePaths) = 0; ///< Saves the current playlist as m3u. ///< path = path for saving, relativePaths = whether to write relative paths. virtual void setStopAfterCurrent( bool ) = 0; ///< Enables/disables the "Stop After Current Track" feature. - virtual void shortStatusMessage(const QString&) = 0; ///< Shows a temporary message on the statusbar. + virtual void shortStatusMessage(const TQString&) = 0; ///< Shows a temporary message on the statusbar. virtual void shufflePlaylist() = 0; ///< Shuffles the playlist. virtual void togglePlaylist() = 0; ///< Toggle the Playlist-window. - virtual QStringList filenames() = 0; ///< Show filnames of all enqueued tracks. + virtual TQStringList filenames() = 0; ///< Show filnames of all enqueued tracks. }; @@ -152,10 +152,10 @@ class AmarokPlaylistBrowserInterface : virtual public DCOPObject K_DCOP k_dcop: - virtual void addPodcast(const QString &) = 0; ///< Add a podcast entry to the playlist browser. + virtual void addPodcast(const TQString &) = 0; ///< Add a podcast entry to the playlist browser. virtual void scanPodcasts() = 0; ///< Scan all podcasts for updates. - virtual void addPlaylist(const QString &) = 0; ///< Add a playlist to the playlist browser. - virtual int loadPlaylist(const QString &) = 0; ///< load a playlist to the playlist. + virtual void addPlaylist(const TQString &) = 0; ///< Add a playlist to the playlist browser. + virtual int loadPlaylist(const TQString &) = 0; ///< load a playlist to the playlist. }; @@ -167,7 +167,7 @@ k_dcop: virtual void showCurrentTrack() = 0; ///< Show the current track in the context browser. virtual void showLyrics() = 0; ///< Show the lyrics tab in the context browser. virtual void showWiki() = 0; ///< Show the wikipedia tab in the context browser. - virtual void showLyrics( const QCString& lyrics ) = 0; ///< Renders the lyrics (plan text) in the Lyrics tab. + virtual void showLyrics( const TQCString& lyrics ) = 0; ///< Renders the lyrics (plan text) in the Lyrics tab. }; @@ -182,22 +182,22 @@ k_dcop: virtual int totalCompilations() = 0; ///< Returns the total of compilations in the collection. virtual int totalGenres() = 0; ///< Returns the total of genres in the collection. virtual int totalTracks() = 0; ///< Returns the total of tracks in the collection. - virtual bool isDirInCollection( const QString& ) = 0; ///< Returns whether is given directory is in the collection. - virtual bool moveFile( const QString &oldURL, const QString &newURL, bool overwrite ) = 0; ///<Physically move then migrateFile. - virtual QStringList query(const QString& sql) = 0; ///< Queries the database via SQL. - virtual QStringList similarArtists( int artists ) = 0; ///< Return similar artists of the current tracks, limit to int artists. - virtual void migrateFile( const QString &oldURL, const QString &newURL ) = 0; ///<Move a file in the collection, keeping stats intact. + virtual bool isDirInCollection( const TQString& ) = 0; ///< Returns whether is given directory is in the collection. + virtual bool moveFile( const TQString &oldURL, const TQString &newURL, bool overwrite ) = 0; ///<Physically move then migrateFile. + virtual TQStringList query(const TQString& sql) = 0; ///< Queries the database via SQL. + virtual TQStringList similarArtists( int artists ) = 0; ///< Return similar artists of the current tracks, limit to int artists. + virtual void migrateFile( const TQString &oldURL, const TQString &newURL ) = 0; ///<Move a file in the collection, keeping stats intact. virtual void scanCollection() = 0; ///< Scan the collection. virtual void scanCollectionChanges() = 0; ///< Scan the collection for changes only. virtual void disableAutoScoring( bool disable ) = 0; ///< Disable updating track stats on track change. virtual void scanPause() = 0; ///< Pause collection scanner. virtual void scanUnpause() = 0; ///< Unpause collection scanner. virtual void scannerAcknowledged() = 0; ///< Called by the scanner to acknowledge the request. - virtual int addLabels( const QString &url, const QStringList &labels ) = 0; ///< Add user-defined labels to the song with the given url. Returns the number of labels which were not already assigned to the track. - virtual void removeLabels( const QString &url, const QStringList &oldLabels ) = 0; ///< Remove user-defined labels from the song with the given url. - virtual int deviceId( const QString &url ) = 0; ///< Returns the device id for the URL. - virtual QString relativePath( const QString &url ) = 0; ///< Returns the relative path used in Amarok's database - virtual QString absolutePath( int deviceid, const QString &relativePath ) = 0; ///< Returns the absolute path + virtual int addLabels( const TQString &url, const TQStringList &labels ) = 0; ///< Add user-defined labels to the song with the given url. Returns the number of labels which were not already assigned to the track. + virtual void removeLabels( const TQString &url, const TQStringList &oldLabels ) = 0; ///< Remove user-defined labels from the song with the given url. + virtual int deviceId( const TQString &url ) = 0; ///< Returns the device id for the URL. + virtual TQString relativePath( const TQString &url ) = 0; ///< Returns the relative path used in Amarok's database + virtual TQString absolutePath( int deviceid, const TQString &relativePath ) = 0; ///< Returns the absolute path }; @@ -206,15 +206,15 @@ class AmarokScriptInterface : virtual public DCOPObject K_DCOP k_dcop: - virtual bool runScript(const QString& name) = 0; ///< Starts the script with the given name. Returns true on success. - virtual bool stopScript(const QString& name) = 0; ///< Stops the script with the given name. Returns true on success. - virtual QStringList listRunningScripts() = 0; ///< Returns a list of all currently running scripts. - virtual void addCustomMenuItem(QString submenu, QString itemTitle ) = 0; ///< Enables and sets custom menu item title. - virtual void removeCustomMenuItem(QString submenu, QString itemTitle ) = 0; ///< Removes the custom menu item. - virtual QString readConfig(const QString& key) = 0; ///< returns a AmarokConfig configuration entry value from the given key - virtual QStringList readListConfig(const QString& key) = 0; ///< AmarokConfig lists must use this function - virtual QString proxyForUrl(const QString& url) = 0; ///< Returns the proxy that should be used for the given URL - virtual QString proxyForProtocol(const QString& protocol) = 0; ///< Returns the proxy that should be used for the given protocol + virtual bool runScript(const TQString& name) = 0; ///< Starts the script with the given name. Returns true on success. + virtual bool stopScript(const TQString& name) = 0; ///< Stops the script with the given name. Returns true on success. + virtual TQStringList listRunningScripts() = 0; ///< Returns a list of all currently running scripts. + virtual void addCustomMenuItem(TQString submenu, TQString itemTitle ) = 0; ///< Enables and sets custom menu item title. + virtual void removeCustomMenuItem(TQString submenu, TQString itemTitle ) = 0; ///< Removes the custom menu item. + virtual TQString readConfig(const TQString& key) = 0; ///< returns a AmarokConfig configuration entry value from the given key + virtual TQStringList readListConfig(const TQString& key) = 0; ///< AmarokConfig lists must use this function + virtual TQString proxyForUrl(const TQString& url) = 0; ///< Returns the proxy that should be used for the given URL + virtual TQString proxyForProtocol(const TQString& protocol) = 0; ///< Returns the proxy that should be used for the given protocol }; @@ -223,10 +223,10 @@ class AmarokDevicesInterface : virtual public DCOPObject K_DCOP k_dcop: - virtual void mediumAdded(QString name) = 0; ///< Called when there is a mediumAdded event - virtual void mediumRemoved(QString name) = 0; ///< Called when there is a mediumRemoved event - virtual void mediumChanged(QString name) = 0; ///< Called when there is a mediumChanged event - virtual QStringList showDeviceList() = 0; ///< Call to display the MediaDeviceManager's current device list + virtual void mediumAdded(TQString name) = 0; ///< Called when there is a mediumAdded event + virtual void mediumRemoved(TQString name) = 0; ///< Called when there is a mediumRemoved event + virtual void mediumChanged(TQString name) = 0; ///< Called when there is a mediumChanged event + virtual TQStringList showDeviceList() = 0; ///< Call to display the MediaDeviceManager's current device list }; class AmarokMediaBrowserInterface : virtual public DCOPObject @@ -236,12 +236,12 @@ class AmarokMediaBrowserInterface : virtual public DCOPObject k_dcop: virtual void deviceConnect() = 0; ///< Connect the current media device virtual void deviceDisconnect() = 0; ///< Disconnect the current media device - virtual void deviceSwitch( QString name ) = 0; ///< Switch the current media device - virtual QStringList deviceList() = 0; ///< List available media devices + virtual void deviceSwitch( TQString name ) = 0; ///< Switch the current media device + virtual TQStringList deviceList() = 0; ///< List available media devices virtual void queue( KURL url ) = 0; ///< Add url to transfer queue virtual void queueList( KURL::List url ) = 0; ///< Add list of urls to transfer queue virtual void transfer() = 0; ///< Transfer items in queue to current device - virtual void transcodingFinished( QString src, QString dest ) = 0; ///< Announce that transcoding of job is finished + virtual void transcodingFinished( TQString src, TQString dest ) = 0; ///< Announce that transcoding of job is finished }; #endif |