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 Return 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 // Return the title of the remote.
52 - (NSString *)description;
53 // Return a short description of the remote.
56 // Return a 16x16 icon representation for the remote.
59 // Sent to the plugin when it should begin operation.
62 // Sent to the plugin when it should cease operation.
65 - (int)currentSourceIndex;
67 - (NSArray *)playlistsForCurrentSource;
68 - (int)currentPlaylistIndex;
70 - (NSString *)songTitleAtIndex;
71 - (int)currentSongIndex;
73 - (NSString *)currentSongTitle;
74 - (NSString *)currentSongArtist;
75 - (NSString *)currentSongAlbum;
76 - (NSString *)currentSongGenre;
77 - (NSString *)currentSongLength;
78 - (NSString *)currentSongRemaining;
80 - (NSArray *)eqPresets;
85 - (BOOL)goToPreviousSong;
86 - (BOOL)goToNextPlaylist;
87 - (BOOL)goToPreviousPlaylist;
89 - (BOOL)switchToSourceAtIndex:(int)index;
90 - (BOOL)switchToPlaylistAtIndex:(int)index;
91 - (BOOL)switchToSongAtIndex:(int)index;
92 - (BOOL)switchToEQAtIndex:(int)index;
97 @interface ITMTRemote : NSObject <ITMTRemote>