Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
805 - 1
//
2
//  InAppSetting.h
3
//  InAppSettingsTestApp
4
//
5
//  Created by David Keegan on 11/21/09.
6
//  Copyright 2009 InScopeApps{+}. All rights reserved.
7
//
8
 
9
#import <Foundation/Foundation.h>
10
 
11
@protocol InAppSettingsSpecifierDelegate;
12
@protocol InAppSettingsDatasource;
13
 
14
@interface InAppSettingsSpecifier : NSObject {
15
  NSString * stringsTable;
16
  NSDictionary * settingDictionary;
17
  id<InAppSettingsSpecifierDelegate> delegate;
18
  id<InAppSettingsDatasource> dataSource;
19
}
20
 
21
@property (nonatomic, copy) NSString * stringsTable;
22
@property (assign) id<InAppSettingsSpecifierDelegate> delegate;
23
@property (assign) id<InAppSettingsDatasource> dataSource;
24
 
25
- (NSString *) getKey;
26
- (NSString *) getType;
27
- (BOOL) isType:(NSString *)type;
28
- (id) getValue;
29
- (void) setValue:(id)newValue;
30
- (id) valueForKey:(NSString *)key;
31
- (NSString *) localizedTitle;
32
- (NSString *) cellName;
33
 
34
- (BOOL) hasTitle;
35
- (BOOL) hasKey;
36
- (BOOL) hasDefaultValue;
37
- (BOOL) isValid;
38
 
39
- (id) initWithDictionary:(NSDictionary *)dictionary andStringsTable:(NSString *)table;
40
 
41
@end
42
 
43
@protocol InAppSettingsSpecifierDelegate < NSObject >
44
 
45
- (void) settingsSpecifierUpdated:(InAppSettingsSpecifier *)specifier;
46
 
47
@end