mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 17:05:10 +00:00
0
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user