forked from tomcool420/SMFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMFMediaMenuController.h
91 lines (80 loc) · 2.21 KB
/
SMFMediaMenuController.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//
// SMFMediaMenuController.h
// SMFramework
//
// Created by Thomas Cool on 10/22/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
#import "Backrow/AppleTV.h"
#import <Foundation/Foundation.h>
#import "SMFDefines.h"
/**
*Default Menu Controller. what should be subclassed to create simple menu. Examples are provided in the .m file
*
*
*/
@interface SMFMediaMenuController : BRMediaMenuController <BRMenuListItemProvider> {
NSMutableArray *_items;
NSMutableArray *_options;
BRDropShadowControl * popupControl;
}
/**
* a instance of BRDropShadowControl
*/
@property (retain) BRDropShadowControl * popupControl;
/**
*Method used to show the popupControl
*/
-(void)showPopup;
/**
*Method used to hide the popupControl
*/
-(void)hidePopup;
/*
* Datasource Methods
*/
//-(float)heightForRow:(long)row;
//-(BOOL)rowSelectable:(long)row;
//-(long)itemCount;
//-(id)itemForRow:(long)row;
//-(id)titleForRow:(long)row;
/*
* Deprecated method that should not be used
*/
-(long)rowForTitle:(id)title;
/**
* Something that is called everytime wasExhumed, reload or controlWasActivated is.
*/
-(void)everyLoad;
/**
*A method used to check which row the list is on
*@return index of item selected
*/
-(int)getSelection;
/**
* A method used to change the list selection
*@param sel index of item to select
*/
- (void)setSelection:(int)sel;
/**
* Action Called Every Time someone Presses on Left Arrow
*@param row index of the row selected when the left arrow was pressed
*@note this method should never be called manually. instead it should be overwritten in
* subclasses
*/
-(void)leftActionForRow:(long)row;
/**
* Action Called Every Time someone Presses on Right Arrow
*@param row index of the row selected when the right arrow was pressed
*@note this method should never be called manually. instead it should be overwritten in
* subclasses
*/
-(void)rightActionForRow:(long)row;
/**
* Action Called Every Time someone Presses on Play Pause (silver remote)
*@param row index of the row selected when the play-pause buttom was pressed
*@note this method should never be called manually. instead it should be overwritten in
* subclasses
*/
-(void)playPauseActionForRow:(long)row;
@end