forked from tomcool420/SMFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSMFMoviePreviewDelegateDatasource.h
42 lines (38 loc) · 1.35 KB
/
SMFMoviePreviewDelegateDatasource.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
//
// SMFMoviePreviewDelegateDatasource.h
// SMFramework
//
// Created by Thomas Cool on 7/13/11.
// Copyright 2011 tomcool.org. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Backrow/AppleTV.h"
@protocol SMFMoviePreviewControllerDatasource
-(NSString *)title;
-(NSString *)subtitle;
-(NSString *)summary;
-(NSArray *)headers;
-(NSArray *)columns;
-(NSString *)rating;
-(BRImage *)coverArt;
-(BRPhotoDataStoreProvider *)providerForShelf;
@optional
-(NSString *)shelfTitle;
-(NSArray *)buttons;
-(NSString *)posterPath;
@end
@class SMFMoviePreviewController;
@protocol SMFMoviePreviewControllerDelegate
//If a delegate responds to a method...
//it needs to implement the sounds for selection itself
//See SMFThemeInfo or BRSoundHandler
-(void)controller:(SMFMoviePreviewController *)c selectedControl:(BRControl *)ctrl;
@optional
-(void)controller:(SMFMoviePreviewController *)c buttonSelectedAtIndex:(int)index;
-(void)controller:(SMFMoviePreviewController *)c switchedFocusTo:(BRControl *)newControl;
-(void)controller:(SMFMoviePreviewController *)c shelfLastIndex:(long)index;
-(void)controllerSwitchToNext:(SMFMoviePreviewController *)c ;
-(void)controllerSwitchToPrevious:(SMFMoviePreviewController *)c ;
-(BOOL)controllerCanSwitchToNext:(SMFMoviePreviewController *)c ;
-(BOOL)controllerCanSwitchToPrevious:(SMFMoviePreviewController *)c;
@end