From 217dd5d7129df9accb9ec28e36af672531c6c4ab Mon Sep 17 00:00:00 2001 From: Matthew Judy Date: Tue, 4 Feb 2003 17:30:44 +0000 Subject: [PATCH] Incremental MT Checkin, adding the plugin files, and major project structure changes. --- ITMTRemote.h | 88 ++++++++++++++++++++++++++++++++++ ITMTRemote.m | 128 +++++++++++++++++++++++++++++++++++++++++++++++++ iTunesRemote.h | 21 ++++++++ iTunesRemote.m | 7 +++ 4 files changed, 244 insertions(+) create mode 100755 ITMTRemote.h create mode 100755 ITMTRemote.m create mode 100755 iTunesRemote.h create mode 100755 iTunesRemote.m diff --git a/ITMTRemote.h b/ITMTRemote.h new file mode 100755 index 0000000..b2e2d5e --- /dev/null +++ b/ITMTRemote.h @@ -0,0 +1,88 @@ +/* + * MenuTunes + * ITMTRemote + * Plugin definition for audio player control via MenuTunes + * + * Original Author : Matt Judy + * Responsibility : Matt Judy + * + * Copyright (c) 2002 - 2003 iThink Software. + * All Rights Reserved + * + * This header defines the Objective-C protocol which all MenuTunes Remote + * plugins must implement. To build a remote, create a subclass of this + * object, and implement each method in the @protocol below. + * + */ + +/* + * TO DO: + * + * - Capability methods + * + */ + +#import + +@protocol ITMTRemote + ++ (id)remote; +// Return an autoreleased instance of the remote. +// Should be very quick and compact. +// EXAMPLE: +// + (id)remote +// { +// return [[[MyRemote alloc] init] autorelease]; +// } + +- (NSString *)title; +// Return the title of the remote. + +- (NSString *)description; +// Return a short description of the remote. + +- (NSImage *)icon; +// Return a 16x16 icon representation for the remote. + +- (BOOL)begin; +// Sent to the plugin when it should begin operation. + +- (BOOL)halt; +// Sent to the plugin when it should cease operation. + +- (NSArray *)sources; +- (int)currentSourceIndex; + +- (NSArray *)playlistsForCurrentSource; +- (int)currentPlaylistIndex; + +- (NSString *)songTitleAtIndex; +- (int)currentSongIndex; + +- (NSString *)currentSongTitle; +- (NSString *)currentSongArtist; +- (NSString *)currentSongAlbum; +- (NSString *)currentSongGenre; +- (NSString *)currentSongLength; +- (NSString *)currentSongRemaining; + +- (NSArray *)eqPresets; + +- (BOOL)play; +- (BOOL)pause; +- (BOOL)goToNextSong; +- (BOOL)goToPreviousSong; +- (BOOL)goToNextPlaylist; +- (BOOL)goToPreviousPlaylist; + +- (BOOL)switchToSourceAtIndex:(int)index; +- (BOOL)switchToPlaylistAtIndex:(int)index; +- (BOOL)switchToSongAtIndex:(int)index; +- (BOOL)switchToEQAtIndex:(int)index; + +@end + + +@interface ITMTRemote : NSObject + +@end diff --git a/ITMTRemote.m b/ITMTRemote.m new file mode 100755 index 0000000..9baf3f2 --- /dev/null +++ b/ITMTRemote.m @@ -0,0 +1,128 @@ +#import "ITMTRemote.h" + + +@implementation ITMTRemote + ++ (id)remote +{ + return nil; +} + +- (NSString *)title +{ + return nil; +} + +- (NSString *)description +{ + return nil; +} + +- (NSImage *)icon +{ + return nil; +} + +- (NSArray *)sources +{ + return nil; +} + +- (NSArray *)playlistsForCurrentSource +{ + return nil; +} + + +- (NSArray *)songsForCurrentPlaylist +{ + return nil; +} + +- (NSString *)currentSongTitle +{ + return nil; +} + +- (NSString *)currentSongArtist +{ + return nil; +} + +- (NSString *)currentSongAlbum +{ + return nil; +} + +- (NSString *)currentSongGenre +{ + return nil; +} + +- (NSString *)currentSongLength +{ + return nil; +} + +- (NSString *)currentSongRemaining +{ + return nil; +} + +- (NSArray *)eqPresets; +{ + return nil; +} + +- (BOOL)play +{ + return NO; +} + +- (BOOL)pause +{ + return NO; +} + +- (BOOL)goToNextSong +{ + return NO; +} + +- (BOOL)goToPreviousSong +{ + return NO; +} + +- (BOOL)goToNextPlaylist +{ + return NO; +} + +- (BOOL)goToPreviousPlaylist +{ + return NO; +} + +- (BOOL)switchToSourceAtIndex:(int)index +{ + return NO; +} + +- (BOOL)switchToPlaylistAtIndex:(int)index +{ + return NO; +} + +- (BOOL)switchToSongAtIndex:(int)index +{ + return NO; +} + +- (BOOL)switchToEQAtIndex:(int)index +{ + return NO; +} + + +@end diff --git a/iTunesRemote.h b/iTunesRemote.h new file mode 100755 index 0000000..0fbfa55 --- /dev/null +++ b/iTunesRemote.h @@ -0,0 +1,21 @@ +// +// iTunesRemoteControl.h +// MenuTunes +// +// Created by Matt L. Judy on Sun Jan 05 2003. +// Copyright (c) 2003 NibFile.com. All rights reserved. +// + + +#import +#import +#import + + +@interface iTunesRemote : ITMTRemote +{ + +} + + +@end diff --git a/iTunesRemote.m b/iTunesRemote.m new file mode 100755 index 0000000..2773358 --- /dev/null +++ b/iTunesRemote.m @@ -0,0 +1,7 @@ +#import "iTunesRemote.h" + + +@implementation iTunesRemote + + +@end -- 2.20.1