Class UserPreferenceDefaults
Defines user preference default values
Inherited Members
Namespace: SuperOffice
Assembly: SoCore.dll
Syntax
public static class UserPreferenceDefaults
Fields
AllDayEndTime
All day/work day ends at 16:00
Declaration
public const int AllDayEndTime = 57600
Field Value
Type | Description |
---|---|
int |
AllDayStartTime
All day/work day starts at 08:00
Declaration
public const int AllDayStartTime = 28800
Field Value
Type | Description |
---|---|
int |
DefaultAlarmTime
Default alarm lead time for DefaultAlarmTime preference. (Minutes)
Declaration
public const int DefaultAlarmTime = 15
Field Value
Type | Description |
---|---|
int |
DefaultHistoryListSize
The default value of the History list length
Declaration
public const int DefaultHistoryListSize = 7
Field Value
Type | Description |
---|---|
int |
FilterCompletedFromTodo
Filter: Removes completed activities from the checklist
Declaration
public const bool FilterCompletedFromTodo = false
Field Value
Type | Description |
---|---|
bool |
GetAdvanceDays
Number of days ahead to display tasks in the checklist. Default is 21 days
Declaration
public const int GetAdvanceDays = 21
Field Value
Type | Description |
---|---|
int |
LunchEndTime
Lunch ends at 13:00
Declaration
public const int LunchEndTime = 46800
Field Value
Type | Description |
---|---|
int |
LunchStartTime
Lunch starts at 12:00
Declaration
public const int LunchStartTime = 43200
Field Value
Type | Description |
---|---|
int |
NotifyAttendeesByMail
Default value for the "send email to attendees" preference.
Declaration
public const bool NotifyAttendeesByMail = true
Field Value
Type | Description |
---|---|
bool |
PollingInterval
Polling interval for invitations and alarm checks
Declaration
public const int PollingInterval = 10
Field Value
Type | Description |
---|---|
int |
ShowWeekNumbersInCalendars
Default value for the show week numbers in calendars preference.
Declaration
public const bool ShowWeekNumbersInCalendars = false
Field Value
Type | Description |
---|---|
bool |
SilentAfter
How long an alarm should sound
Declaration
public const int SilentAfter = 5
Field Value
Type | Description |
---|---|
int |
UnsafeFileTypes
Default unsafe file types
Declaration
public const string UnsafeFileTypes = "msi,exe,com,bat,cmd,ps1,dll,scr,ocx,vbs,js,lnk,php"
Field Value
Type | Description |
---|---|
string |
Methods
ValueOrDefault(int, int)
Return the actual value, unless it is 0, in which case the default value is returned
Declaration
public static int ValueOrDefault(int value, int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
int | value | Value to check |
int | defaultValue | Default value to return |
Returns
Type | Description |
---|---|
int | Value or default |
ValueOrDefault(string, string)
Return the actual value, unless it is blank, in which case the default value is returned
Declaration
public static string ValueOrDefault(string value, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
string | value | Value to check |
string | defaultValue | Default value to return |
Returns
Type | Description |
---|---|
string | Value or default |