Post active mapping changes through notification center rather than to the applicatio...
[enjoyable.git] / Config.h
index d118262..606529d 100644 (file)
--- a/Config.h
+++ b/Config.h
@@ -6,18 +6,17 @@
 //  Copyright 2009 University of Otago. All rights reserved.
 //
 
-#import <Foundation/Foundation.h>
-
 @class Target;
 @class JSAction;
 
 @interface Config : NSObject
 
-@property (assign) BOOL protect;
-@property (copy) NSString *name;
-@property (readonly) NSMutableDictionary *entries;
+@property (nonatomic, copy) NSString *name;
+@property (nonatomic, readonly) NSMutableDictionary *entries;
 
-- (void)setTarget:(Target *)target forAction:(JSAction *)jsa;
-- (Target *)getTargetForAction:(JSAction *)sa;
+- (id)initWithName:(NSString *)name;
+- (Target *)objectForKeyedSubscript:(JSAction *)action;
+- (void)setObject:(Target *)target forKeyedSubscript:(JSAction *)action;
+- (NSDictionary *)serialize;
 
 @end