-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSGIPodSource.h
53 lines (43 loc) · 1.62 KB
/
SGIPodSource.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
//
// SGIPodSource.h
// SongGong
//
// Created by Arshad Tayyeb on 7/16/11.
// Copyright 2011 doubleTwist Corporation. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SGCarouselProtocols.h"
@class MPMusicPlayerController;
@interface SGIPodSource : NSObject <SGCarouselItem>
- (void)play:(id)sender;
- (void)togglePlay:(id)sender;
- (void)stop:(id)sender;
- (id <SGMediaPlaylist>)previousPlaylist;
- (id <SGMediaPlaylist>)nextPlaylist;
@property (readwrite, retain) id <SGMediaItem> currentItem;
@property (readwrite, retain) NSString *sourceName;
@property (nonatomic, retain) id <SGMediaPlaylist> currentPlaylist;
@property (readwrite, retain) NSArray *playlists;
@property (readwrite, assign) id<SGSourceDelegate> delegate;
@end
@interface SGIPodPlaylist : NSObject <SGMediaPlaylist>
- (id <SGMediaItem>)previousItem;
- (id <SGMediaItem>)nextItem;
- (void)playItem:(id <SGMediaItem>)item;
@property (readwrite, retain) NSString *title;
@property (readwrite, retain) id <SGMediaItem> currentItem;
@property (readwrite, retain) NSArray *itemIds;
@property (readwrite, retain) NSString *persistentId;
@end
@class SGIPodItem, SGIPodPlaylist;
@interface SGIPodItem : NSObject <SGMediaItem>
- (void)togglePlay:(id)sender;
@property (readwrite, retain) MPMusicPlayerController *player;
@property (readwrite, retain) NSTimer *updateTimer;
@property (readonly) UIImage *thumbnail;
@property (readwrite, retain) NSString *title;
@property (readwrite, retain) NSString *album;
@property (readwrite, retain) NSString *artist;
@property (readwrite, retain) NSString *persistentId;
- (void) playbackStateChanged:(id)notification;
@end