From 77c605cbaad836af7607b17ba41ea69cca66caa0 Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Thu, 24 Jul 2003 00:20:19 +0000 Subject: [PATCH] Compiles more --- ITMTRemote.h | 8 +-- ITMTRemote.m | 136 ++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 133 insertions(+), 11 deletions(-) diff --git a/ITMTRemote.h b/ITMTRemote.h index 93a9b4e..8c1dcef 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -24,7 +24,7 @@ */ -#import +#import 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; diff --git a/ITMTRemote.m b/ITMTRemote.m index d5e0c62..fb8e855 100755 --- a/ITMTRemote.m +++ b/ITMTRemote.m @@ -64,27 +64,147 @@ 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; } @@ -199,12 +319,12 @@ return NO; } -- (ITMTRemotePlayerRepeatMode)repeatMode +- (ITMTRemoteRepeatMode)repeatMode { - return ITMTRemotePlayerRepeatOff; + return ITMTRemoteRepeatNone; } -- (BOOL)setRepeatMode:(ITMTRemotePlayerRepeatMode)repeatMode +- (BOOL)setRepeatMode:(ITMTRemoteRepeatMode)repeatMode { return NO; } -- 2.20.1