git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Making MainMenu.nib 10.2+ only
[MenuTunes.git]
/
ITMTRemote.h
diff --git
a/ITMTRemote.h
b/ITMTRemote.h
index
3d2015f
..
1d76786
100755
(executable)
--- a/
ITMTRemote.h
+++ b/
ITMTRemote.h
@@
-28,6
+28,8
@@
#import <Cocoa/Cocoa.h>
#import <Cocoa/Cocoa.h>
+typedef enum {stopped = -1, paused, playing, rewinding, forwarding} PlayerState;
+
/*! @protocol ITMTRemote
* @abstract Declares what a MenuTunes Remote must be able to do.
* @discussion A MenuTunes Remote must be able to return and change state information.
/*! @protocol ITMTRemote
* @abstract Declares what a MenuTunes Remote must be able to do.
* @discussion A MenuTunes Remote must be able to return and change state information.
@@
-77,13
+79,15
@@
*/
- (BOOL)halt;
*/
- (BOOL)halt;
-- (
NSArray *)sources
;
-- (
int)currentSourceIndex
;
+- (
BOOL)isAppRunning
;
+- (
PlayerState)playerState
;
-- (NSArray *)playlistsForCurrentSource;
+- (NSArray *)playlists;
+- (int)numberOfSongsInPlaylistAtIndex:(int)index;
+- (NSString *)classOfPlaylistAtIndex:(int)index;
- (int)currentPlaylistIndex;
- (int)currentPlaylistIndex;
-- (NSString *)songTitleAtIndex;
+- (NSString *)songTitleAtIndex
:(int)index
;
- (int)currentSongIndex;
- (NSString *)currentSongTitle;
- (int)currentSongIndex;
- (NSString *)currentSongTitle;
@@
-94,15
+98,15
@@
- (NSString *)currentSongRemaining;
- (NSArray *)eqPresets;
- (NSString *)currentSongRemaining;
- (NSArray *)eqPresets;
+- (int)currentEQPresetIndex;
- (BOOL)play;
- (BOOL)pause;
- (BOOL)goToNextSong;
- (BOOL)goToPreviousSong;
- (BOOL)play;
- (BOOL)pause;
- (BOOL)goToNextSong;
- (BOOL)goToPreviousSong;
-- (BOOL)
goToNextPlaylist
;
-- (BOOL)
goToPreviousPlaylist
;
+- (BOOL)
fastForward
;
+- (BOOL)
rewind
;
-- (BOOL)switchToSourceAtIndex:(int)index;
- (BOOL)switchToPlaylistAtIndex:(int)index;
- (BOOL)switchToSongAtIndex:(int)index;
- (BOOL)switchToEQAtIndex:(int)index;
- (BOOL)switchToPlaylistAtIndex:(int)index;
- (BOOL)switchToSongAtIndex:(int)index;
- (BOOL)switchToEQAtIndex:(int)index;