PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Mobile/iPhone/StoffiRemote/StoffiRemote/Configuration.h

http://yet-another-music-application.googlecode.com/
C++ Header | 37 lines | 21 code | 8 blank | 8 comment | 0 complexity | 5143e6e0114e01854f31d61c2f16ffaf MD5 | raw file
 1//
 2//  Configuration.h
 3//  StoffiRemote
 4//
 5//  Created by Fredrik Gadnell on 9/30/11.
 6//  Copyright 2011 __MyCompanyName__. All rights reserved.
 7//
 8
 9#import <Foundation/Foundation.h>
10
11typedef enum {
12    PropertyMediaState,
13    PropertyVolume,
14    
15    // NumberOfProperties will always be correct, from the properties of enums
16    NumberOfProperties
17} Property;
18
19typedef enum {
20    MediaStatePaused,
21    MediaStatePlaying,
22    MediaStateStopped
23} MediaState;
24
25@interface Configuration : NSObject {
26    NSMutableDictionary *configurationDictionary;
27}
28
29@property (retain) NSMutableDictionary *configurationDictionary;
30
31+ (Configuration *)configurationWithDictionary:(NSDictionary *)dictionary;
32- (NSNumber *)property:(Property)property;
33- (void)setProperty:(Property)property toValue:(NSNumber *)number;
34- (NSString *)keyForProperty:(Property)property;
35- (NSString *)stringForValue:(NSNumber *)value ofProperty: (Property)property;
36
37@end