2009-11-29 05:19:32 +01:00
|
|
|
/* SOGoUserDefaults.m - this file is part of SOGo
|
|
|
|
*
|
2016-01-07 15:17:35 +01:00
|
|
|
* Copyright (C) 2009-2016 Inverse inc.
|
2009-11-29 05:19:32 +01:00
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/NSArray.h>
|
|
|
|
#import <Foundation/NSDictionary.h>
|
2012-10-26 03:46:23 +02:00
|
|
|
#import <Foundation/NSSet.h>
|
2009-11-29 05:19:32 +01:00
|
|
|
#import <Foundation/NSString.h>
|
|
|
|
#import <Foundation/NSTimeZone.h>
|
|
|
|
|
2013-11-15 22:02:59 +01:00
|
|
|
#import <NGImap4/NSString+Imap4.h>
|
2014-02-06 20:43:05 +01:00
|
|
|
#import <NGObjWeb/WOApplication.h>
|
|
|
|
#import <NGObjWeb/WOContext+SoObjects.h>
|
|
|
|
#import <NGObjWeb/WEClientCapabilities.h>
|
2013-11-15 22:02:59 +01:00
|
|
|
|
2009-11-19 18:08:47 +01:00
|
|
|
#import "NSString+Utilities.h"
|
2009-11-29 05:19:32 +01:00
|
|
|
#import "SOGoDomainDefaults.h"
|
|
|
|
#import "SOGoSystemDefaults.h"
|
|
|
|
#import "SOGoUserProfile.h"
|
2007-06-19 19:59:09 +02:00
|
|
|
|
2008-07-25 19:52:49 +02:00
|
|
|
#import "SOGoUserDefaults.h"
|
2009-11-29 05:19:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
NSString *SOGoWeekStartJanuary1 = @"January1";
|
|
|
|
NSString *SOGoWeekStartFirst4DayWeek = @"First4DayWeek";
|
|
|
|
NSString *SOGoWeekStartFirstFullWeek = @"FirstFullWeek";
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2008-07-25 19:52:49 +02:00
|
|
|
@implementation SOGoUserDefaults
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
+ (NSString *) userProfileClassName
|
|
|
|
{
|
|
|
|
return @"SOGoSQLUserProfile";
|
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
+ (SOGoUserDefaults *) defaultsForUser: (NSString *) userId
|
|
|
|
inDomain: (NSString *) domainId
|
|
|
|
{
|
|
|
|
SOGoUserProfile *up;
|
|
|
|
SOGoUserDefaults *ud;
|
2010-04-20 23:30:17 +02:00
|
|
|
SOGoDefaultsSource *parent;
|
2014-02-06 20:43:05 +01:00
|
|
|
WOContext *context;
|
|
|
|
WEClientCapabilities *cc;
|
2009-12-02 22:18:22 +01:00
|
|
|
static Class SOGoUserProfileKlass = Nil;
|
|
|
|
|
|
|
|
if (!SOGoUserProfileKlass)
|
|
|
|
SOGoUserProfileKlass = NSClassFromString ([self userProfileClassName]);
|
2009-11-29 05:19:32 +01:00
|
|
|
|
|
|
|
up = [SOGoUserProfileKlass userProfileWithType: SOGoUserProfileTypeDefaults
|
|
|
|
forUID: userId];
|
|
|
|
[up fetchProfile];
|
|
|
|
|
2010-04-20 23:30:17 +02:00
|
|
|
parent = [SOGoDomainDefaults defaultsForDomain: domainId];
|
|
|
|
if (!parent)
|
|
|
|
parent = [SOGoSystemDefaults sharedSystemDefaults];
|
2009-11-29 05:19:32 +01:00
|
|
|
|
2010-04-20 23:30:17 +02:00
|
|
|
ud = [self defaultsSourceWithSource: up andParentSource: parent];
|
2009-11-29 05:19:32 +01:00
|
|
|
|
2014-02-06 20:43:05 +01:00
|
|
|
// CKEditor (the HTML editor) is no longer compatible with IE7;
|
|
|
|
// force the user to use the plain text editor with IE7
|
|
|
|
context = [[WOApplication application] context];
|
|
|
|
cc = [[context request] clientCapabilities];
|
|
|
|
if ([cc isInternetExplorer] && [cc majorVersion] < 8)
|
|
|
|
{
|
|
|
|
[ud setObject: @"text" forKey: @"SOGoMailComposeMessageType"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
return ud;
|
|
|
|
}
|
|
|
|
|
2012-10-26 03:46:23 +02:00
|
|
|
- (id) init
|
|
|
|
{
|
|
|
|
if ((self = [super init]))
|
|
|
|
{
|
|
|
|
userLanguage = nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) dealloc
|
|
|
|
{
|
|
|
|
[userLanguage release];
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (BOOL) _migrateLastModule
|
|
|
|
{
|
|
|
|
BOOL rc;
|
|
|
|
NSString *loginModule;
|
|
|
|
|
|
|
|
loginModule = [source objectForKey: @"SOGoUIxLastModule"];
|
|
|
|
if ([loginModule length])
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
rc = YES;
|
|
|
|
/* we need to use the old key, otherwise the migration will be blocked */
|
|
|
|
[self setObject: loginModule forKey: @"SOGoUIxDefaultModule"];
|
|
|
|
[self setRememberLastModule: YES];
|
|
|
|
[self removeObjectForKey: @"SOGoUIxLastModule"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
2009-11-29 05:19:32 +01:00
|
|
|
else
|
|
|
|
rc = NO;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
return rc;
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
2007-03-27 20:12:02 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (BOOL) _migrateSignature
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
BOOL rc;
|
|
|
|
NSString *signature;
|
|
|
|
NSArray *mailAccounts, *identities;
|
|
|
|
NSDictionary *identity;
|
|
|
|
|
|
|
|
mailAccounts = [self arrayForKey: @"MailAccounts"];
|
|
|
|
if (mailAccounts)
|
|
|
|
{
|
|
|
|
rc = YES;
|
|
|
|
if ([mailAccounts count] > 0)
|
|
|
|
{
|
|
|
|
identities = [[mailAccounts objectAtIndex: 0]
|
|
|
|
objectForKey: @"identifies"];
|
|
|
|
if ([identities count] > 0)
|
|
|
|
{
|
|
|
|
identity = [identities objectAtIndex: 0];
|
|
|
|
signature = [identity objectForKey: @"signature"];
|
|
|
|
if ([signature length])
|
|
|
|
[self setObject: signature forKey: @"MailSignature"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[self removeObjectForKey: @"MailAccounts"];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
rc = NO;
|
|
|
|
|
|
|
|
return rc;
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-12-01 17:53:15 +01:00
|
|
|
- (BOOL) _migrateCalendarCategories
|
|
|
|
{
|
|
|
|
NSArray *categories, *colors;
|
|
|
|
NSDictionary *newColors;
|
|
|
|
BOOL rc;
|
|
|
|
|
|
|
|
colors = [source objectForKey: @"SOGoCalendarCategoriesColors"];
|
|
|
|
if ([colors isKindOfClass: [NSArray class]])
|
|
|
|
{
|
|
|
|
categories = [source objectForKey: @"SOGoCalendarCategories"];
|
|
|
|
if ([categories count] == [colors count])
|
|
|
|
{
|
|
|
|
newColors = [NSDictionary dictionaryWithObjects: colors
|
|
|
|
forKeys: categories];
|
|
|
|
[source setObject: newColors
|
|
|
|
forKey: @"SOGoCalendarCategoriesColors"];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
[source removeObjectForKey: @"SOGoCalendarCategoriesColors"];
|
|
|
|
rc = YES;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
rc = NO;
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (BOOL) migrate
|
|
|
|
{
|
|
|
|
static NSDictionary *migratedKeys = nil;
|
|
|
|
|
|
|
|
if (!migratedKeys)
|
|
|
|
{
|
|
|
|
migratedKeys
|
|
|
|
= [NSDictionary dictionaryWithObjectsAndKeys:
|
2014-03-24 18:41:57 +01:00
|
|
|
@"SOGoLoginModule", @"SOGoUIxDefaultModule",
|
|
|
|
@"SOGoLoginModule", @"SOGoDefaultModule",
|
2009-11-29 05:19:32 +01:00
|
|
|
@"SOGoTimeFormat", @"TimeFormat",
|
|
|
|
@"SOGoShortDateFormat", @"ShortDateFormat",
|
|
|
|
@"SOGoLongDateFormat", @"LongDateFormat",
|
|
|
|
@"SOGoDayStartTime", @"DayStartTime",
|
|
|
|
@"SOGoDayEndTime", @"DayEndTime",
|
|
|
|
@"SOGoFirstDayOfWeek", @"WeekStartDay",
|
|
|
|
@"SOGoFirstWeekOfYear", @"FirstWeek",
|
|
|
|
@"SOGoLanguage", @"SOGoDefaultLanguage",
|
|
|
|
@"SOGoLanguage", @"Language",
|
|
|
|
@"SOGoMailComposeMessageType", @"ComposeMessagesType",
|
2014-03-24 18:41:57 +01:00
|
|
|
@"SOGoSelectedAddressBook", @"SelectedAddressBook",
|
2014-09-04 17:42:46 +02:00
|
|
|
@"SOGoRefreshViewCheck", @"RefreshViewCheck",
|
2009-11-29 05:19:32 +01:00
|
|
|
@"SOGoMailMessageForwarding", @"MessageForwarding",
|
|
|
|
@"SOGoMailSignature", @"MailSignature",
|
|
|
|
@"SOGoMailSignaturePlacement", @"SignaturePlacement",
|
|
|
|
@"SOGoMailReplyPlacement", @"ReplyPlacement",
|
|
|
|
@"SOGoTimeZone", @"TimeZone",
|
|
|
|
@"SOGoCalendarShouldDisplayWeekend", @"SOGoShouldDisplayWeekend",
|
|
|
|
@"SOGoMailShowSubscribedFoldersOnly", @"showSubscribedFoldersOnly",
|
|
|
|
@"SOGoReminderEnabled", @"ReminderEnabled",
|
|
|
|
@"SOGoReminderTime", @"ReminderTime",
|
|
|
|
@"SOGoRemindWithASound", @"RemindWithASound",
|
|
|
|
nil];
|
|
|
|
[migratedKeys retain];
|
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
/* we must not use a boolean operation, otherwise subsequent migrations will
|
|
|
|
not be invoked in the case where rc = YES. */
|
|
|
|
return ([self _migrateLastModule]
|
|
|
|
| [self _migrateSignature]
|
2009-12-01 17:53:15 +01:00
|
|
|
| [self _migrateCalendarCategories]
|
2009-11-29 05:19:32 +01:00
|
|
|
| [self migrateOldDefaultsWithDictionary: migratedKeys]
|
|
|
|
| [super migrate]);
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setLoginModule: (NSString *) newLoginModule
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newLoginModule forKey: @"SOGoLoginModule"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) loginModule
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoLoginModule"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setRememberLastModule: (BOOL) rememberLastModule
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setBool: rememberLastModule forKey: @"SOGoRememberLastModule"];
|
2007-03-27 20:12:02 +02:00
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (BOOL) rememberLastModule
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoRememberLastModule"];
|
|
|
|
}
|
2007-03-27 20:12:02 +02:00
|
|
|
|
2011-09-23 22:04:17 +02:00
|
|
|
- (void) setDefaultCalendar: (NSString *) newDefaultCalendar
|
|
|
|
{
|
|
|
|
[self setObject: newDefaultCalendar forKey: @"SOGoDefaultCalendar"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) defaultCalendar
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoDefaultCalendar"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setDayStartTime: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoDayStartTime"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) dayStartTime
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoDayStartTime"];
|
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (unsigned int) dayStartHour
|
|
|
|
{
|
|
|
|
return [[self dayStartTime] timeValue];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setDayEndTime: (NSString *) newValue
|
2009-11-19 21:21:48 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newValue forKey: @"SOGoDayEndTime"];
|
|
|
|
}
|
2009-11-19 21:21:48 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) dayEndTime
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoDayEndTime"];
|
|
|
|
}
|
2009-11-19 21:21:48 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (unsigned int) dayEndHour
|
|
|
|
{
|
|
|
|
return [[self dayEndTime] timeValue];
|
|
|
|
}
|
2009-11-19 21:21:48 +01:00
|
|
|
|
2011-09-27 17:43:46 +02:00
|
|
|
- (void) setBusyOffHours: (BOOL) newValue
|
|
|
|
{
|
|
|
|
[self setBool: newValue forKey: @"SOGoBusyOffHours"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) busyOffHours
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoBusyOffHours"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeZoneName: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoTimeZone"];
|
2009-11-19 21:21:48 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) timeZoneName
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoTimeZone"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeZone: (NSTimeZone *) newValue
|
|
|
|
{
|
|
|
|
[self setTimeZoneName: [newValue name]];
|
|
|
|
}
|
2007-11-01 13:25:21 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSTimeZone *) timeZone
|
|
|
|
{
|
|
|
|
return [NSTimeZone timeZoneWithName: [self timeZoneName]];
|
2009-11-19 18:08:47 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setLongDateFormat: (NSString *) newFormat
|
2009-11-19 18:08:47 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newFormat forKey: @"SOGoLongDateFormat"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) unsetLongDateFormat
|
|
|
|
{
|
|
|
|
[self removeObjectForKey: @"SOGoLongDateFormat"];
|
2009-11-19 18:08:47 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) longDateFormat
|
2009-11-19 18:08:47 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoLongDateFormat"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setShortDateFormat: (NSString *) newFormat;
|
|
|
|
{
|
|
|
|
[self setObject: newFormat forKey: @"SOGoShortDateFormat"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) unsetShortDateFormat
|
|
|
|
{
|
|
|
|
[self removeObjectForKey: @"SOGoShortDateFormat"];
|
2009-11-19 18:08:47 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) shortDateFormat;
|
2009-11-19 18:08:47 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoShortDateFormat"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeFormat: (NSString *) newFormat
|
|
|
|
{
|
|
|
|
[self setObject: newFormat forKey: @"SOGoTimeFormat"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) unsetTimeFormat
|
|
|
|
{
|
|
|
|
[self removeObjectForKey: @"SOGoTimeFormat"];
|
2007-11-01 13:25:21 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) timeFormat
|
2007-11-01 13:25:21 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoTimeFormat"];
|
|
|
|
}
|
2007-11-01 13:25:21 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setLanguage: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoLanguage"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) language
|
|
|
|
{
|
2010-06-23 20:13:48 +02:00
|
|
|
NSArray *supportedLanguages;
|
2012-10-26 03:46:23 +02:00
|
|
|
|
|
|
|
if (!userLanguage)
|
|
|
|
{
|
|
|
|
/* see SOGoDomainDefaults for the meaning of this */
|
|
|
|
userLanguage = [source objectForKey: @"SOGoLanguage"];
|
|
|
|
if (!(userLanguage && [userLanguage isKindOfClass: [NSString class]]))
|
|
|
|
userLanguage = [(SOGoDomainDefaults *) parentSource language];
|
2019-09-25 16:36:31 +02:00
|
|
|
|
2012-10-26 03:46:23 +02:00
|
|
|
supportedLanguages = [[SOGoSystemDefaults sharedSystemDefaults]
|
|
|
|
supportedLanguages];
|
|
|
|
|
|
|
|
/* make sure the language is part of the supported languages */
|
|
|
|
if (![supportedLanguages containsObject: userLanguage])
|
|
|
|
userLanguage = [parentSource stringForKey: @"SOGoLanguage"];
|
|
|
|
[userLanguage retain];
|
|
|
|
}
|
2007-03-27 20:12:02 +02:00
|
|
|
|
2012-10-26 03:46:23 +02:00
|
|
|
return userLanguage;
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2014-03-24 18:41:57 +01:00
|
|
|
- (void) setMailAddOutgoingAddresses: (BOOL) newValue
|
|
|
|
{
|
|
|
|
[self setBool: newValue forKey: @"SOGoMailAddOutgoingAddresses"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) mailAddOutgoingAddresses
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoMailAddOutgoingAddresses"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailShowSubscribedFoldersOnly: (BOOL) newValue
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setBool: newValue forKey: @"SOGoMailShowSubscribedFoldersOnly"];
|
|
|
|
}
|
2007-11-01 13:25:21 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (BOOL) mailShowSubscribedFoldersOnly
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoMailShowSubscribedFoldersOnly"];
|
|
|
|
}
|
2007-03-27 20:12:02 +02:00
|
|
|
|
2016-01-07 15:17:35 +01:00
|
|
|
- (void) setSynchronizeOnlyDefaultMailFolders: (BOOL) newValue
|
|
|
|
{
|
|
|
|
[self setBool: newValue forKey: @"SOGoMailSynchronizeOnlyDefaultFolders"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) synchronizeOnlyDefaultMailFolders
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoMailSynchronizeOnlyDefaultFolders"];
|
|
|
|
}
|
|
|
|
|
2011-06-01 23:10:25 +02:00
|
|
|
- (void) setMailSortByThreads: (BOOL) newValue
|
|
|
|
{
|
|
|
|
[self setBool: newValue forKey: @"SOGoMailSortByThreads"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) mailSortByThreads
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoMailSortByThreads"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setDraftsFolderName: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoDraftsFolderName"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) draftsFolderName
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2013-11-15 22:02:59 +01:00
|
|
|
return [[self stringForKey: @"SOGoDraftsFolderName"]
|
|
|
|
stringByEncodingImap4FolderName];
|
2009-11-29 05:19:32 +01:00
|
|
|
}
|
2007-03-27 20:12:02 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setSentFolderName: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoSentFolderName"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) sentFolderName
|
|
|
|
{
|
2013-11-15 22:02:59 +01:00
|
|
|
return [[self stringForKey: @"SOGoSentFolderName"]
|
|
|
|
stringByEncodingImap4FolderName];
|
2009-11-29 05:19:32 +01:00
|
|
|
}
|
2009-11-19 20:57:26 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTrashFolderName: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoTrashFolderName"];
|
2009-11-19 20:57:26 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) trashFolderName
|
2009-11-19 20:57:26 +01:00
|
|
|
{
|
2013-11-15 22:02:59 +01:00
|
|
|
return [[self stringForKey: @"SOGoTrashFolderName"]
|
|
|
|
stringByEncodingImap4FolderName];
|
2009-11-29 05:19:32 +01:00
|
|
|
}
|
2009-11-19 20:57:26 +01:00
|
|
|
|
2016-01-22 16:30:27 +01:00
|
|
|
- (void) setJunkFolderName: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoJunkFolderName"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) junkFolderName
|
|
|
|
{
|
|
|
|
return [[self stringForKey: @"SOGoJunkFolderName"]
|
|
|
|
stringByEncodingImap4FolderName];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setFirstDayOfWeek: (int) newValue
|
|
|
|
{
|
|
|
|
[self setInteger: newValue forKey: @"SOGoFirstDayOfWeek"];
|
|
|
|
}
|
2008-12-02 02:36:53 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (int) firstDayOfWeek
|
|
|
|
{
|
|
|
|
return [self integerForKey: @"SOGoFirstDayOfWeek"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setFirstWeekOfYear: (NSString *) newValue
|
2007-06-19 19:59:09 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newValue forKey: @"SOGoFirstWeekOfYear"];
|
2007-06-19 19:59:09 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) firstWeekOfYear
|
2008-11-05 22:04:16 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoFirstWeekOfYear"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setMailListViewColumnsOrder: (NSArray *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoMailListViewColumnsOrder"];
|
2009-02-24 02:54:59 +01:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSArray *) mailListViewColumnsOrder
|
2009-02-24 02:54:59 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringArrayForKey: @"SOGoMailListViewColumnsOrder"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2014-03-24 18:41:57 +01:00
|
|
|
- (void) setSelectedAddressBook:(NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoSelectedAddressBook"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) selectedAddressBook
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoSelectedAddressBook"];
|
|
|
|
}
|
|
|
|
|
2014-08-29 19:16:30 +02:00
|
|
|
- (void) setRefreshViewCheck: (NSString *) newValue
|
2009-11-29 05:19:32 +01:00
|
|
|
{
|
2014-08-29 19:16:30 +02:00
|
|
|
[self setObject: newValue forKey: @"SOGoRefreshViewCheck"];
|
2009-11-29 05:19:32 +01:00
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2014-08-29 19:16:30 +02:00
|
|
|
- (NSString *) refreshViewCheck
|
2009-11-29 05:19:32 +01:00
|
|
|
{
|
2014-08-29 19:16:30 +02:00
|
|
|
return [self stringForKey: @"SOGoRefreshViewCheck"];
|
2008-11-05 22:04:16 +01:00
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailComposeMessageType: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoMailComposeMessageType"];
|
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) mailComposeMessageType
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailComposeMessageType"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2014-12-11 19:31:32 +01:00
|
|
|
- (void) setMailDisplayRemoteInlineImages: (NSString *) newValue
|
2012-10-26 19:39:28 +02:00
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoMailDisplayRemoteInlineImages"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) mailDisplayRemoteInlineImages;
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailDisplayRemoteInlineImages"];
|
|
|
|
}
|
|
|
|
|
2014-12-11 19:31:32 +01:00
|
|
|
- (void) setMailAutoSave: (NSString *) newValue
|
|
|
|
{
|
2019-09-25 16:36:31 +02:00
|
|
|
NSString *s;
|
|
|
|
|
2019-09-26 17:17:15 +02:00
|
|
|
if ([newValue intValue] <= 0)
|
2019-09-25 16:36:31 +02:00
|
|
|
s = @"5";
|
|
|
|
else
|
|
|
|
s = newValue;
|
|
|
|
|
|
|
|
[self setObject: s forKey: @"SOGoMailAutoSave"];
|
2014-12-11 19:31:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) mailAutoSave
|
|
|
|
{
|
|
|
|
NSString *s;
|
|
|
|
|
|
|
|
s = [self stringForKey: @"SOGoMailAutoSave"];
|
|
|
|
|
2019-09-26 17:17:15 +02:00
|
|
|
if ([s intValue] <= 0)
|
2014-12-11 19:31:32 +01:00
|
|
|
s = @"5";
|
2019-09-25 16:36:31 +02:00
|
|
|
|
2014-12-11 19:31:32 +01:00
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailMessageForwarding: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoMailMessageForwarding"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) mailMessageForwarding
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self stringForKey: @"SOGoMailMessageForwarding"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailReplyPlacement: (NSString *) newValue
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newValue forKey: @"SOGoMailReplyPlacement"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) mailReplyPlacement
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailReplyPlacement"];
|
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailSignature: (NSString *) newValue
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2012-04-20 15:37:46 +02:00
|
|
|
if ([newValue length] == 0)
|
|
|
|
newValue = nil;
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newValue forKey: @"SOGoMailSignature"];
|
|
|
|
}
|
2009-11-19 18:08:47 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) mailSignature
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailSignature"];
|
|
|
|
}
|
2009-11-26 20:34:56 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailSignaturePlacement: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoMailSignaturePlacement"];
|
|
|
|
}
|
2007-03-27 20:12:02 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (NSString *) mailSignaturePlacement
|
|
|
|
{
|
|
|
|
NSString *signaturePlacement;
|
|
|
|
|
|
|
|
if ([[self mailReplyPlacement] isEqualToString: @"below"])
|
|
|
|
// When replying to an email, if the reply is below the quoted text,
|
|
|
|
// the signature must also be below the quoted text.
|
|
|
|
signaturePlacement = @"below";
|
|
|
|
else
|
|
|
|
signaturePlacement = [self stringForKey: @"SOGoMailSignaturePlacement"];
|
|
|
|
|
|
|
|
return signaturePlacement;
|
|
|
|
}
|
|
|
|
|
2012-04-20 15:37:46 +02:00
|
|
|
- (void) setMailCustomFullName: (NSString *) newValue
|
|
|
|
{
|
|
|
|
if ([newValue length] == 0)
|
|
|
|
newValue = nil;
|
2013-04-16 20:33:57 +02:00
|
|
|
[self setObject: [newValue stringByTrimmingSpaces]
|
|
|
|
forKey: @"SOGoMailCustomFullName"];
|
2012-04-20 15:37:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) mailCustomFullName
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailCustomFullName"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setMailCustomEmail: (NSString *) newValue
|
|
|
|
{
|
|
|
|
if ([newValue length] == 0)
|
|
|
|
newValue = nil;
|
2013-04-16 20:33:57 +02:00
|
|
|
[self setObject: [newValue stringByTrimmingSpaces]
|
|
|
|
forKey: @"SOGoMailCustomEmail"];
|
2012-04-20 15:37:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) mailCustomEmail
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailCustomEmail"];
|
|
|
|
}
|
|
|
|
|
2012-04-20 15:27:21 +02:00
|
|
|
- (void) setMailReplyTo: (NSString *) newValue
|
|
|
|
{
|
|
|
|
if ([newValue length] == 0)
|
|
|
|
newValue = nil;
|
2013-04-16 20:33:57 +02:00
|
|
|
[self setObject: [newValue stringByTrimmingSpaces]
|
|
|
|
forKey: @"SOGoMailReplyTo"];
|
2012-04-20 15:27:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) mailReplyTo
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailReplyTo"];
|
|
|
|
}
|
|
|
|
|
2010-09-01 22:27:45 +02:00
|
|
|
- (void) setAllowUserReceipt: (BOOL) allow
|
|
|
|
{
|
|
|
|
[self setBool: allow forKey: @"SOGoMailReceiptAllow"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) allowUserReceipt
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoMailReceiptAllow"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setUserReceiptNonRecipientAction: (NSString *) action
|
|
|
|
{
|
|
|
|
[self setObject: action forKey: @"SOGoMailReceiptNonRecipientAction"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) userReceiptNonRecipientAction
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailReceiptNonRecipientAction"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setUserReceiptOutsideDomainAction: (NSString *) action
|
|
|
|
{
|
|
|
|
[self setObject: action forKey: @"SOGoMailReceiptOutsideDomainAction"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) userReceiptOutsideDomainAction
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailReceiptOutsideDomainAction"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setUserReceiptAnyAction: (NSString *) action
|
|
|
|
{
|
|
|
|
[self setObject: action forKey: @"SOGoMailReceiptAnyAction"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) userReceiptAnyAction
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoMailReceiptAnyAction"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailUseOutlookStyleReplies: (BOOL) newValue
|
|
|
|
{
|
|
|
|
[self setBool: newValue forKey: @"SOGoMailUseOutlookStyleReplies"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) mailUseOutlookStyleReplies
|
|
|
|
{
|
|
|
|
return [self boolForKey: @"SOGoMailUseOutlookStyleReplies"];
|
|
|
|
}
|
|
|
|
|
2010-08-06 14:45:02 +02:00
|
|
|
- (void) setAuxiliaryMailAccounts: (NSArray *) newAccounts
|
|
|
|
{
|
|
|
|
[self setObject: newAccounts forKey: @"AuxiliaryMailAccounts"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) auxiliaryMailAccounts
|
|
|
|
{
|
|
|
|
return [self arrayForKey: @"AuxiliaryMailAccounts"];
|
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setCalendarCategories: (NSArray *) newValues
|
|
|
|
{
|
|
|
|
[self setObject: newValues forKey: @"SOGoCalendarCategories"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) calendarCategories
|
|
|
|
{
|
|
|
|
return [self stringArrayForKey: @"SOGoCalendarCategories"];
|
|
|
|
}
|
|
|
|
|
2009-12-01 17:53:15 +01:00
|
|
|
- (void) setCalendarCategoriesColors: (NSDictionary *) newValues
|
2009-11-29 05:19:32 +01:00
|
|
|
{
|
|
|
|
[self setObject: newValues forKey: @"SOGoCalendarCategoriesColors"];
|
|
|
|
}
|
|
|
|
|
2009-12-01 17:53:15 +01:00
|
|
|
- (NSDictionary *) calendarCategoriesColors
|
2009-11-29 05:19:32 +01:00
|
|
|
{
|
2015-06-10 02:30:22 +02:00
|
|
|
return [self objectForKey: @"SOGoCalendarCategoriesColors"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setCalendarShouldDisplayWeekend: (BOOL) newValue
|
|
|
|
{
|
|
|
|
[self setBool: newValue forKey: @"SOGoCalendarShouldDisplayWeekend"];
|
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (BOOL) calendarShouldDisplayWeekend
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self boolForKey: @"SOGoCalendarShouldDisplayWeekend"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2012-02-20 23:25:49 +01:00
|
|
|
- (void) setCalendarEventsDefaultClassification: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoCalendarEventsDefaultClassification"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) calendarEventsDefaultClassification
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoCalendarEventsDefaultClassification"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setCalendarTasksDefaultClassification: (NSString *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoCalendarTasksDefaultClassification"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) calendarTasksDefaultClassification
|
|
|
|
{
|
|
|
|
return [self stringForKey: @"SOGoCalendarTasksDefaultClassification"];
|
|
|
|
}
|
|
|
|
|
2013-11-20 23:42:11 +01:00
|
|
|
- (void) setCalendarDefaultReminder: (NSString *) newValue
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2013-11-20 23:42:11 +01:00
|
|
|
[self setObject: newValue forKey: @"SOGoCalendarDefaultReminder"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2013-11-20 23:42:11 +01:00
|
|
|
- (NSString *) calendarDefaultReminder
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2013-11-20 23:42:11 +01:00
|
|
|
return [self stringForKey: @"SOGoCalendarDefaultReminder"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2013-11-11 16:49:58 +01:00
|
|
|
//
|
|
|
|
// Dictionary of arrays. Example:
|
|
|
|
//
|
|
|
|
// {
|
|
|
|
// label1 => ("Important", "#FF0000");
|
|
|
|
// label2 => ("Work" "#00FF00");
|
|
|
|
// foo_bar => ("Foo Bar", "#0000FF");
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
- (void) setMailLabelsColors: (NSDictionary *) newValues
|
|
|
|
{
|
|
|
|
[self setObject: newValues forKey: @"SOGoMailLabelsColors"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSDictionary *) mailLabelsColors
|
|
|
|
{
|
|
|
|
return [self objectForKey: @"SOGoMailLabelsColors"];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-03-02 20:57:30 +01:00
|
|
|
- (void) setSieveFilters: (NSArray *) newValue
|
|
|
|
{
|
|
|
|
[self setObject: newValue forKey: @"SOGoSieveFilters"];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) sieveFilters
|
|
|
|
{
|
|
|
|
return [self arrayForKey: @"SOGoSieveFilters"];
|
|
|
|
}
|
|
|
|
|
2009-12-01 15:29:56 +01:00
|
|
|
- (void) setVacationOptions: (NSDictionary *) newValue
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newValue forKey: @"Vacation"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-12-01 15:29:56 +01:00
|
|
|
- (NSDictionary *) vacationOptions
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self dictionaryForKey: @"Vacation"];
|
2007-03-27 20:12:02 +02:00
|
|
|
}
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-12-01 15:29:56 +01:00
|
|
|
- (void) setForwardOptions: (NSDictionary *) newValue
|
2007-03-27 20:12:02 +02:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
[self setObject: newValue forKey: @"Forward"];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2009-12-01 15:29:56 +01:00
|
|
|
- (NSDictionary *) forwardOptions
|
2009-03-03 20:08:02 +01:00
|
|
|
{
|
2009-11-29 05:19:32 +01:00
|
|
|
return [self dictionaryForKey: @"Forward"];
|
2009-03-03 20:08:02 +01:00
|
|
|
}
|
|
|
|
|
2010-10-26 20:25:32 +02:00
|
|
|
- (void) setContactsCategories: (NSArray *) newValues
|
2010-10-25 20:46:32 +02:00
|
|
|
{
|
2010-10-26 20:25:32 +02:00
|
|
|
[self setObject: newValues forKey: @"SOGoContactsCategories"];
|
2010-10-25 20:46:32 +02:00
|
|
|
}
|
|
|
|
|
2010-10-26 20:25:32 +02:00
|
|
|
- (NSArray *) contactsCategories
|
2010-10-25 20:46:32 +02:00
|
|
|
{
|
2010-10-26 20:25:32 +02:00
|
|
|
return [self stringArrayForKey: @"SOGoContactsCategories"];
|
2010-10-25 20:46:32 +02:00
|
|
|
}
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
@end
|