*/
- (BOOL)halt;
-- (NSArray *)sources;
-- (int)currentSourceIndex;
-- (NSString *)sourceTypeOfCurrentPlaylist;
-
-- (NSArray *)playlistsForCurrentSource;
+- (int)numberOfSongsInPlaylistAtIndex:(int)index;
+- (NSString *)classOfPlaylistAtIndex:(int)index;
- (int)currentPlaylistIndex;
-- (NSString *)songTitleAtIndex;
+- (NSString *)songTitleAtIndex:(int)index;
- (int)currentSongIndex;
- (NSString *)currentSongTitle;
- (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;
return NO;
}
-- (NSArray *)sources
+- (int)numberOfSongsInPlaylistAtIndex:(int)index
{
- return nil;
-}
-
-- (int)currentSourceIndex
-{
- return nil;
+ return 0;
}
-- (NSString *)sourceTypeOfCurrentPlaylist
-{
- return nil;
-}
-
-- (NSArray *)playlistsForCurrentSource
+- (NSString *)classOfPlaylistAtIndex:(int)index
{
return nil;
}
return nil;
}
-- (NSString *)songTitleAtIndex
+- (NSString *)songTitleAtIndex:(int)index
{
return nil;
}
return NO;
}
-- (BOOL)goToNextPlaylist
-{
- return NO;
-}
-
-- (BOOL)goToPreviousPlaylist
-{
- return NO;
-}
-
-- (BOOL)switchToSourceAtIndex:(int)index
-{
- return NO;
-}
-
- (BOOL)switchToPlaylistAtIndex:(int)index
{
return NO;
return YES;
}
-- (NSArray *)sources
+- (int)numberOfSongsInPlaylistAtIndex:(int)index
{
- //This is probably unneeded
- return nil;
-}
-
-- (int)currentSourceIndex
-{
- //This is probably unneeded
- return nil;
+ return [[ITAppleEventCenter sharedCenter]
+ sendAEWithSendStringForNumber:@"cPla"
+ eventClass:@"core" eventID:@"cnte"
+ appPSN:[self iTunesPSN]];
}
-- (NSArray *)playlistsForCurrentSource
-{
- //This is probably unneeded
- return nil;
-}
-
-- (NSString *)sourceTypeOfCurrentPlaylist
+- (NSString *)classOfPlaylistAtIndex:(int)index
{
//Not working yet. It returns the 4 character code instead of a name.
NSString *result;
return result;
}
-- (NSString *)songTitleAtIndex
+- (NSString *)songTitleAtIndex:(int)index
{
return nil;
}
- (BOOL)goToNextSong
{
- [[ITAppleEventCenter sharedCenter] sendAEWithEventClass:@"hook" eventID:@"Next"
- appPSN:[self iTunesPSN]];
+ [self numberOfSongsInPlaylistAtIndex:1];
+ //[[ITAppleEventCenter sharedCenter] sendAEWithEventClass:@"hook" eventID:@"Next"
+ // appPSN:[self iTunesPSN]];
return YES;
}
return YES;
}
-- (BOOL)goToNextPlaylist
-{
- //This is probably unneeded
- return NO;
-}
-
-- (BOOL)goToPreviousPlaylist
-{
- //This is probably unneeded
- return NO;
-}
-
-- (BOOL)switchToSourceAtIndex:(int)index
-{
- //This is probably unneeded
- return NO;
-}
-
- (BOOL)switchToPlaylistAtIndex:(int)index
{
return NO;