Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (53 sloc) 1.897 kB
911cd7a @danhd123 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 @snarshad Separate SGSourceViewController and SGSource protocols; make carousel…
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 @danhd123 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 @snarshad Adding Carousel icons, and animation for generic view; ability to cha…
snarshad authored
21 -(void)popGenericPlayer;
deb5ecb @snarshad Separate SGSourceViewController and SGSource protocols; make carousel…
snarshad authored
22 @end
911cd7a @danhd123 Adding SGCarouselProtocols.h
authored
23
24 @protocol SGCarouselItem <NSObject>
8e63664 @snarshad Added real media player control from source
snarshad authored
25 - (void)togglePlay:(id)sender;
26 - (void)stop:(id)sender;
318dff3 @snarshad Make the current item available from the Source; play and pause works…
snarshad authored
27
28 - (void)playNextItem;
29 - (void)playPreviousItem;
30
0e88a35 @snarshad Better explosions
snarshad authored
31 - (void)playPreviousPlaylist;
32 - (void)playNextPlaylist;
33
911cd7a @danhd123 Adding SGCarouselProtocols.h
authored
34 - (id <SGMediaPlaylist>)previousPlaylist;
35 - (id <SGMediaPlaylist>)nextPlaylist;
318dff3 @snarshad Make the current item available from the Source; play and pause works…
snarshad authored
36 @property (readwrite, retain) id <SGMediaItem> currentItem;
4f97fff @snarshad Merged changes, added placeholder iPod Source
snarshad authored
37 @property (readwrite, retain) NSString *sourceName;
b077e6e @snarshad Better playlist switching
snarshad authored
38 @property (nonatomic, retain) id <SGMediaPlaylist> currentPlaylist;
911cd7a @danhd123 Adding SGCarouselProtocols.h
authored
39 @property (readwrite, retain) NSArray *playlists;
ea092ab @danhd123 Finishing off the detail view elements, and configuration for iPod So…
authored
40 @property (readwrite, retain) UIColor *splashColor;
911cd7a @danhd123 Adding SGCarouselProtocols.h
authored
41
42 @end
43
44 @protocol SGMediaItem <NSObject>
45
46 - (void)togglePlay:(id)sender;
8e63664 @snarshad Added real media player control from source
snarshad authored
47 @property (readonly) UIImage *thumbnail;
911cd7a @danhd123 Adding SGCarouselProtocols.h
authored
48 @property (readwrite, retain) NSString *title;
49 @property (readwrite, retain) NSString *album;
50 @property (readwrite, retain) NSString *artist;
c015f86 @danhd123 Hooking up the progress bar, artwork in the detail view
authored
51 @property (readonly, assign) float progress;
911cd7a @danhd123 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 @snarshad Adding Carousel icons, and animation for generic view; ability to cha…
snarshad authored
63 @end
64
65 @protocol SGSourceDelegate <NSObject>
66
67 - (void)playlistWillChange:(NSString *)newPlaylistName direction:(int)direction;
d9f0655 @snarshad bunch of UI fixes
snarshad authored
68 - (void)mediaDidChange:(id <SGMediaItem>)media;
57e4b96 @snarshad Adding Carousel icons, and animation for generic view; ability to cha…
snarshad authored
69
911cd7a @danhd123 Adding SGCarouselProtocols.h
authored
70 @end
Something went wrong with that request. Please try again.