Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (53 sloc) 1.897 kb
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
1 //
2 // SGCarouselProtocols.h
3 // SongGong
4 //
5 // Created by Daniel DeCovnick on 7/16/11.
6 // Copyright 2011 doubleTwist Corporation. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
deb5ecb Arshad Tayyeb Separate SGSourceViewController and SGSource protocols; make carousel ta...
snarshad authored
11 @protocol SGMediaItem, SGMediaPlaylist, SGCarouselItem;
12
13 @protocol SGCarouselItemViewController <NSObject>
14 @property (readwrite, retain) id <SGCarouselItem> source;
15 @property (readonly, retain) UIView *carouselDisplayView;
115a380 Daniel DeCovnick Merge from previous pull, add album-art-to-icon transition, view.
authored
16 @optional
17 -(void)carouselWillBringViewToFront;
18 -(void)carouselWillSendViewToBack;
19 -(void)carouselDidSendViewToBack;
20 -(void)carouselDidBringViewToFront;
57e4b96 Arshad Tayyeb Adding Carousel icons, and animation for generic view; ability to change...
snarshad authored
21 -(void)popGenericPlayer;
deb5ecb Arshad Tayyeb Separate SGSourceViewController and SGSource protocols; make carousel ta...
snarshad authored
22 @end
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
23
24 @protocol SGCarouselItem <NSObject>
8e63664 Arshad Tayyeb Added real media player control from source
snarshad authored
25 - (void)togglePlay:(id)sender;
26 - (void)stop:(id)sender;
318dff3 Arshad Tayyeb Make the current item available from the Source; play and pause works co...
snarshad authored
27
28 - (void)playNextItem;
29 - (void)playPreviousItem;
30
0e88a35 Arshad Tayyeb Better explosions
snarshad authored
31 - (void)playPreviousPlaylist;
32 - (void)playNextPlaylist;
33
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
34 - (id <SGMediaPlaylist>)previousPlaylist;
35 - (id <SGMediaPlaylist>)nextPlaylist;
318dff3 Arshad Tayyeb Make the current item available from the Source; play and pause works co...
snarshad authored
36 @property (readwrite, retain) id <SGMediaItem> currentItem;
4f97fff Arshad Tayyeb Merged changes, added placeholder iPod Source
snarshad authored
37 @property (readwrite, retain) NSString *sourceName;
b077e6e Arshad Tayyeb Better playlist switching
snarshad authored
38 @property (nonatomic, retain) id <SGMediaPlaylist> currentPlaylist;
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
39 @property (readwrite, retain) NSArray *playlists;
ea092ab Daniel DeCovnick Finishing off the detail view elements, and configuration for iPod Sourc...
authored
40 @property (readwrite, retain) UIColor *splashColor;
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
41
42 @end
43
44 @protocol SGMediaItem <NSObject>
45
46 - (void)togglePlay:(id)sender;
8e63664 Arshad Tayyeb Added real media player control from source
snarshad authored
47 @property (readonly) UIImage *thumbnail;
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
48 @property (readwrite, retain) NSString *title;
49 @property (readwrite, retain) NSString *album;
50 @property (readwrite, retain) NSString *artist;
c015f86 Daniel DeCovnick Hooking up the progress bar, artwork in the detail view
authored
51 @property (readonly, assign) float progress;
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
52
53 @end
54
55 @protocol SGMediaPlaylist <NSObject>
56
57 - (id <SGMediaItem>)previousItem;
58 - (id <SGMediaItem>)nextItem;
59 - (void)playItem:(id <SGMediaItem>)item;
60 @property (readwrite, retain) NSString *title;
61 @property (readwrite, retain) id <SGMediaItem> currentItem;
62
57e4b96 Arshad Tayyeb Adding Carousel icons, and animation for generic view; ability to change...
snarshad authored
63 @end
64
65 @protocol SGSourceDelegate <NSObject>
66
67 - (void)playlistWillChange:(NSString *)newPlaylistName direction:(int)direction;
d9f0655 Arshad Tayyeb bunch of UI fixes
snarshad authored
68 - (void)mediaDidChange:(id <SGMediaItem>)media;
57e4b96 Arshad Tayyeb Adding Carousel icons, and animation for generic view; ability to change...
snarshad authored
69
911cd7a Daniel DeCovnick Adding SGCarouselProtocols.h
authored
70 @end
Something went wrong with that request. Please try again.