Adding currentSource to the plugin API, and a placeholder method for
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Fri, 12 Sep 2003 10:03:54 +0000 (10:03 +0000)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Fri, 12 Sep 2003 10:03:54 +0000 (10:03 +0000)
iTunesRemote. IT DOES NOT YET RETURN ANYTHING APPLICABLE. IT STAYS AS
LIBRARY CURRENTLY.

ITMTRemote.h
ITMTRemote.m
iTunesRemote.m

index 2c27199..8984a68 100755 (executable)
@@ -69,6 +69,14 @@ typedef enum {
     ITMTRemotePlayerRadioPlaylist
 } ITMTRemotePlayerPlaylistClass;
 
     ITMTRemotePlayerRadioPlaylist
 } ITMTRemotePlayerPlaylistClass;
 
+typedef enum {
+    ITMTRemoteLibrarySource = -1,
+    ITMTRemoteCDSource,
+    ITMTRemoteRadioSource,
+    ITMTRemoteiPodSource,
+    ITMTRemoteMP3PlayerSource
+} ITMTRemotePlayerSource;
+
 /*!
  * @enum ITMTRemotePlayerRepeatMode
  * @abstract Possible repeat modes for the remote's player.
 /*!
  * @enum ITMTRemotePlayerRepeatMode
  * @abstract Possible repeat modes for the remote's player.
@@ -194,6 +202,11 @@ typedef enum {
  */
 - (int)numberOfSongsInPlaylistAtIndex:(int)index;
 
  */
 - (int)numberOfSongsInPlaylistAtIndex:(int)index;
 
+/*!
+ * @method currentSource
+ */
+- (ITMTRemotePlayerSource)currentSource;
+
 /*!
  * @method currentPlaylistClass
  */
 /*!
  * @method currentPlaylistClass
  */
index 3337e55..bd7e106 100755 (executable)
     return nil;
 }
 
     return nil;
 }
 
+- (ITMTRemotePlayerSource)currentSource
+{
+    return nil;
+}
+
 - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass
 {
     return nil;
 - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass
 {
     return nil;
index 5a64303..9a942d8 100755 (executable)
 {
     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];
 }
 {
     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
 {
 
 - (ITMTRemotePlayerPlaylistClass)currentPlaylistClass
 {