Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (52 sloc) 1.612 kb
e5c326fb »
2010-11-12 first commit
1 //
2 // SMFEventManager.h
3 // SMFramework
4 //
5 // Created by Thomas Cool on 10/31/10.
6 // Copyright 2010 tomcool.org. All rights reserved.
7 //
f3acee3e »
2011-07-19 Header Changes
8 #import "Backrow/AppleTV.h"
e5c326fb »
2010-11-12 first commit
9 #import "SynthesizeSingleton.h"
10 #import "SMFEvent.h"
11 @protocol SMFEventDelegate
12 -(void)actionForEvent:(SMFEvent *)event;
13 -(NSString *)displayName;
14 @optional
15 -(BRImage *)icon;
16 -(NSString *)displayNameForEventKey:(NSString *)event;
17 @end
18
19
20 @interface SMFEventManager : NSObject {
21 NSMutableDictionary * _delegates;
22 NSMutableDictionary * _keys;
23 NSMutableDictionary * _remoteActionKeys;
24 NSMutableDictionary * _listeners;
25 NSMutableSet * _listenerSet;
26 BOOL _learning;
27 }
28 +(SMFEventManager *)sharedManager;
29 -(void)registerListener:(id<SMFEventDelegate>)listener forName:(NSString *)name;
30 -(void)registerListener:(id<SMFEventDelegate>)listener forNames:(NSArray*)names;
31
32 -(void)setKey:(NSString *)key forName:(NSString *)name;
33 -(void)setRemoteAction:(int)action forName:(NSString *)name;
34 -(void)callEventForAction:(NSString *)key;
35 -(BOOL)callEventForRemoteAction:(int)action;
36 -(void)callEventForBREvent:(BREvent *)event;
37 -(BOOL)actionDefinedForKey:(NSString *)key;
38 -(BOOL)actionDefinedForAction:(int)action;
39 -(NSArray *)listeners;
40 -(NSArray *)eventsForListener:(id<SMFEventDelegate>)listener;
41 -(void)startLearning;
42 -(void)stopLearning;
43 -(void)loadInformation;
44 @end
45 @interface SMFDefaultEvents : NSObject<SMFEventDelegate>
46 {
47 }
48 +(SMFDefaultEvents *)sharedDefaults;
49 -(void)takeScreenshot;
50 -(void)restartLowtide;
51 -(void)configureEventManager;
52 -(void)startSlideshowController;
53 -(void)test1;
54 -(void)test2;
55
56 @end
57
Something went wrong with that request. Please try again.