Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 92 lines (80 sloc) 2.26 kb
e5c326f tomcool420 first commit
authored
1 //
2 // SMFMediaMenuController.h
2cfce68 tomcool420 all update
authored
3 // SMFramework
e5c326f tomcool420 first commit
authored
4 //
5 // Created by Thomas Cool on 10/22/10.
6 // Copyright 2010 tomcool.org. All rights reserved.
7 //
f3acee3 tomcool420 Header Changes
authored
8 #import "Backrow/AppleTV.h"
e5c326f tomcool420 first commit
authored
9 #import <Foundation/Foundation.h>
10 #import "SMFDefines.h"
062318d tomcool420 docset
authored
11 /**
12 *Default Menu Controller. what should be subclassed to create simple menu. Examples are provided in the .m file
13 *
14 *
15 */
2cfce68 tomcool420 all update
authored
16 @interface SMFMediaMenuController : BRMediaMenuController <BRMenuListItemProvider> {
e5c326f tomcool420 first commit
authored
17 NSMutableArray *_items;
18 NSMutableArray *_options;
6b5a0fc tomcool420 general update
authored
19 BRDropShadowControl * popupControl;
e5c326f tomcool420 first commit
authored
20 }
062318d tomcool420 docset
authored
21 /**
22 * a instance of BRDropShadowControl
2cfce68 tomcool420 all update
authored
23 */
24 @property (retain) BRDropShadowControl * popupControl;
e5c326f tomcool420 first commit
authored
25
062318d tomcool420 docset
authored
26 /**
27 *Method used to show the popupControl
2cfce68 tomcool420 all update
authored
28 */
6b5a0fc tomcool420 general update
authored
29 -(void)showPopup;
062318d tomcool420 docset
authored
30 /**
31 *Method used to hide the popupControl
32 */
6b5a0fc tomcool420 general update
authored
33 -(void)hidePopup;
2cfce68 tomcool420 all update
authored
34
35
36 /*
37 * Datasource Methods
38 */
39 //-(float)heightForRow:(long)row;
40 //-(BOOL)rowSelectable:(long)row;
41 //-(long)itemCount;
42 //-(id)itemForRow:(long)row;
43 //-(id)titleForRow:(long)row;
44
45 /*
46 * Deprecated method that should not be used
47 */
e5c326f tomcool420 first commit
authored
48 -(long)rowForTitle:(id)title;
2cfce68 tomcool420 all update
authored
49
062318d tomcool420 docset
authored
50 /**
51 * Something that is called everytime wasExhumed, reload or controlWasActivated is.
2cfce68 tomcool420 all update
authored
52 */
062318d tomcool420 docset
authored
53 -(void)everyLoad;
e5c326f tomcool420 first commit
authored
54
062318d tomcool420 docset
authored
55 /**
56 *A method used to check which row the list is on
57 *@return index of item selected
2cfce68 tomcool420 all update
authored
58 */
59 -(int)getSelection;
60
062318d tomcool420 docset
authored
61 /**
2cfce68 tomcool420 all update
authored
62 * A method used to change the list selection
062318d tomcool420 docset
authored
63 *@param sel index of item to select
2cfce68 tomcool420 all update
authored
64 */
65
e5c326f tomcool420 first commit
authored
66 - (void)setSelection:(int)sel;
062318d tomcool420 docset
authored
67 /**
e5c326f tomcool420 first commit
authored
68 * Action Called Every Time someone Presses on Left Arrow
062318d tomcool420 docset
authored
69 *@param row index of the row selected when the left arrow was pressed
70 *@note this method should never be called manually. instead it should be overwritten in
71 * subclasses
e5c326f tomcool420 first commit
authored
72 */
73 -(void)leftActionForRow:(long)row;
74
062318d tomcool420 docset
authored
75 /**
e5c326f tomcool420 first commit
authored
76 * Action Called Every Time someone Presses on Right Arrow
062318d tomcool420 docset
authored
77 *@param row index of the row selected when the right arrow was pressed
78 *@note this method should never be called manually. instead it should be overwritten in
79 * subclasses
e5c326f tomcool420 first commit
authored
80 */
81 -(void)rightActionForRow:(long)row;
82
062318d tomcool420 docset
authored
83 /**
84 * Action Called Every Time someone Presses on Play Pause (silver remote)
85 *@param row index of the row selected when the play-pause buttom was pressed
86 *@note this method should never be called manually. instead it should be overwritten in
87 * subclasses
6ba05a7 tomcool420 adding check for seatbelt
authored
88 */
89 -(void)playPauseActionForRow:(long)row;
2cfce68 tomcool420 all update
authored
90
e5c326f tomcool420 first commit
authored
91 @end
Something went wrong with that request. Please try again.