X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/d9b45efb2f32e03155afc21b2846b9e381049be0..a2891d12899c1160b9fcd9b9b195d7d8ee354cb7:/ITMTRemote.h?ds=sidebyside diff --git a/ITMTRemote.h b/ITMTRemote.h index 0cb9b99..cd79315 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -1,17 +1,14 @@ /* - * MenuTunes - * ITMTRemote - * Plugin definition for audio player control via MenuTunes + * MenuTunes + * ITMTRemote.h * - * Original Author : Matt Judy - * Responsibility : Matt Judy - * - * Copyright (c) 2002 - 2003 iThink Software. - * All Rights Reserved + * Plugin definition for audio player control via MenuTunes. * * This header defines the Objective-C protocol which all MenuTunes Remote - * plugins must implement. To build a remote, create a subclass of this - * object, and implement each method in the @protocol below. + * plugins must implement. To build a remote, create a subclass of this + * object, and implement each method in the @protocol below. + * + * Copyright (c) 2002-2003 iThink Software * */ @@ -56,7 +53,9 @@ typedef enum { /*! * @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. + * @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. @@ -69,6 +68,15 @@ typedef enum { ITMTRemotePlayerRadioPlaylist } ITMTRemotePlayerPlaylistClass; +typedef enum { + ITMTRemoteLibrarySource = -1, + ITMTRemoteCDSource, + ITMTRemoteRadioSource, + ITMTRemoteiPodSource, + ITMTRemoteGenericDeviceSource, + ITMTRemoteSharedLibrarySource +} ITMTRemotePlayerSource; + /*! * @enum ITMTRemotePlayerRepeatMode * @abstract Possible repeat modes for the remote's player. @@ -145,7 +153,9 @@ typedef enum { /*! * @method playerFullName * @abstract Returns the remote's player's application filename. - * @discussion This string should be the name typically used by the remote's player's application bundle/file. For example, Panic's Audion audio player is known simply as "Audion", however, the application bundle is called "Audion 3" for version 3 of their application. This should return "Audion 3", not simply "Audion". See playerSimpleName. + * @discussion This string should be the name typically used by the remote's player's application bundle/file. For example, Panic's Audion audio player is known simply as "Audion", however, the application bundle is called "Audion 3" for version 3 of thei + +r application. This should return "Audion 3", not simply "Audion". See playerSimpleName. * @result An NSString containing the remote's player's application filename */ - (NSString *)playerFullName; @@ -174,7 +184,9 @@ typedef enum { /*! * @method playerRunningState * @abstract Returns the running state of the remote's player. - * @discussion While most remotes will use only ITMTRemotePlayerNotRunning or ITMTRemotePlayerRunning, we have included support for ITMTRemotePlayerLaunching (see ITMTRemotePlayerRunningState) for remotes that want the most precise control over their player's process managment. + * @discussion While most remotes will use only ITMTRemotePlayerNotRunning or ITMTRemotePlayerRunning, we have included support for ITMTRemotePlayerLaunching (see ITMTRemotePlayerRunningState) for remotes that want the most precise control over their play + +er's process managment. * @result An ITMTRemotePlayerRunningState defining the running state of the remote's player. */ - (ITMTRemotePlayerRunningState)playerRunningState; @@ -189,11 +201,31 @@ typedef enum { */ - (NSArray *)playlists; +/*! + * @method artists + */ +- (NSArray *)artists; + +/*! + * @method albums + */ +- (NSArray *)albums; + /*! * @method numberOfSongsInPlaylistAtIndex: */ - (int)numberOfSongsInPlaylistAtIndex:(int)index; +/*! + * @method currentSource + */ +- (ITMTRemotePlayerSource)currentSource; + +/*! + * @method currentSourceIndex + */ +- (int)currentSourceIndex; + /*! * @method currentPlaylistClass */ @@ -209,6 +241,11 @@ typedef enum { */ - (NSString *)songTitleAtIndex:(int)index; +/*! + * @method songEnabledAtIndex: + */ +- (BOOL)songEnabledAtIndex:(int)index; + /*! * @method currentAlbumTrackCount: */ @@ -220,9 +257,9 @@ typedef enum { - (int)currentSongTrack; /*! - * @method currentSongUniqueIdentifier: + * @method playerStateUniqueIdentifier: */ -- (NSString *)currentSongUniqueIdentifier; +- (NSString *)playerStateUniqueIdentifier; /*! * @method currentSongIndex @@ -239,6 +276,11 @@ typedef enum { */ - (NSString *)currentSongArtist; +/*! + * @method currentSongComposer + */ +- (NSString *)currentSongComposer; + /*! * @method currentSongAlbum */ @@ -254,11 +296,36 @@ typedef enum { */ - (NSString *)currentSongLength; +/*! + * @method currentSongPlayed + */ +- (int)currentSongPlayed; + +/*! + * @method currentSongDuration + */ +- (int)currentSongDuration; + /*! * @method currentSongRemaining */ - (NSString *)currentSongRemaining; +/*! + * @method currentSongElapsed + */ +- (NSString *)currentSongElapsed; + +/*! + * @method currentSongAlbumArt + */ +- (NSImage *)currentSongAlbumArt; + +/*! + * @method currentSongPlayCount + */ +- (int)currentSongPlayCount; + /*! * @method currentSongRating */ @@ -269,6 +336,26 @@ typedef enum { */ - (BOOL)setCurrentSongRating:(float)rating; +/*! + * @method currentSongShuffable + */ +- (BOOL)currentSongShufflable; + +/*! + * @method setCurrentSongShuffable: + */ +- (BOOL)setCurrentSongShufflable:(BOOL)shufflable; + +/*! + * @method equalizerEnabled + */ +- (BOOL)equalizerEnabled; + +/*! + * @method setEqualizerEnabled: + */ +- (BOOL)setEqualizerEnabled:(BOOL)enabled; + /*! * @method eqPresets */ @@ -344,6 +431,11 @@ typedef enum { */ - (BOOL)switchToPlaylistAtIndex:(int)index; +/*! + * @method switchToPlaylistAtIndex: + */ +- (BOOL)switchToPlaylistAtIndex:(int)index ofSourceAtIndex:(int)index2; + /*! * @method switchToSongAtIndex: */ @@ -354,6 +446,11 @@ typedef enum { */ - (BOOL)switchToEQAtIndex:(int)index; +/*! + * @method makePlaylistWithTerm:ofType: + */ +- (BOOL)makePlaylistWithTerm:(NSString *)term ofType:(int)type; + @end /*!