2 * Funambol is a mobile platform developed by Funambol, Inc.
3 * Copyright (C) 2003 - 2007 Funambol, Inc.
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Affero General Public License version 3 as published by
7 * the Free Software Foundation with the addition of the following permission
8 * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
9 * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE
10 * WARRANTY OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program; if not, see http://www.gnu.org/licenses or write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite
23 * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
25 * The interactive user interfaces in modified source and object code versions
26 * of this program must display Appropriate Legal Notices, as required under
27 * Section 5 of the GNU Affero General Public License version 3.
29 * In accordance with Section 7(b) of the GNU Affero General Public License
30 * version 3, these Appropriate Legal Notices must retain the display of the
31 * "Powered by Funambol" logo. If the display of the logo is not reasonably
32 * feasible for technical reasons, the Appropriate Legal Notices must display
33 * the words "Powered by Funambol".
36 #ifndef INCL_SPDM_CONSTANTS
37 #define INCL_SPDM_CONSTANTS
40 #define DIM_MANAGEMENT_PATH 512
41 #define DIM_PROPERTY_NAME 64
43 #define MAX_KEY_LENGTH 255
44 #define MAX_VALUE_NAME 512
47 #define PROPERTY_USERNAME "username"
48 #define PROPERTY_PASSWORD "password"
49 #define PROPERTY_FIRST_TIME_SYNC_MODE "firstTimeSyncMode"
50 #define PROPERTY_USE_PROXY "useProxy"
51 #define PROPERTY_PROXY_HOST "proxyHost"
52 #define PROPERTY_PROXY_PORT "proxyPort"
53 #define PROPERTY_PROXY_USERNAME "proxyUsername"
54 #define PROPERTY_PROXY_PASSWORD "proxyPassword"
55 #define PROPERTY_SERVER_NAME "serverName"
56 #define PROPERTY_SYNC_URL "syncUrl"
57 #define PROPERTY_SYNC_BEGIN "begin"
58 #define PROPERTY_SYNC_END "end"
59 #define PROPERTY_SOURCE_NAME "name"
60 #define PROPERTY_SOURCE_URI "uri"
61 #define PROPERTY_SOURCE_SYNC_MODES "syncModes"
62 #define PROPERTY_SOURCE_TYPE "type"
63 #define PROPERTY_SOURCE_VERSION "version"
64 #define PROPERTY_SOURCE_SYNC "sync"
65 #define PROPERTY_SOURCE_LAST_SYNC "last"
66 #define PROPERTY_SOURCE_CTCAP "ctCap"
67 #define PROPERTY_SERVER_NONCE "serverNonce"
68 #define PROPERTY_CLIENT_NONCE "clientNonce"
69 #define PROPERTY_SERVER_ID "serverID"
70 #define PROPERTY_SERVER_PWD "serverPWD"
71 #define PROPERTY_CLIENT_AUTH_TYPE "clientAuthType"
72 #define PROPERTY_SERVER_AUTH_TYPE "serverAuthType"
73 #define PROPERTY_IS_SERVER_REQUIRED "isServerAuthRequired"
74 #define PROPERTY_MAX_MSG_SIZE "maxMsgSize"
75 #define PROPERTY_SOURCE_DOWNLOAD_AGE "downloadAge"
76 #define PROPERTY_SOURCE_BODY_SIZE "bodySize"
77 #define PROPERTY_SOURCE_ATTACH_SIZE "attachSize"
78 #define PROPERTY_SOURCE_INBOX "Inbox"
79 #define PROPERTY_SOURCE_OUTBOX "Outbox"
80 #define PROPERTY_SOURCE_DRAFT "Draft"
81 #define PROPERTY_SOURCE_TRASH "Trash"
82 #define PROPERTY_SOURCE_SENT "Sent"
83 #define PROPERTY_SOURCE_ENCODING "encoding"
84 #define PROPERTY_SOURCE_SUPP_TYPES "supportedTypes"
85 #define PROPERTY_READ_BUFFER_SIZE "readBufferSize"
86 #define PROPERTY_USER_AGENT "userAgent"
87 #define PROPERTY_CHECK_CONN "checkConn"
88 #define PROPERTY_RESPONSE_TIMEOUT "responseTimeout"
89 #define PROPERTY_SOURCE_SCHEDULE "schedule"
90 #define PROPERTY_SOURCE_ENCRYPTION "encryption"
91 #define PROPERTY_ENABLE_COMPRESSION "enableCompression"
94 #define PROPERTY_PUSH_NOTIFICATION "push"
95 #define PROPERTY_POLLING_NOTIFICATION "polling"
97 // DeviceConfig properties
98 #define PROPERTY_VER_DTD "verDTD"
99 #define PROPERTY_MANUFACTURER "man"
100 #define PROPERTY_MODEL "mod"
101 #define PROPERTY_OEM "oem"
102 #define PROPERTY_FIRMWARE_VERSION "fwv"
103 #define PROPERTY_SOFTWARE_VERSION "swv"
104 #define PROPERTY_HARDWARE_VERSION "hwv"
105 #define PROPERTY_DEVICE_ID "devID"
106 #define PROPERTY_DEVICE_TYPE "devType"
107 #define PROPERTY_DS_VERSION "dsV"
108 #define PROPERTY_UTC "utc"
109 #define PROPERTY_LARGE_OBJECT_SUPPORT "loSupport"
110 #define PROPERTY_NUMBER_OF_CHANGES_SUPPORT "nocSupport"
111 #define PROPERTY_LOG_LEVEL "logLevel"
112 #define PROPERTY_MAX_OBJ_SIZE "maxObjSize"
113 #define PROPERTY_DEVINF_HASH "devInfHash"
117 #define DIRTY_USERNAME 0x00001
118 #define DIRTY_PASSWORD 0x00002
119 #define DIRTY_DEVICE_ID 0x00004
120 #define DIRTY_FIRST_TIME_SYNC_MODE 0x00008
121 #define DIRTY_USE_PROXY 0x00010
122 #define DIRTY_PROXY_HOST 0x00020
123 #define DIRTY_PROXY_PORT 0x00040
124 #define DIRTY_SERVER_NAME 0x00080
125 #define DIRTY_SYNC_URL 0x00100
126 #define DIRTY_SYNC_BEGIN 0x00200
127 #define DIRTY_SYNC_END 0x00400
128 #define DIRTY_SYNC_SOURCE 0x00800
129 #define DIRTY_CLIENT_NONCE 0x01000
130 #define DIRTY_SERVER_NONCE 0x02000
131 #define DIRTY_SERVERID 0x04000
132 #define DIRTY_SERVERPWD 0x08000
133 #define DIRTY_CLIENTAUTHTYPE 0x10000
134 #define DIRTY_SERVERAUTH_REQUIRED 0x20000
135 #define DIRTY_DEV_INF_HASH 0x40000