4 * Plugin definition for audio player control via MenuTunes
6 * Original Author : Matt Judy <mjudy@ithinksw.com>
7 * Responsibility : Matt Judy <mjudy@ithinksw.com>
9 * Copyright (c) 2002 - 2003 iThink Software.
12 * This header defines the Objective-C protocol which all MenuTunes Remote
13 * plugins must implement. To build a remote, create a subclass of this
14 * object, and implement each method in the @protocol below.
21 * - Capability methods
25 /*! @header ITMTRemote
26 * @abstract Declares the necessary protocol and class to implement a MenuTunes Remote.
29 #import <Cocoa/Cocoa.h>
31 /*! @protocol ITMTRemote
32 * @abstract Declares what a MenuTunes Remote must be able to do.
33 * @discussion A MenuTunes Remote must be able to return and change state information.
39 * @abstract Returns an autoreleased instance of the remote.
40 * @discussion Should be very quick and compact.
44 * return [[[MyRemote alloc] init] autorelease];
46 * @result The instance.
51 * @abstract Returns an autoreleased instance of the remote.
52 * @result An NSString containing the title.
56 /*! @method description:
57 * @abstract Returns a description of the remote.
58 * @result An NSString containing the description.
60 - (NSString *)information;
63 * @abstract Returns a icon for the remote.
64 * @result An NSImage containing the icon.
69 * @abstract Sent when the plugin should begin operation.
70 * @result A result code signifying success.
75 * @abstract Sent when the plugin should cease operation.
76 * @result A result code signifying success.
81 - (int)currentSourceIndex;
82 - (NSString *)sourceTypeOfCurrentPlaylist;
84 - (NSArray *)playlistsForCurrentSource;
85 - (int)currentPlaylistIndex;
87 - (NSString *)songTitleAtIndex;
88 - (int)currentSongIndex;
90 - (NSString *)currentSongTitle;
91 - (NSString *)currentSongArtist;
92 - (NSString *)currentSongAlbum;
93 - (NSString *)currentSongGenre;
94 - (NSString *)currentSongLength;
95 - (NSString *)currentSongRemaining;
97 - (NSArray *)eqPresets;
101 - (BOOL)goToNextSong;
102 - (BOOL)goToPreviousSong;
103 - (BOOL)goToNextPlaylist;
104 - (BOOL)goToPreviousPlaylist;
106 - (BOOL)switchToSourceAtIndex:(int)index;
107 - (BOOL)switchToPlaylistAtIndex:(int)index;
108 - (BOOL)switchToSongAtIndex:(int)index;
109 - (BOOL)switchToEQAtIndex:(int)index;
114 @interface ITMTRemote : NSObject <ITMTRemote>