X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/cefefd3e817015f9b8e5708bedc52539cfa88799..b20e553e320fc791b9e91b512426e0503ae9b67b:/ITMTRemote.h diff --git a/ITMTRemote.h b/ITMTRemote.h index b65b2d1..8984a68 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -53,6 +53,30 @@ typedef enum { ITMTRemotePlayerForwarding } ITMTRemotePlayerPlayingState; +/*! + * @enum ITMTRemotePlayerPlaylistClass + * @abstract Possible playlist classes used by a remote's player + * @discussion Used in functions that report the class of a playlist to MenuTunes. While we borrow the terms/descriptions from iTunes, these should work fine with any other player. If your player doesn't support a given type of playlist, then just return ITMTRemotePlayerPlaylist. + * @constant ITMTRemotePlayerLibraryPlaylist For players that have one playlist that contains all of a user's music, or for players that don't have the concept of multiple playlists, this is the class for that "Master" list. + * @constant ITMTRemotePlayerPlaylist The generic playlist. Created and maintained by the user. + * @constant ITMTRemotePlayerSmartPlaylist A smart playlist is a playlist who's contents are dynamic, based on a set of criteria or updated by a script. These are usually not edited directly by the user, but instead maintained by the player. + * @constant ITMTRemotePlayerRadioPlaylist This is for when playing tracks off of (online) radio stations. + */ +typedef enum { + ITMTRemotePlayerLibraryPlaylist = -1, + ITMTRemotePlayerPlaylist, + ITMTRemotePlayerSmartPlaylist, + ITMTRemotePlayerRadioPlaylist +} ITMTRemotePlayerPlaylistClass; + +typedef enum { + ITMTRemoteLibrarySource = -1, + ITMTRemoteCDSource, + ITMTRemoteRadioSource, + ITMTRemoteiPodSource, + ITMTRemoteMP3PlayerSource +} ITMTRemotePlayerSource; + /*! * @enum ITMTRemotePlayerRepeatMode * @abstract Possible repeat modes for the remote's player. @@ -150,6 +174,11 @@ typedef enum { */ - (NSDictionary *)capabilities; +/*! + * @method showPrimaryInterface + */ +- (BOOL)showPrimaryInterface; + /*! * @method playerRunningState * @abstract Returns the running state of the remote's player. @@ -174,9 +203,14 @@ typedef enum { - (int)numberOfSongsInPlaylistAtIndex:(int)index; /*! - * @method classOfPlaylistAtIndex: + * @method currentSource */ -- (NSString *)classOfPlaylistAtIndex:(int)index; +- (ITMTRemotePlayerSource)currentSource; + +/*! + * @method currentPlaylistClass + */ +- (ITMTRemotePlayerPlaylistClass)currentPlaylistClass; /*! * @method currentPlaylistIndex @@ -188,6 +222,21 @@ typedef enum { */ - (NSString *)songTitleAtIndex:(int)index; +/*! + * @method currentAlbumTrackCount: + */ +- (int)currentAlbumTrackCount; + +/*! + * @method currentSongTrack: + */ +- (int)currentSongTrack; + +/*! + * @method playerStateUniqueIdentifier: + */ +- (NSString *)playerStateUniqueIdentifier; + /*! * @method currentSongIndex */ @@ -233,16 +282,6 @@ typedef enum { */ - (BOOL)setCurrentSongRating:(float)rating; -/*! - * @method equalizerEnabled - */ -- (BOOL)equalizerEnabled; - -/*! - * @method setEqualizerEnabled: - */ -- (BOOL)setEqualizerEnabled:(BOOL)enabled; - /*! * @method eqPresets */