-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSMFEventManager.h
57 lines (52 loc) · 1.57 KB
/
SMFEventManager.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
//
// SMFEventManager.h
// SMFramework
//
// Created by Thomas Cool on 10/31/10.
// Copyright 2010 tomcool.org. All rights reserved.
//
#import "Backrow/AppleTV.h"
#import "SynthesizeSingleton.h"
#import "SMFEvent.h"
@protocol SMFEventDelegate
-(void)actionForEvent:(SMFEvent *)event;
-(NSString *)displayName;
@optional
-(BRImage *)icon;
-(NSString *)displayNameForEventKey:(NSString *)event;
@end
@interface SMFEventManager : NSObject {
NSMutableDictionary * _delegates;
NSMutableDictionary * _keys;
NSMutableDictionary * _remoteActionKeys;
NSMutableDictionary * _listeners;
NSMutableSet * _listenerSet;
BOOL _learning;
}
+(SMFEventManager *)sharedManager;
-(void)registerListener:(id<SMFEventDelegate>)listener forName:(NSString *)name;
-(void)registerListener:(id<SMFEventDelegate>)listener forNames:(NSArray*)names;
-(void)setKey:(NSString *)key forName:(NSString *)name;
-(void)setRemoteAction:(int)action forName:(NSString *)name;
-(void)callEventForAction:(NSString *)key;
-(BOOL)callEventForRemoteAction:(int)action;
-(void)callEventForBREvent:(BREvent *)event;
-(BOOL)actionDefinedForKey:(NSString *)key;
-(BOOL)actionDefinedForAction:(int)action;
-(NSArray *)listeners;
-(NSArray *)eventsForListener:(id<SMFEventDelegate>)listener;
-(void)startLearning;
-(void)stopLearning;
-(void)loadInformation;
@end
@interface SMFDefaultEvents : NSObject<SMFEventDelegate>
{
}
+(SMFDefaultEvents *)sharedDefaults;
-(void)takeScreenshot;
-(void)restartLowtide;
-(void)configureEventManager;
-(void)startSlideshowController;
-(void)test1;
-(void)test2;
@end