Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (29 sloc) 0.995 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
11 @protocol SGMediaItem, SGMediaPlaylist;
12
13 @protocol SGCarouselItem <NSObject>
14
15 - (id <SGMediaPlaylist>)previousPlaylist;
16 - (id <SGMediaPlaylist>)nextPlaylist;
17 @property (readwrite, retain) id <SGMediaPlaylist> currentPlaylist;
18 @property (readwrite, retain) NSArray *playlists;
19
20 @end
21
22 @protocol SGMediaItem <NSObject>
23
24 - (void)togglePlay:(id)sender;
25 @property (readwrite, retain) UIImage *thumbnail;
26 @property (readwrite, retain) NSString *title;
27 @property (readwrite, retain) NSString *album;
28 @property (readwrite, retain) NSString *artist;
29
30 @end
31
32 @protocol SGMediaPlaylist <NSObject>
33
34 - (id <SGMediaItem>)previousItem;
35 - (id <SGMediaItem>)nextItem;
36 - (void)playItem:(id <SGMediaItem>)item;
37 @property (readwrite, retain) NSString *title;
38 @property (readwrite, retain) id <SGMediaItem> currentItem;
39
40 @end
Something went wrong with that request. Please try again.