X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/8b06c48ba29b681cd97ca543733467e2a6c6cd0a..2d58e7c682543939c0ae261514af569f7ac51fa3:/ITMTRemote.h diff --git a/ITMTRemote.h b/ITMTRemote.h index 8c1dcef..b3f3efa 100755 --- a/ITMTRemote.h +++ b/ITMTRemote.h @@ -24,7 +24,7 @@ */ -#import +#import typedef enum { ITMTRemoteName, @@ -78,9 +78,9 @@ typedef enum { ITMTRemoteRepeatOne } ITMTRemoteRepeatMode; -/*enum { +enum { ITMTRemoteCustomPreset = -1; -}*/ +} @protocol ITMTRemote + (id)remote; @@ -103,9 +103,7 @@ 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)property 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; @@ -113,7 +111,7 @@ typedef enum { - (BOOL)supportsRepeatMode:(ITMTRemoteRepeatMode)repeatMode; - (BOOL)setRepeatMode:(ITMTRemoteRepeatMode)repeatMode; -- (ITMTRemoteRepeatMode)repeatMode; +- (BOOL)repeatMode; - (BOOL)supportsVolume; - (BOOL)setVolume:(float)volume;