Fix bugs. Show version in settings. Update icons. Update version.
[pithos-ios] / Classes / BackupSchedule.h
1 //
2 //  BackupSchedule.h
3 //  OpenStack
4 //
5 //  Created by Mike Mayo on 10/1/10.
6 //  The OpenStack project is provided under the Apache 2.0 license.
7 //
8
9 #import <Foundation/Foundation.h>
10
11
12 @interface BackupSchedule : NSObject <NSCoding> {
13     BOOL enabled;
14     NSString *weekly;
15     NSString *daily;
16 }
17
18 @property (nonatomic, assign) BOOL enabled;
19 @property (nonatomic, retain) NSString *weekly;
20 @property (nonatomic, retain) NSString *daily;
21
22 + (NSArray *)weeklyOptions;
23 + (NSArray *)dailyOptions;
24 + (NSDictionary *)weeklyOptionsDict;
25 + (NSDictionary *)dailyOptionsDict;
26 + (NSString *)humanizedWeeklyForString:(NSString *)weeklyString;
27 + (NSString *)humanizedDailyForString:(NSString *)timeRange;
28
29 + (BackupSchedule *)fromJSON:(NSDictionary *)dict;
30
31 @end