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.
38 * @abstract Returns an autoreleased instance of the remote.
39 * @discussion Should be very quick and compact.
43 * return [[[MyRemote alloc] init] autorelease];
45 * @result The instance.
50 * @abstract Returns an autoreleased instance of the remote.
51 * @result An NSString containing the title.
55 /*! @method description:
56 * @abstract Returns a description of the remote.
57 * @result An NSString containing the description.
59 - (NSString *)description;
62 * @abstract Returns a icon for the remote.
63 * @result An NSImage containing the icon.
68 * @abstract Sent when the plugin should begin operation.
69 * @result A result code signifying success.
74 * @abstract Sent when the plugin should cease operation.
75 * @result A result code signifying success.
80 - (int)currentSourceIndex;
82 - (NSArray *)playlistsForCurrentSource;
83 - (int)currentPlaylistIndex;
85 - (NSString *)songTitleAtIndex;
86 - (int)currentSongIndex;
88 - (NSString *)currentSongTitle;
89 - (NSString *)currentSongArtist;
90 - (NSString *)currentSongAlbum;
91 - (NSString *)currentSongGenre;
92 - (NSString *)currentSongLength;
93 - (NSString *)currentSongRemaining;
95 - (NSArray *)eqPresets;
100 - (BOOL)goToPreviousSong;
101 - (BOOL)goToNextPlaylist;
102 - (BOOL)goToPreviousPlaylist;
104 - (BOOL)switchToSourceAtIndex:(int)index;
105 - (BOOL)switchToPlaylistAtIndex:(int)index;
106 - (BOOL)switchToSongAtIndex:(int)index;
107 - (BOOL)switchToEQAtIndex:(int)index;
112 @interface ITMTRemote : NSObject <ITMTRemote>