*/
-#import <Foundation/Foundation.h>
+#import <Cocoa/Cocoa.h>
typedef enum {
ITMTRemoteName,
- (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;
- (BOOL)supportsRepeatMode:(ITMTRemoteRepeatMode)repeatMode;
- (BOOL)setRepeatMode:(ITMTRemoteRepeatMode)repeatMode;
-- (BOOL)repeatMode;
+- (ITMTRemoteRepeatMode)repeatMode;
- (BOOL)supportsVolume;
- (BOOL)setVolume:(float)volume;
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;
}