/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. #import <Foundation/Foundation.h>
  9. typedef enum {
  10. PropertyMediaState,
  11. PropertyVolume,
  12. // NumberOfProperties will always be correct, from the properties of enums
  13. NumberOfProperties
  14. } Property;
  15. typedef enum {
  16. MediaStatePaused,
  17. MediaStatePlaying,
  18. MediaStateStopped
  19. } MediaState;
  20. @interface Configuration : NSObject {
  21. NSMutableDictionary *configurationDictionary;
  22. }
  23. @property (retain) NSMutableDictionary *configurationDictionary;
  24. + (Configuration *)configurationWithDictionary:(NSDictionary *)dictionary;
  25. - (NSNumber *)property:(Property)property;
  26. - (void)setProperty:(Property)property toValue:(NSNumber *)number;
  27. - (NSString *)keyForProperty:(Property)property;
  28. - (NSString *)stringForValue:(NSNumber *)value ofProperty: (Property)property;
  29. @end