forked from robbiehanson/AlarmClock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ITunesPlayer.h
62 lines (44 loc) · 1.14 KB
/
ITunesPlayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#import <Cocoa/Cocoa.h>
#import <QTKit/QTKit.h>
@class ITunesData;
@interface ITunesPlayer : NSObject
{
// iTunesData reference
ITunesData *iTunesData;
// The current movie this object is playing
QTMovie *movie;
// Volume percentage at which to play movies
float volumePercentage;
// Current type (file, track, playlist), and information
NSDictionary *currentTrack;
int type;
// Playlist Information
BOOL shouldShuffle;
int playlistIndex;
NSMutableArray *playlist;
// Delegate
id delegate;
}
- (id)initWithITunesData:(ITunesData *)dataReference;
- (void)setFileWithPath:(NSString *)file;
- (void)setTrackWithTrackID:(int)trackID;
- (void)setPlaylistWithPlaylistID:(int)playlistID usesShuffle:(BOOL)shuffleFlag;
- (BOOL)isPlaying;
- (BOOL)isFile;
- (BOOL)isTrack;
- (BOOL)isPlaylist;
- (void)play;
- (void)stop;
- (void)nextTrack;
- (void)previousTrack;
- (NSDictionary *)currentTrack;
- (void)setVolume:(float)volume;
- (void)setDelegate:(id)delegate;
- (id)delegate;
@end
/**
Method definitions for the delegate of the ITunesPlayer class
**/
@interface NSObject (ITunesPlayerDelegate)
- (void)iTunesPlayerChangedSong;
@end