Incremental MT Checkin, adding the plugin files, and major project structure changes.
authorMatthew Judy <mjudy@ithinksw.com>
Tue, 4 Feb 2003 17:30:44 +0000 (17:30 +0000)
committerMatthew Judy <mjudy@ithinksw.com>
Tue, 4 Feb 2003 17:30:44 +0000 (17:30 +0000)
ITMTRemote.h [new file with mode: 0755]
ITMTRemote.m [new file with mode: 0755]
iTunesRemote.h [new file with mode: 0755]
iTunesRemote.m [new file with mode: 0755]

diff --git a/ITMTRemote.h b/ITMTRemote.h
new file mode 100755 (executable)
index 0000000..b2e2d5e
--- /dev/null
@@ -0,0 +1,88 @@
+/*
+ *  MenuTunes
+ *  ITMTRemote
+ *    Plugin definition for audio player control via MenuTunes
+ *
+ *  Original Author : Matt Judy <mjudy@ithinksw.com>
+ *   Responsibility : Matt Judy <mjudy@ithinksw.com>
+ *
+ *  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 <Cocoa/Cocoa.h>
+
+@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 <ITMTRemote>
+
+@end
diff --git a/ITMTRemote.m b/ITMTRemote.m
new file mode 100755 (executable)
index 0000000..9baf3f2
--- /dev/null
@@ -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 (executable)
index 0000000..0fbfa55
--- /dev/null
@@ -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 <Cocoa/Cocoa.h>
+#import <ITMTRemote/ITMTRemote.h>
+#import <ITFoundation/ITFoundation.h>
+
+
+@interface iTunesRemote : ITMTRemote <ITMTRemote>
+{
+    
+}
+
+
+@end
diff --git a/iTunesRemote.m b/iTunesRemote.m
new file mode 100755 (executable)
index 0000000..2773358
--- /dev/null
@@ -0,0 +1,7 @@
+#import "iTunesRemote.h"
+
+
+@implementation iTunesRemote
+
+
+@end