Compiles more
authorAlexander Strange <astrange@ithinksw.com>
Thu, 24 Jul 2003 00:20:19 +0000 (00:20 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Thu, 24 Jul 2003 00:20:19 +0000 (00:20 +0000)
ITMTRemote.h
ITMTRemote.m

index 93a9b4e..8c1dcef 100755 (executable)
@@ -24,7 +24,7 @@
 */
 
 
-#import <Foundation/Foundation.h>
+#import <Cocoa/Cocoa.h>
 
 typedef enum {
     ITMTRemoteName,
@@ -103,7 +103,9 @@ typedef enum {
 
 - (BOOL)supportsTrackProperty:(ITMTRemoteTrackProperty)property;
 - (id)trackProperty:(ITMTRemoteTrackProperty)property atIndex:(int)index;
-- (BOOL)setTrackProperty:(ITMTRemoteTrackProperty)property toValue:(id)value atIndex:(int)index; // currently only used to set Ratings... someday, we might provide a full frontend? well, it is possible that other apps could use MT remotes, as such, they might want to set other values. For Rating, send in an NSNumber from a float 0.0 - 1.0. For Art, send in an NSImage... this is also what you'll recieve when using the accessor
+- (BOOL)setTrackProperty:(ITMTRemoteTrackProperty)property toValue:(id)value atIndex:(int)index;
+/* currently only used to set Ratings... someday, we might provide a full frontend? well, it is possible that other apps could use MT remotes, as such, they might want to set other values. For Rating, send in an NSNumber from a float 0.0 - 1.0. For Art, send in an NSImage... this is also what you'll recieve when using the accessor */
+
 
 - (BOOL)supportsShuffle;
 - (BOOL)setShuffle:(BOOL)toggle;
@@ -111,7 +113,7 @@ typedef enum {
 
 - (BOOL)supportsRepeatMode:(ITMTRemoteRepeatMode)repeatMode;
 - (BOOL)setRepeatMode:(ITMTRemoteRepeatMode)repeatMode;
-- (BOOL)repeatMode;
+- (ITMTRemoteRepeatMode)repeatMode;
 
 - (BOOL)supportsVolume;
 - (BOOL)setVolume:(float)volume;
index d5e0c62..fb8e855 100755 (executable)
     return NO;
 }
 
-- (ITMTRemotePlayerRunningState)playerRunningState
+- (BOOL)showExternalWindow
+{
+    return NO;
+}
+
+- (NSString*)externalWindowName
 {
     return nil;
 }
 
-- (ITMTRemotePlayerPlayingState)playerPlayingState
+- (BOOL)setShuffle:(BOOL)toggle
+{
+    return NO;
+}
+
+- (BOOL)supportsVolume
+{
+    return NO;
+}
+
+- (BOOL)supportsShuffle
+{
+    return NO;
+}
+
+- (BOOL)shuffle
+{
+    return NO;
+}
+
+- (BOOL)setTrackProperty:(ITMTRemoteTrackProperty)property toValue:(id)value atIndex:(int)index
+{
+    return NO;
+}
+
+- (id)trackProperty:(ITMTRemoteTrackProperty)property atIndex:(int)index
 {
     return nil;
 }
 
-- (NSArray *)playlists
+- (BOOL)supportsTrackProperty:(ITMTRemoteTrackProperty)property
+{
+    return NO;
+}
+
+- (BOOL)supportsRepeatMode:(ITMTRemoteRepeatMode)repeatMode
+{
+    return NO;
+}
+
+- (BOOL)sendControlAction:(ITMTRemoteControlAction)action
+{
+    return NO;
+}
+
+- (BOOL)supportsControlAction:(ITMTRemoteControlAction)action
+{
+    return NO;
+}
+
+- (int)indexForTrack:(int)identifier inPlaylist:(int)playlistIndex
+{
+    return 0;
+}
+
+- (NSImage*)icon
 {
     return nil;
 }
 
-- (int)numberOfSongsInPlaylistAtIndex:(int)index
+- (NSArray*)playlistNames
+{
+    return nil;
+}
+
+- (NSString*)informationString:(ITMTRemoteInformationString)string;
+{
+    return nil;
+}
+
+- (BOOL)switchToPlaylist:(int)playlistIndex
+{
+    return 0;
+}
+
+- (BOOL)switchToTrackAtIndex:(int)index
+{
+    return 0;
+}
+
+- (int)identifierForTrackAtIndex:(int)index inPlaylist:(int)playlistIndex
+{
+    return 0;
+}
+
+- (BOOL)supportsCustomEqualizer
+{
+    return NO;
+}
+
+- (BOOL)showEqualizerWindow
+{
+    return NO;
+}
+
+- (BOOL)supportsEqualizerPresets
+{
+    return NO;
+}
+
+- (BOOL)supportsExternalWindow
+{
+    return NO;
+}
+
+- (NSArray*)equalizerPresetNames
+{
+    return nil;
+}
+
+- (BOOL)switchToEqualizerPreset:(int)index
+{
+    return NO;
+}
+
+- (ITMTRemoteControlState)controlState
+{
+    return nil;
+}
+
+- (ITMTRemotePlaylistMode)playlistMode
 {
     return nil;
 }
 
-- (ITMTRemotePlayerPlaylistClass)currentPlaylistClass
+- (NSArray *)playlists
+{
+    return nil;
+}
+
+- (int)numberOfSongsInPlaylistAtIndex:(int)index
 {
     return nil;
 }
     return NO;
 }
 
-- (ITMTRemotePlayerRepeatMode)repeatMode
+- (ITMTRemoteRepeatMode)repeatMode
 {
-    return ITMTRemotePlayerRepeatOff;
+    return ITMTRemoteRepeatNone;
 }
 
-- (BOOL)setRepeatMode:(ITMTRemotePlayerRepeatMode)repeatMode
+- (BOOL)setRepeatMode:(ITMTRemoteRepeatMode)repeatMode
 {
     return NO;
 }