From a9d5b3cd79988d85110185fafa9c4a38afe2027a Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Sun, 7 Sep 2003 22:54:03 +0000 Subject: [PATCH] Removing new API additions... --- iTunesPlayer.h | 17 ---------- iTunesPlayer.m | 87 ------------------------------------------------ iTunesPlaylist.h | 17 ---------- iTunesPlaylist.m | 25 -------------- iTunesTrack.h | 17 ---------- iTunesTrack.m | 24 ------------- 6 files changed, 187 deletions(-) delete mode 100755 iTunesPlayer.h delete mode 100755 iTunesPlayer.m delete mode 100755 iTunesPlaylist.h delete mode 100755 iTunesPlaylist.m delete mode 100755 iTunesTrack.h delete mode 100755 iTunesTrack.m diff --git a/iTunesPlayer.h b/iTunesPlayer.h deleted file mode 100755 index ab8505b..0000000 --- a/iTunesPlayer.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// iTunesPlayer.h -// MenuTunes -// -// Created by Joseph Spiros on Sat Sep 06 2003. -// Copyright (c) 2003 __MyCompanyName__. All rights reserved. -// - -#import -#import -#import - -@interface iTunesPlayer : ITMTPlayer { - iTunesRemote *_remote; -} - -@end diff --git a/iTunesPlayer.m b/iTunesPlayer.m deleted file mode 100755 index 1c7f225..0000000 --- a/iTunesPlayer.m +++ /dev/null @@ -1,87 +0,0 @@ -/* Copyright (c) 2002 - 2003 by iThink Software. All Rights Reserved. */ - -#import "iTunesPlayer.h" - -@implementation iTunesPlayer - -static iTunesPlayer *_sharediTunesPlayer = nil; - -+ (id)sharedPlayerForRemote:(iTunesRemote *)remote { - if ( _sharediTunesPlayer ) { - _remote = remote; - return _sharediTunesPlayer; - } else { - _remote = remote; - return _sharediTunesPlayer = [[iTunesPlayer alloc] init]; - } -} - -- (BOOL)writable { - return NO; -} - -- (BOOL)show { - return NO; -} - -- (BOOL)setValue:(id)value forProperty:(ITMTGenericProperty)property { - return NO; -} - -- (id)valueOfProperty:(ITMTGenericProperty)property { - if ( ( property == ITMTNameProperty ) { - return @"iTunes"; - } else if ( ( property == ITMTImageProperty ) { - return nil; - } else { - return nil; - } -} - -- (NSDictionary *)propertiesAndValues { - return [NSDictionary dictionaryWithObjectsAndKeys:@"iTunes",@"ITMTNameProperty",nil,@"ITMTImageProperty"]; -} - -- (ITMTRemote *)remote { - return _remote; -} - -- (ITMTPlaylist *)currentPlaylist { - int tIndex; - if ( ( tIndex = [[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKeyForNumber:@"pidx" fromObjectByKey:@"pPla" eventClass:@"core" eventID:@"getd" appPSN:savedPSN] ) ) { - return [iTunesPlaylist playlistWithIndex:tIndex]; - } else { - return nil; - } -} - -- (ITMTTrack *)currentTrack { - int tDIndex; - if ( ( tDindex = [[ITAppleEventCenter sharedCenter] sendTwoTierAEWithRequestedKeyForNumber:@"pDID" fromObjectByKey:@"pTrk" eventClass:@"core" eventID:@"getd" appPSN:savedPSN] ) ) { - return [iTunesTrack trackWithDatabaseIndex:tDIndex]; - } else { - return nil; - } -} - -- (ITMTEqualizer *)currentEqualizer { - // return dynamically from an AE -} - -- (NSArray *)playlists { - // return dynamically from an AE -} - -- (NSArray *)tracks { - // return dynamically from an AE -} - -- (ITMTPlaylist *)libraryPlaylist { - // return dynamically from an AE -} - -- (NSArray *)equalizers { - // return dynamically from an AE -} - -@end diff --git a/iTunesPlaylist.h b/iTunesPlaylist.h deleted file mode 100755 index ae7ada9..0000000 --- a/iTunesPlaylist.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// iTunesPlaylist.h -// MenuTunes -// -// Created by Joseph Spiros on Sat Sep 06 2003. -// Copyright (c) 2003 __MyCompanyName__. All rights reserved. -// - -#import - - -@interface iTunesPlaylist : ITMTPlaylist { - int _index; -} -+ (id)playlistWithIndex:(int)index; -- (id)initWithIndex:(int)index; -@end diff --git a/iTunesPlaylist.m b/iTunesPlaylist.m deleted file mode 100755 index 60c01a5..0000000 --- a/iTunesPlaylist.m +++ /dev/null @@ -1,25 +0,0 @@ -// -// iTunesPlaylist.m -// MenuTunes -// -// Created by Joseph Spiros on Sat Sep 06 2003. -// Copyright (c) 2003 __MyCompanyName__. All rights reserved. -// - -#import "iTunesPlaylist.h" - - -@implementation iTunesPlaylist - -+ (id)playlistWithIndex:(int)index { - return [[[iTunesPlaylist alloc] initWithIndex:index] autorelease]; -} - -- (id)initWithIndex:(int)index { - if ( ( self = [super init] ) ) { - _index = index; - } - return self; -} - -@end diff --git a/iTunesTrack.h b/iTunesTrack.h deleted file mode 100755 index 920c1fb..0000000 --- a/iTunesTrack.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// iTunesTrack.h -// MenuTunes -// -// Created by Joseph Spiros on Sat Sep 06 2003. -// Copyright (c) 2003 __MyCompanyName__. All rights reserved. -// - -#import - - -@interface iTunesTrack : ITMTTrack { - int _index; -} -+ (id)trackWithDatabaseIndex:(int)index; -- (id)initWithDatabaseIndex:(int)index; -@end diff --git a/iTunesTrack.m b/iTunesTrack.m deleted file mode 100755 index 7b3a813..0000000 --- a/iTunesTrack.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// iTunesTrack.m -// MenuTunes -// -// Created by Joseph Spiros on Sat Sep 06 2003. -// Copyright (c) 2003 __MyCompanyName__. All rights reserved. -// - -#import "iTunesTrack.h" - -@implementation iTunesTrack - -+ (id)trackWithDatabaseIndex:(int)index { - return [[[iTunesTrack alloc] initWithIndex:index] autorelease]; -} - -- (id)initWithDatabaseIndex:(int)index { - if ( ( self = [super init] ) ) { - _index = index; - } - return self; -} - -@end -- 2.20.1