2009-11-29 05:19:32 +01:00
|
|
|
/* SOGoUserDefaults.h - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Inverse inc.
|
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
#ifndef SOGOUSERDEFAULTS_H
|
|
|
|
#define SOGOUSERDEFAULTS_H
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
#import <SOGo/SOGoDefaultsSource.h>
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
@class NSArray;
|
2009-12-01 15:29:56 +01:00
|
|
|
@class NSDictionary;
|
2009-11-29 05:19:32 +01:00
|
|
|
@class NSString;
|
|
|
|
@class NSTimeZone;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
extern NSString *SOGoWeekStartJanuary1;
|
|
|
|
extern NSString *SOGoWeekStartFirst4DayWeek;
|
|
|
|
extern NSString *SOGoWeekStartFirstFullWeek;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
@interface SOGoUserDefaults : SOGoDefaultsSource
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
+ (SOGoUserDefaults *) defaultsForUser: (NSString *) userId
|
|
|
|
inDomain: (NSString *) domainId;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setLoginModule: (NSString *) newLoginModule;
|
|
|
|
- (NSString *) loginModule;
|
2009-03-03 20:08:02 +01:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setRememberLastModule: (BOOL) rememberLastModule;
|
|
|
|
- (BOOL) rememberLastModule;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setAppointmentSendEMailReceipts: (BOOL) newPoil;
|
|
|
|
- (BOOL) appointmentSendEMailReceipts;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setLongDateFormat: (NSString *) newFormat;
|
|
|
|
- (void) unsetLongDateFormat;
|
|
|
|
- (NSString *) longDateFormat;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setShortDateFormat: (NSString *) newFormat;
|
|
|
|
- (void) unsetShortDateFormat;
|
|
|
|
- (NSString *) shortDateFormat;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeFormat: (NSString *) newFormat;
|
|
|
|
- (void) unsetTimeFormat;
|
|
|
|
- (NSString *) timeFormat;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setDayStartTime: (NSString *) newValue;
|
|
|
|
- (NSString *) dayStartTime;
|
|
|
|
- (unsigned int) dayStartHour;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setDayEndTime: (NSString *) newValue;
|
|
|
|
- (NSString *) dayEndTime;
|
|
|
|
- (unsigned int) dayEndHour;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeZoneName: (NSString *) newValue;
|
|
|
|
- (NSString *) timeZoneName;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeZone: (NSTimeZone *) newValue;
|
|
|
|
- (NSTimeZone *) timeZone;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setTimeFormat: (NSString *) newValue;
|
|
|
|
- (NSString *) timeFormat;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setLanguage: (NSString *) newValue;
|
|
|
|
- (NSString *) language;
|
2007-06-19 19:59:09 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setMailShowSubscribedFoldersOnly: (BOOL) newValue;
|
|
|
|
- (BOOL) mailShowSubscribedFoldersOnly;
|
2009-04-01 15:49:24 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setDraftsFolderName: (NSString *) newValue;
|
|
|
|
- (NSString *) draftsFolderName;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
- (void) setSentFolderName: (NSString *) newValue;
|
|
|
|
- (NSString *) sentFolderName;
|
|
|
|
|
|
|
|
- (void) setTrashFolderName: (NSString *) newValue;
|
|
|
|
- (NSString *) trashFolderName;
|
|
|
|
|
|
|
|
- (void) setFirstDayOfWeek: (int) newValue;
|
|
|
|
- (int) firstDayOfWeek;
|
|
|
|
|
|
|
|
- (void) setFirstWeekOfYear: (NSString *) newValue;
|
|
|
|
- (NSString *) firstWeekOfYear;
|
|
|
|
|
|
|
|
- (void) setMailListViewColumnsOrder: (NSArray *) newValue;
|
|
|
|
- (NSArray *) mailListViewColumnsOrder;
|
|
|
|
|
|
|
|
- (void) setMailMessageCheck: (NSString *) newValue;
|
|
|
|
- (NSString *) mailMessageCheck;
|
|
|
|
|
|
|
|
- (void) setMailComposeMessageType: (NSString *) newValue;
|
|
|
|
- (NSString *) mailComposeMessageType;
|
|
|
|
|
|
|
|
- (void) setMailMessageForwarding: (NSString *) newValue;
|
|
|
|
- (NSString *) mailMessageForwarding;
|
|
|
|
|
|
|
|
- (void) setMailReplyPlacement: (NSString *) newValue;
|
|
|
|
- (NSString *) mailReplyPlacement;
|
|
|
|
|
|
|
|
- (void) setMailSignature: (NSString *) newValue;
|
|
|
|
- (NSString *) mailSignature;
|
|
|
|
|
|
|
|
- (void) setMailSignaturePlacement: (NSString *) newValue;
|
|
|
|
- (NSString *) mailSignaturePlacement;
|
|
|
|
|
|
|
|
- (void) setMailUseOutlookStyleReplies: (BOOL) newValue;
|
|
|
|
- (BOOL) mailUseOutlookStyleReplies;
|
|
|
|
|
|
|
|
- (void) setCalendarCategories: (NSArray *) newValues;
|
|
|
|
- (NSArray *) calendarCategories;
|
|
|
|
|
|
|
|
- (void) setCalendarCategoriesColors: (NSArray *) newValues;
|
|
|
|
- (NSArray *) calendarCategoriesColors;
|
|
|
|
|
|
|
|
- (void) setCalendarShouldDisplayWeekend: (BOOL) newValue;
|
|
|
|
- (BOOL) calendarShouldDisplayWeekend;
|
|
|
|
|
|
|
|
- (void) setReminderEnabled: (BOOL) newValue;
|
|
|
|
- (BOOL) reminderEnabled;
|
|
|
|
|
|
|
|
- (void) setReminderTime: (NSString *) newValue;
|
|
|
|
- (NSString *) reminderTime;
|
|
|
|
|
|
|
|
- (void) setRemindWithASound: (BOOL) newValue;
|
|
|
|
- (BOOL) remindWithASound;
|
|
|
|
|
2009-12-01 15:29:56 +01:00
|
|
|
- (void) setVacationOptions: (NSDictionary *) newValue;
|
|
|
|
- (NSDictionary *) vacationOptions;
|
2009-11-29 05:19:32 +01:00
|
|
|
|
2009-12-01 15:29:56 +01:00
|
|
|
- (void) setForwardOptions: (NSDictionary *) newValue;
|
|
|
|
- (NSDictionary *) forwardOptions;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2009-11-29 05:19:32 +01:00
|
|
|
#endif /* SOGOUSERDEFAULTS_H */
|