Monotone-Parent: 55c226ffd5db8ed7f07eb8591aded800a89418b2
Monotone-Revision: c3c980772004fa550702d469d6fbe729fd954f5d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-20T22:25:49
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-02-20 22:25:49 +00:00
parent 5e1a8b3b58
commit c8fbb0718c
28 changed files with 252 additions and 4 deletions
+40
View File
@@ -445,6 +445,46 @@
[userDefaults setDefaultCalendar: newValue];
}
- (NSArray *) calendarClassificationsList
{
static NSArray *classifications = nil;
if (!classifications)
classifications = [[NSArray alloc] initWithObjects:
@"PUBLIC",
@"CONFIDENTIAL",
@"PRIVATE",
nil];
return classifications;
}
- (NSString *) itemClassificationText
{
return [self labelForKey: [NSString stringWithFormat: @"%@_item",
item]];
}
- (void) setEventsDefaultClassification: (NSString *) newValue
{
[userDefaults setCalendarEventsDefaultClassification: newValue];
}
- (NSString *) eventsDefaultClassification
{
return [userDefaults calendarEventsDefaultClassification];
}
- (void) setTasksDefaultClassification: (NSString *) newValue
{
[userDefaults setCalendarTasksDefaultClassification: newValue];
}
- (NSString *) tasksDefaultClassification
{
return [userDefaults calendarTasksDefaultClassification];
}
- (NSArray *) hoursList
{
static NSMutableArray *hours = nil;