src/include/common/spdm/constants.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 
00036 #ifndef INCL_SPDM_CONSTANTS
00037 #define INCL_SPDM_CONSTANTS
00038 
00040 #define DIM_MANAGEMENT_PATH 512
00041 #define DIM_PROPERTY_NAME    64
00042 
00043 #define MAX_KEY_LENGTH 255
00044 #define MAX_VALUE_NAME 512
00045 
00046 
00047 #define PROPERTY_USERNAME              "username"
00048 #define PROPERTY_PASSWORD              "password"
00049 #define PROPERTY_FIRST_TIME_SYNC_MODE  "firstTimeSyncMode"
00050 #define PROPERTY_USE_PROXY             "useProxy"
00051 #define PROPERTY_PROXY_HOST            "proxyHost"
00052 #define PROPERTY_PROXY_PORT            "proxyPort"
00053 #define PROPERTY_PROXY_USERNAME        "proxyUsername"
00054 #define PROPERTY_PROXY_PASSWORD        "proxyPassword"
00055 #define PROPERTY_SERVER_NAME           "serverName"
00056 #define PROPERTY_SYNC_URL              "syncUrl"
00057 #define PROPERTY_SYNC_BEGIN            "begin"
00058 #define PROPERTY_SYNC_END              "end"
00059 #define PROPERTY_SOURCE_NAME           "name"
00060 #define PROPERTY_SOURCE_URI            "uri"
00061 #define PROPERTY_SOURCE_SYNC_MODES     "syncModes"
00062 #define PROPERTY_SOURCE_TYPE           "type"
00063 #define PROPERTY_SOURCE_VERSION        "version"
00064 #define PROPERTY_SOURCE_SYNC           "sync"
00065 #define PROPERTY_SOURCE_LAST_SYNC      "last"
00066 #define PROPERTY_SOURCE_CTCAP          "ctCap"
00067 #define PROPERTY_SERVER_NONCE          "serverNonce"
00068 #define PROPERTY_CLIENT_NONCE          "clientNonce"
00069 #define PROPERTY_SERVER_ID             "serverID"
00070 #define PROPERTY_SERVER_PWD            "serverPWD"
00071 #define PROPERTY_CLIENT_AUTH_TYPE      "clientAuthType"
00072 #define PROPERTY_SERVER_AUTH_TYPE      "serverAuthType"
00073 #define PROPERTY_IS_SERVER_REQUIRED    "isServerAuthRequired"
00074 #define PROPERTY_MAX_MSG_SIZE          "maxMsgSize"
00075 #define PROPERTY_SOURCE_DOWNLOAD_AGE   "downloadAge"
00076 #define PROPERTY_SOURCE_BODY_SIZE      "bodySize"
00077 #define PROPERTY_SOURCE_ATTACH_SIZE    "attachSize"
00078 #define PROPERTY_SOURCE_INBOX          "Inbox"
00079 #define PROPERTY_SOURCE_OUTBOX         "Outbox"
00080 #define PROPERTY_SOURCE_DRAFT          "Draft"
00081 #define PROPERTY_SOURCE_TRASH          "Trash"
00082 #define PROPERTY_SOURCE_SENT           "Sent"
00083 #define PROPERTY_SOURCE_ENCODING       "encoding"
00084 #define PROPERTY_SOURCE_SUPP_TYPES     "supportedTypes"
00085 #define PROPERTY_READ_BUFFER_SIZE      "readBufferSize"
00086 #define PROPERTY_USER_AGENT            "userAgent"
00087 #define PROPERTY_CHECK_CONN            "checkConn"
00088 #define PROPERTY_RESPONSE_TIMEOUT      "responseTimeout"
00089 #define PROPERTY_SOURCE_SCHEDULE       "schedule"
00090 #define PROPERTY_SOURCE_ENCRYPTION     "encryption"
00091 #define PROPERTY_ENABLE_COMPRESSION    "enableCompression"
00092 
00093 // DeviceConfig properties
00094 #define PROPERTY_VER_DTD                    "verDTD"
00095 #define PROPERTY_MANUFACTURER               "man"
00096 #define PROPERTY_MODEL                      "mod"
00097 #define PROPERTY_OEM                        "oem"
00098 #define PROPERTY_FIRMWARE_VERSION           "fwv"
00099 #define PROPERTY_SOFTWARE_VERSION           "swv"
00100 #define PROPERTY_HARDWARE_VERSION           "hwv"
00101 #define PROPERTY_DEVICE_ID                  "devID"
00102 #define PROPERTY_DEVICE_TYPE                "devType"
00103 #define PROPERTY_DS_VERSION                 "dsV"
00104 #define PROPERTY_UTC                        "utc"
00105 #define PROPERTY_LARGE_OBJECT_SUPPORT       "loSupport"
00106 #define PROPERTY_NUMBER_OF_CHANGES_SUPPORT  "nocSupport"
00107 #define PROPERTY_LOG_LEVEL                  "logLevel"
00108 #define PROPERTY_MAX_OBJ_SIZE               "maxObjSize"
00109 #define PROPERTY_DEVINF_HASH                "devInfHash"
00110 
00111 
00112 
00113 #define DIRTY_USERNAME                 0x00001
00114 #define DIRTY_PASSWORD                 0x00002
00115 #define DIRTY_DEVICE_ID                0x00004
00116 #define DIRTY_FIRST_TIME_SYNC_MODE     0x00008
00117 #define DIRTY_USE_PROXY                0x00010
00118 #define DIRTY_PROXY_HOST               0x00020
00119 #define DIRTY_PROXY_PORT               0x00040
00120 #define DIRTY_SERVER_NAME              0x00080
00121 #define DIRTY_SYNC_URL                 0x00100
00122 #define DIRTY_SYNC_BEGIN               0x00200
00123 #define DIRTY_SYNC_END                 0x00400
00124 #define DIRTY_SYNC_SOURCE              0x00800
00125 #define DIRTY_CLIENT_NONCE             0x01000
00126 #define DIRTY_SERVER_NONCE             0x02000
00127 #define DIRTY_SERVERID                 0x04000
00128 #define DIRTY_SERVERPWD                0x08000
00129 #define DIRTY_CLIENTAUTHTYPE           0x10000
00130 #define DIRTY_SERVERAUTH_REQUIRED      0x20000
00131 #define DIRTY_DEV_INF_HASH             0x40000
00132 
00133 
00135 #endif

Generated on Thu Mar 6 14:25:04 2008 for Funambol C++ Client Library by  doxygen 1.5.2