📄 amarokdcopiface.h
字号:
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. /* 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 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 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 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. ///< 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 shufflePlaylist() = 0; ///< Shuffles the playlist. virtual void togglePlaylist() = 0; ///< Toggle the Playlist-window. virtual QStringList filenames() = 0; ///< Show filnames of all enqueued tracks.};class AmarokPlaylistBrowserInterface : virtual public DCOPObject{ K_DCOPk_dcop: virtual void addPodcast(const QString &) = 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.};class AmarokContextBrowserInterface : virtual public DCOPObject{ K_DCOPk_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.};class AmarokCollectionInterface : virtual public DCOPObject{ K_DCOPk_dcop: virtual int totalAlbums() = 0; ///< Returns the total of albums in the collection. virtual int totalArtists() = 0; ///< Returns the total of artists in the collection. virtual int totalComposers() = 0; ///< Returns the total of composers in the collection. 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 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};class AmarokScriptInterface : virtual public DCOPObject{ K_DCOPk_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};class AmarokDevicesInterface : virtual public DCOPObject{ K_DCOPk_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};class AmarokMediaBrowserInterface : virtual public DCOPObject{ K_DCOPk_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 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};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -