From: Joseph Spiros Date: Fri, 12 Sep 2003 10:03:54 +0000 (+0000) Subject: Adding currentSource to the plugin API, and a placeholder method for X-Git-Tag: v1.0~68 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/cacee349eceeff2db2146d3b53f39412418a4dde Adding currentSource to the plugin API, and a placeholder method for iTunesRemote. IT DOES NOT YET RETURN ANYTHING APPLICABLE. IT STAYS AS LIBRARY CURRENTLY. --- diff --git a/ITMTRemote.h b/ITMTRemote.h index 2c27199..8984a68 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -69,6 +69,14 @@ typedef enum { ITMTRemotePlayerRadioPlaylist } ITMTRemotePlayerPlaylistClass; +typedef enum { + ITMTRemoteLibrarySource = -1, + ITMTRemoteCDSource, + ITMTRemoteRadioSource, + ITMTRemoteiPodSource, + ITMTRemoteMP3PlayerSource +} ITMTRemotePlayerSource; + /*! * @enum ITMTRemotePlayerRepeatMode * @abstract Possible repeat modes for the remote's player. @@ -194,6 +202,11 @@ typedef enum { */ - (int)numberOfSongsInPlaylistAtIndex:(int)index; +/*! + * @method currentSource + */ +- (ITMTRemotePlayerSource)currentSource; + /*! * @method currentPlaylistClass */ diff --git a/ITMTRemote.m b/ITMTRemote.m index 3337e55..bd7e106 100755 --- a/ITMTRemote.m +++ b/ITMTRemote.m @@ -84,6 +84,11 @@ return nil; } +- (ITMTRemotePlayerSource)currentSource +{ + return nil; +} + - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass { return nil; diff --git a/iTunesRemote.m b/iTunesRemote.m index 5a64303..9a942d8 100755 --- a/iTunesRemote.m +++ b/iTunesRemote.m @@ -128,6 +128,10 @@ { return [[ITAppleEventCenter sharedCenter] sendAEWithSendStringForNumber:[NSString stringWithFormat:@"kocl:type('cTrk'), '----':obj { form:'indx', want:type('cPly'), seld:long(%lu), from:'null'() }",index] eventClass:@"core" eventID:@"cnte" appPSN:savedPSN]; } +- (ITMTRemotePlayerSource)currentSource +{ + return ITMTRemoteLibrarySource; +} - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass {