00001 /****************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2007 PalmSource, Inc (an ACCESS company). All rights reserved. 00004 *****************************************************************************/ 00005 00013 #ifndef ALP_OMADM_PROVISIONING_H_ 00014 #define ALP_OMADM_PROVISIONING_H_ 00015 00016 #include <sys/types.h> 00017 #include <hiker/types.h> 00018 #include <hiker/sysclass.h> 00019 00020 #ifdef __cplusplus 00021 extern "C" 00022 { 00023 #endif 00024 00034 #define ALP_OMADM_IM_SETTINGS_CHANGED_NOTIF_TYPE "omadm_im_settings_changed_type" 00035 #define ALP_OMADM_EMAIL_SETTINGS_CHANGED_NOTIF_TYPE "omadm_email_settings_changed_type" 00036 #define ALP_OMADM_BROWSER_SETTINGS_CHANGED_NOTIF_TYPE "omadm_browser_settings_changed_type" 00037 #define ALP_OMADM_SMS_SETTINGS_CHANGED_NOTIF_TYPE "omadm_sms_settings_changed_type" 00038 #define ALP_OMADM_MMS_SETTINGS_CHANGED_NOTIF_TYPE "omadm_mms_settings_changed_type" 00039 #define ALP_OMADM_DS_SETTINGS_CHANGED_NOTIF_TYPE "omadm_ds_settings_changed_type" 00040 00041 00042 00043 // This prefix is used by the connection mgr to recognize a profile string that has its connections 00044 // defined by OMA Provisioning. 00045 #define ALP_OMADM_CNC_PROFILE_PREFIX "omadmcnc:" 00046 00051 /* -------------------------------------------------------------------------- */ 00052 // Some settings are lists. 00053 00054 typedef struct _OMADM_ListElementType AlpOMADM_ListElementType; 00055 typedef struct _OMADM_ListType 00056 { 00057 int itsElementsCount; 00058 int itsElementsMaxCount; 00059 AlpOMADM_ListElementType **itsElements; 00060 } AlpOMADM_ListType; 00061 00062 /* -------------------------------------------------------------------------- */ 00063 // Definitions of Yes/No field used in many application settings 00064 00065 typedef int AlpOMADM_YesNoOptionType; 00066 #define ALP_OMADM_YN_OPT_NOT_SET 0x0000 00067 #define ALP_OMADM_YN_OPT_NO 0x0001 00068 #define ALP_OMADM_YN_OPT_YES 0x0002 00069 00070 /* -------------------------------------------------------------------------- */ 00071 // Account List 00072 00073 // max number of accounts for email, browser, datasync 00074 #define ALP_OMADM_MAX_ACCOUNTS 5 00075 00076 typedef struct _OMADM_AccountListType 00077 { 00078 int itsCount; 00079 char *itsKey[ALP_OMADM_MAX_ACCOUNTS]; 00080 char *itsName[ALP_OMADM_MAX_ACCOUNTS]; 00081 } AlpOMADM_AccountListType; 00082 00083 /* -------------------------------------------------------------------------- */ 00084 // Conn List 00085 00086 typedef int AlpOMADM_ConnRefType; 00087 #define ALP_OMADM_CONREF_TYPE_UNKNOWN 0x0000 00088 #define ALP_OMADM_CONREF_TYPE_PROXY 0x0001 00089 #define ALP_OMADM_CONREF_TYPE_NAPDEF 0x0002 00090 #define ALP_OMADM_CONREF_TYPE_INTERNET 0x0003 00091 00092 // max number of connections in a conn list. 00093 #define ALP_OMADM_MAX_CONNECTIONS 5 00094 00095 typedef struct _OMADM_ConnListType 00096 { 00097 int itsCount; 00098 char *itsKey[ALP_OMADM_MAX_CONNECTIONS]; 00099 AlpOMADM_ConnRefType itsType[ALP_OMADM_MAX_CONNECTIONS]; 00100 int itsOrder[ALP_OMADM_MAX_CONNECTIONS]; 00101 } AlpOMADM_ConnListType; 00102 00103 // GENERIC access rules key to use with alp_omadm_conn_get_list 00104 #define ALP_OMADM_ACCESSRULES_GENERIC_CONNINFO "omadmcnc:/DMDATA/CONFIG/*/ACCESSRULES/GENERIC" 00105 00106 /* -------------------------------------------------------------------------- */ 00107 // PX Physical 00108 00109 typedef int AlpOMADM_PXP_AddrtypeType; 00110 #define ALP_OMADM_PXP_ADDRTYPE_NOT_SET 0x0000 00111 #define ALP_OMADM_PXP_ADDRTYPE_ALPHA 0x0001 00112 #define ALP_OMADM_PXP_ADDRTYPE_IP4 0x0002 00113 #define ALP_OMADM_PXP_ADDRTYPE_IP6 0x0003 00114 00115 typedef int AlpOMADM_PXP_PortServiceType; 00116 #define ALP_OMADM_PXP_PORTSERVICE_NOT_SET 0x0000 00117 #define ALP_OMADM_PXP_PORTSERVICE_ALPHA_HTTP 0x0001 00118 #define ALP_OMADM_PXP_PORTSERVICE_ALPHA_HTTPS 0x0002 00119 00120 typedef struct _OMADM_PXP_NAPDEFElementType 00121 { 00122 AlpOMADM_ConnRefType itsConnType; 00123 char *itsNAPDEFKey; 00124 } AlpOMADM_PXP_NAPDEFElementType; 00125 00126 typedef struct _OMADM_PXP_PortElementType 00127 { 00128 int itsPortNumber; 00129 AlpOMADM_PXP_PortServiceType itsPortService; 00130 } AlpOMADM_PXP_PortElementType; 00131 00132 typedef struct _OMADM_PX_PhysicalElementType 00133 { 00134 char *itsAddress; 00135 AlpOMADM_PXP_AddrtypeType itsAddressType; 00136 AlpOMADM_ListType itsNAPDEFList; 00137 AlpOMADM_ListType itsPortList; 00138 } AlpOMADM_PX_PhysicalElementType; 00139 00140 /* -------------------------------------------------------------------------- */ 00141 // PX Logical 00142 00143 typedef int AlpOMADM_PXL_AuthtypeType; 00144 #define ALP_OMADM_PXL_AUTHTYPE_NOT_SET 0x0000 00145 #define ALP_OMADM_PXL_AUTHTYPE_HTTPBASIC 0x0001 00146 #define ALP_OMADM_PXL_AUTHTYPE_HTTPDIGEST 0x0002 00147 #define ALP_OMADM_PXL_AUTHTYPE_WTLS_SS 0x0003 00148 00149 typedef struct _OMADM_PXLogicalType 00150 { 00151 int itsId; 00152 char *itsName; 00153 char *itsStartPage; 00154 AlpOMADM_PXL_AuthtypeType itsAuthType; 00155 char *itsAuthId; 00156 char *itsAuthPw; 00157 AlpOMADM_ListType itsPxPhysicalList; 00158 } AlpOMADM_PXLogicalType; 00159 00160 /* -------------------------------------------------------------------------- */ 00161 00162 typedef int AlpOMADM_ND_BearerType; 00163 #define ALP_OMADM_NAPDEF_BEARER_NOT_SET 0x0000 00164 #define ALP_OMADM_NAPDEF_BEARER_CSD 0x0001 00165 #define ALP_OMADM_NAPDEF_BEARER_GPRS 0x0002 00166 00167 typedef int AlpOMADM_ND_AddressType; 00168 #define ALP_OMADM_NAPDEF_ADDRESSTYPE_NOT_SET 0x0000 00169 #define ALP_OMADM_NAPDEF_ADDRESSTYPE_APN 0x0001 00170 #define ALP_OMADM_NAPDEF_ADDRESSTYPE_E164 0x0002 00171 00172 typedef int AlpOMADM_ND_LocalAddressType; 00173 #define ALP_OMADM_NAPDEF_LOCALADDRESSTYPE_NOT_SET 0x0000 00174 #define ALP_OMADM_NAPDEF_LOCALADDRESSTYPE_IP4 0x0001 00175 #define ALP_OMADM_NAPDEF_LOCALADDRESSTYPE_IP6 0x0002 00176 00177 typedef int AlpOMADM_ND_AuthtypeType; 00178 #define ALP_OMADM_NAPDEF_AUTHTYPE_NOT_SET 0x0000 00179 #define ALP_OMADM_NAPDEF_AUTHTYPE_PAP 0x0001 00180 #define ALP_OMADM_NAPDEF_AUTHTYPE_CHAP 0x0002 00181 00182 typedef struct _OMADM_NAPDEF_DNSElementType 00183 { 00184 char *itsAddress; 00185 } AlpOMADM_NAPDEF_DNSElementType; 00186 00187 typedef struct _OMADM_NAPDEFType 00188 { 00189 char *itsName; 00190 AlpOMADM_ND_BearerType itsBearer; 00191 AlpOMADM_YesNoOptionType itsGeneric; 00192 char *itsAddress; 00193 AlpOMADM_ND_AddressType itsAddressType; 00194 AlpOMADM_ListType itsDNSAddressList; 00195 char *itsLocalAddress; 00196 AlpOMADM_ND_LocalAddressType itsLocalAddressType; 00197 int itsLinger; 00198 AlpOMADM_ND_AuthtypeType itsAuthType; 00199 char *itsAuthId; 00200 char *itsAuthPw; 00201 } AlpOMADM_NAPDEFType; 00202 00203 /* -------------------------------------------------------------------------- */ 00204 // IM Settings 00205 typedef struct _OMADM_IM_AppAddrElementType 00206 { 00207 char *itsAddr; 00208 char *itsAddrType; 00209 } AlpOMADM_IM_AppAddrElementType; 00210 00211 typedef struct _OMADM_IM_AppAuthElementType 00212 { 00213 char *itsAppAuthLevel; 00214 char *itsAppAuthName; 00215 char *itsAppAuthSecret; 00216 } AlpOMADM_IM_AppAuthElementType; 00217 00218 typedef struct _OMADM_IM_DomainElementType 00219 { 00220 char *itsDomain; 00221 } AlpOMADM_IM_DomainElementType; 00222 00223 typedef struct _OMADM_IMSettingsType 00224 { 00225 char *itsName; 00226 char *itsProvId; 00227 char *itsConnInfo; 00228 char *itsAcceptTypes; 00229 AlpOMADM_ListType itsAppAddrList; 00230 AlpOMADM_ListType itsAppAuthList; 00231 char *itsServices; 00232 char *itsCIDPrefix; 00233 AlpOMADM_ListType itsDomainList; 00234 AlpOMADM_YesNoOptionType itsRoaming; 00235 } AlpOMADM_IMSettingsType; 00236 00237 /* -------------------------------------------------------------------------- */ 00238 // Email Settings 00239 00240 typedef int AlpOMADM_EmailServerType; 00241 #define ALP_OMADM_EMAIL_SERVER_NOT_SET 0x0000 00242 #define ALP_OMADM_EMAIL_SERVER_POP 0x0001 00243 #define ALP_OMADM_EMAIL_SERVER_IMAP 0x0002 00244 00245 typedef int AlpOMADM_EmailInAuthType; 00246 #define ALP_OMADM_EMAIL_IN_AUTH_TYPE_NOT_SET 0x0000 00247 #define ALP_OMADM_EMAIL_IN_AUTH_TYPE_APOP 0x0001 00248 #define ALP_OMADM_EMAIL_IN_AUTH_TYPE_USERPASS 0x0002 00249 00250 typedef int AlpOMADM_EmailOutAuthType; 00251 #define ALP_OMADM_EMAIL_OUT_AUTH_TYPE_NOT_SET 0x0000 00252 00253 typedef int AlpOMADM_EmailDLType; 00254 #define ALP_OMADM_EMAIL_DL_TYPE_NOT_SET 0x0000 00255 #define ALP_OMADM_EMAIL_DL_TYPE_RCV_ALL 0x0001 00256 #define ALP_OMADM_EMAIL_DL_TYPE_RCV_X_MSG 0x0002 00257 #define ALP_OMADM_EMAIL_DL_TYPE_RCV_X_DAYS 0x0003 00258 00259 typedef int AlpOMADM_EmailEncryptionType; 00260 #define ALP_OMADM_EMAIL_ENCRYPTION_NOT_SET 0x0000 00261 #define ALP_OMADM_EMAIL_ENCRYPTION_SSL 0x0001 00262 #define ALP_OMADM_EMAIL_ENCRYPTION_TLS 0x0002 00263 #define ALP_OMADM_EMAIL_ENCRYPTION_NONE 0x0003 00264 00265 00266 00267 typedef struct _OMADM_EmailSettingsType 00268 { 00269 char *itsName; 00270 char *itsConnInfo; 00271 00272 AlpOMADM_EmailServerType itsInServerType; 00273 char *itsInServerAddress; 00274 int itsInServerPort; 00275 AlpOMADM_YesNoOptionType itsInUseSSL; 00276 AlpOMADM_EmailInAuthType itsInAuthType; 00277 char *itsInUserName; 00278 char *itsInPassword; 00279 00280 char *itsOutServerAddress; 00281 int itsOutServerPort; 00282 AlpOMADM_YesNoOptionType itsOutUseSSL; 00283 AlpOMADM_EmailEncryptionType itsOutEncryption; 00284 AlpOMADM_EmailOutAuthType itsOutAuthType; 00285 char *itsOutUserName; 00286 char *itsOutPassword; 00287 int itsPopBeforeSmtpInterval; 00288 char *itsFromName; 00289 char *itsEmailAddress; 00290 00291 AlpOMADM_YesNoOptionType itsImapContinuousSync; 00292 AlpOMADM_EmailDLType itsDownloadType; 00293 int itsDownloadXDays; 00294 int itsDownloadXMessages; 00295 00296 char *itsImapSentFolder; 00297 char *itsImapTrashFolder; 00298 } AlpOMADM_EmailSettingsType; 00299 00300 /* -------------------------------------------------------------------------- */ 00301 //Browser Settings 00302 typedef struct _OMADM_Browser_BookmarkElementType 00303 { 00304 char *itsUri; 00305 char *itsName; 00306 uint8_t *itsImage; 00307 size_t itsImageLen; 00308 } AlpOMADM_Browser_BookmarkElementType; 00309 00310 typedef struct _OMADM_BrowserSettingsType 00311 { 00312 char *itsName; 00313 char *itsStartPage; 00314 char *itsConnInfo; 00315 AlpOMADM_ListType itsBookmarkList; 00316 } AlpOMADM_BrowserSettingsType; 00317 00318 /* -------------------------------------------------------------------------- */ 00319 // Datasync Settings 00320 typedef int AlpOMADM_DS_AuthType; 00321 #define ALP_OMADM_DS_DB_AUTH_TYPE_NOT_SET 0x0000 00322 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_HTTP_BASIC 0x0001 00323 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_HTTP_DIGEST 0x0002 00324 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_BASIC 0x0003 00325 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_DIGEST 0x0004 00326 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_X509 0x0005 00327 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_SECUREID 0x0006 00328 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_SAFEWORD 0x0007 00329 #define ALP_OMADM_DS_DB_OUT_AUTH_TYPE_DIGIPASS 0x0008 00330 00331 typedef struct _OMADM_DS_DatabaseElementType 00332 { 00333 char *itsName; 00334 int itsSyncType; 00335 char *itsCliUri; 00336 char *itsUri; 00337 char *itsAcceptTypesList; 00338 AlpOMADM_DS_AuthType itsAuthType; 00339 char *itsAuthName; 00340 char *itsAuthPW; 00341 } AlpOMADM_DS_DatabaseElementType; 00342 00343 typedef struct _OMADM_DatasyncSettingsType 00344 { 00345 char *itsName; 00346 char *itsConnInfo; 00347 00348 char *itsServerId; 00349 char *itsAddress; 00350 int itsPortNo; 00351 00352 char *itsAuthClientName; 00353 AlpOMADM_DS_AuthType itsAuthClientType; 00354 char *itsAuthClientPW; 00355 uint8_t *itsAuthClientNonce; 00356 unsigned int itsAuthClientNonceLength; 00357 00358 char *itsAuthServerName; 00359 AlpOMADM_DS_AuthType itsAuthServerType; 00360 char *itsAuthServerPW; 00361 uint8_t *itsAuthServerNonce; 00362 unsigned int itsAuthServerNonceLength; 00363 00364 00365 char *itsAuthHttpName; 00366 AlpOMADM_DS_AuthType itsAuthHttpType; 00367 char *itsAuthHttpPW; 00368 00369 AlpOMADM_ListType itsDatabaseList; 00370 } AlpOMADM_DatasyncSettingsType; 00371 00372 /* -------------------------------------------------------------------------- */ 00373 // SMS Settings 00374 typedef int AlpOMADM_SMSValidityPeriodType; 00375 #define ALP_OMADM_SMS_VALPERIOD_NOT_SET 0x0000 00376 #define ALP_OMADM_SMS_VALPERIOD_1H 0x0001 00377 #define ALP_OMADM_SMS_VALPERIOD_6H 0x0002 00378 #define ALP_OMADM_SMS_VALPERIOD_12H 0x0003 00379 #define ALP_OMADM_SMS_VALPERIOD_24H 0x0004 00380 00381 typedef struct _OMADM_SMSSettingsType 00382 { 00383 char *itsName; 00384 char *itsCenterAddress; 00385 AlpOMADM_SMSValidityPeriodType itsValidityPeriod; 00386 AlpOMADM_YesNoOptionType itsDeliveryReport; 00387 } AlpOMADM_SMSSettingsType; 00388 00389 /* -------------------------------------------------------------------------- */ 00390 // MMS Settings 00391 typedef int AlpOMADM_MMSCreateModeType; 00392 #define ALP_OMADM_MMS_CREATEMODE_NOT_SET 0x0000 00393 #define ALP_OMADM_MMS_CREATEMODE_FREE 0x0001 00394 #define ALP_OMADM_MMS_CREATEMODE_RESTRICTED 0x0002 00395 #define ALP_OMADM_MMS_CREATEMODE_WARNING 0x0003 00396 00397 typedef int AlpOMADM_MMSResubmitModeType; 00398 #define ALP_OMADM_MMS_RESUBMITMODE_NOT_SET 0x0000 00399 #define ALP_OMADM_MMS_RESUBMITMODE_FREE 0x0001 00400 #define ALP_OMADM_MMS_RESUBMITMODE_RESTRICTED 0x0002 00401 #define ALP_OMADM_MMS_RESUBMITMODE_WARNING 0x0003 00402 00403 typedef int AlpOMADM_MMSAutoDLType; 00404 #define ALP_OMADM_MMS_AUTODL_NOT_SET 0x0000 00405 #define ALP_OMADM_MMS_AUTODL_ALWAYS 0x0001 00406 #define ALP_OMADM_MMS_AUTODL_ASKINROAMING 0x0002 00407 #define ALP_OMADM_MMS_AUTODL_ASK 0x0003 00408 00409 typedef int AlpOMADM_MMSTimeType; 00410 #define ALP_OMADM_MMS_TIME_NOT_SET 0x0000 00411 #define ALP_OMADM_MMS_TIME_NEVER 0x0001 00412 #define ALP_OMADM_MMS_TIME_1WEEK 0x0002 00413 #define ALP_OMADM_MMS_TIME_3DAYS 0x0003 00414 #define ALP_OMADM_MMS_TIME_24HOURS 0x0004 00415 #define ALP_OMADM_MMS_TIME_6HOURS 0x0005 00416 #define ALP_OMADM_MMS_TIME_1HOUR 0x0006 00417 #define ALP_OMADM_MMS_TIME_IMMEDIATELY 0x0007 00418 #define ALP_OMADM_MMS_TIME_2DAYS 0x0008 00419 #define ALP_OMADM_MMS_TIME_2WEEKS 0x0009 00420 00421 00422 typedef int AlpOMADM_MMSPriorityType; 00423 #define ALP_OMADM_MMS_PRIORITY_NOT_SET 0x0000 00424 #define ALP_OMADM_MMS_PRIORITY_HIGH 0x0001 00425 #define ALP_OMADM_MMS_PRIORITY_NORMAL 0x0002 00426 #define ALP_OMADM_MMS_PRIORITY_LOW 0x0003 00427 00428 typedef int AlpOMADM_MMSMessageSizeType; 00429 #define ALP_OMADM_MMS_MS_NOT_SET 0x0000 00430 #define ALP_OMADM_MMS_MS_IMAGE_BASIC_30KB 0x0001 00431 #define ALP_OMADM_MMS_MS_IMAGE_RICH_100KB 0x0002 00432 #define ALP_OMADM_MMS_MS_VIDEO_RICH_300KB 0x0003 00433 #define ALP_OMADM_MMS_MS_TEXT_30KB 0x0004 00434 #define ALP_OMADM_MMS_MS_VIDEO_BASIC_100KB 0x0005 00435 00436 00437 typedef struct _OMADM_MMSSettingsType 00438 { 00439 char *itsName; 00440 char *itsConnInfo; 00441 char *itsAddr; 00442 AlpOMADM_MMSCreateModeType itsCreateMode; 00443 AlpOMADM_MMSResubmitModeType itsResubmitMode; 00444 AlpOMADM_MMSMessageSizeType itsMsgMaxSize; 00445 AlpOMADM_MMSAutoDLType itsAutoDownload; 00446 AlpOMADM_YesNoOptionType itsSaveSent; 00447 AlpOMADM_YesNoOptionType itsRequestDelivery; 00448 AlpOMADM_YesNoOptionType itsRequestRead; 00449 AlpOMADM_MMSTimeType itsExpiryTime; 00450 AlpOMADM_MMSTimeType itsDeliveryTime; 00451 AlpOMADM_MMSPriorityType itsPriority; 00452 AlpOMADM_YesNoOptionType itsSenderVisible; 00453 } AlpOMADM_MMSSettingsType; 00454 00455 /* -------------------------------------------------------------------------- */ 00456 // DM Account 00457 typedef struct _OMADM_DM_PortElementType 00458 { 00459 int itsPortNbr; 00460 } AlpOMADM_DM_PortElementType; 00461 00462 typedef struct _OMADM_DM_AppAddrElementType 00463 { 00464 char *itsAddr; 00465 char *itsAddrType; 00466 AlpOMADM_ListType itsPortList; 00467 } AlpOMADM_DM_AppAddrElementType; 00468 00469 typedef struct _OMADM_DM_AppAuthElementType 00470 { 00471 char *itsAppAuthLevel; 00472 char *itsAppAuthType; 00473 char *itsAppAuthName; 00474 char *itsAppAuthSecret; 00475 uint8_t *itsAppAuthData; 00476 unsigned int itsAppAuthDataLength; 00477 } AlpOMADM_DM_AppAuthElementType; 00478 00479 typedef struct _OMADM_DMSettingsType 00480 { 00481 char *itsServerId; 00482 char *itsName; 00483 char *itsConnInfo; 00484 AlpOMADM_ListType itsAppAddrList; 00485 AlpOMADM_ListType itsAppAuthList; 00486 char *itsExt; 00487 } AlpOMADM_DMSettingsType; 00488 00489 /* -------------------------------------------------------------------------- */ 00490 00491 struct _OMADM_ListElementType 00492 { 00493 int itsId; 00494 union 00495 { 00496 uint8_t itsData; 00497 AlpOMADM_PX_PhysicalElementType itsPxPhysical; 00498 AlpOMADM_PXP_NAPDEFElementType itsNAPDEF; 00499 AlpOMADM_PXP_PortElementType itsPort; 00500 AlpOMADM_NAPDEF_DNSElementType itsDNSAddress; 00501 AlpOMADM_Browser_BookmarkElementType itsBookmark; 00502 AlpOMADM_DS_DatabaseElementType itsDSDatabase; 00503 AlpOMADM_DM_AppAddrElementType itsDMAppAddr; 00504 AlpOMADM_DM_PortElementType itsDMPort; 00505 AlpOMADM_DM_AppAuthElementType itsDMAppAuth; 00506 AlpOMADM_IM_AppAddrElementType itsIMAppAddr; 00507 AlpOMADM_IM_AppAuthElementType itsIMAppAuth; 00508 AlpOMADM_IM_DomainElementType itsIMDomain; 00509 } element; 00510 }; 00511 00513 00530 alp_status_t alp_omadm_conn_get_list (char *iConnInfo, AlpOMADM_ConnListType *oList); 00531 00540 void alp_omadm_conn_free_list (AlpOMADM_ConnListType *iList); 00541 00549 void alp_omadm_account_free_list (AlpOMADM_AccountListType *iList); 00550 00551 /* -------------------------------------------------------------------------- */ 00552 00562 alp_status_t alp_omadm_napdef_get_list (AlpOMADM_AccountListType *oList); 00563 00579 alp_status_t alp_omadm_napdef_get_settings (char *iKey, AlpOMADM_NAPDEFType *oSettings); 00580 00588 void alp_omadm_napdef_free_settings(AlpOMADM_NAPDEFType *iSettings); 00589 00590 00601 alp_status_t alp_omadm_pxlogical_get_list (AlpOMADM_AccountListType *oList); 00602 00603 /* -------------------------------------------------------------------------- */ 00617 alp_status_t alp_omadm_pxlogical_get_settings (char *iKey, AlpOMADM_PXLogicalType *oSettings); 00618 00626 void alp_omadm_pxlogical_free_settings (AlpOMADM_PXLogicalType *iSettings); 00627 00628 /* -------------------------------------------------------------------------- */ 00629 00639 alp_status_t alp_omadm_im_account_get_list (AlpOMADM_AccountListType *oList); 00640 00654 alp_status_t alp_omadm_im_account_get_settings (char *iAccountKey, AlpOMADM_IMSettingsType *oSettings); 00655 00663 void alp_omadm_im_account_free_settings (AlpOMADM_IMSettingsType *iSettings); 00664 00671 alp_status_t alp_omadm_im_settings_version (int *oVersion); 00672 00673 /* -------------------------------------------------------------------------- */ 00674 00684 alp_status_t alp_omadm_mail_account_get_list (AlpOMADM_AccountListType *oList); 00685 00699 alp_status_t alp_omadm_mail_account_get_settings (char *iAccountKey, AlpOMADM_EmailSettingsType *oSettings); 00700 00708 void alp_omadm_mail_account_free_settings (AlpOMADM_EmailSettingsType *iSettings); 00709 00716 alp_status_t alp_omadm_mail_settings_version (int *oVersion); 00717 00718 /* -------------------------------------------------------------------------- */ 00719 00729 alp_status_t alp_omadm_browser_account_get_list (AlpOMADM_AccountListType *oList); 00730 00744 alp_status_t alp_omadm_browser_account_get_settings (char *iAccountKey, AlpOMADM_BrowserSettingsType *oSettings); 00745 00753 void alp_omadm_browser_account_free_settings (AlpOMADM_BrowserSettingsType *iSettings); 00754 00761 alp_status_t alp_omadm_browser_settings_version (int *oVersion); 00762 00763 /* -------------------------------------------------------------------------- */ 00764 00774 alp_status_t alp_omadm_datasync_account_get_list (AlpOMADM_AccountListType *oList); 00775 00789 alp_status_t alp_omadm_datasync_account_get_settings (char *iAccountKey, AlpOMADM_DatasyncSettingsType *oSettings); 00790 00805 alp_status_t alp_omadm_datasync_account_get_byserver(const char *iServerId, AlpOMADM_DatasyncSettingsType *oSettings); 00806 00816 void alp_omadm_datasync_account_free_settings (AlpOMADM_DatasyncSettingsType *iSettings); 00817 00824 alp_status_t alp_omadm_datasync_settings_version (int *oVersion); 00825 00826 /* -------------------------------------------------------------------------- */ 00839 alp_status_t alp_omadm_sms_account_get_settings (AlpOMADM_SMSSettingsType *oSettings); 00840 00848 void alp_omadm_sms_account_free_settings (AlpOMADM_SMSSettingsType *iSettings); 00849 00856 alp_status_t alp_omadm_sms_settings_version (int *oVersion); 00857 00858 /* -------------------------------------------------------------------------- */ 00871 alp_status_t alp_omadm_mms_account_get_settings (AlpOMADM_MMSSettingsType *oSettings); 00872 00880 void alp_omadm_mms_account_free_settings (AlpOMADM_MMSSettingsType *iSettings); 00881 00888 alp_status_t alp_omadm_mms_settings_version (int *oVersion); 00889 00890 /* -------------------------------------------------------------------------- */ 00891 00902 alp_status_t alp_omadm_dm_account_get_list (AlpOMADM_AccountListType *oList); 00903 00904 00905 /* -------------------------------------------------------------------------- */ 00919 alp_status_t alp_omadm_dm_account_get_settings (const char *iServerId, AlpOMADM_DMSettingsType *oSettings); 00920 00928 void alp_omadm_dm_account_free_settings (AlpOMADM_DMSettingsType *iSettings); 00929 00936 void alp_omadm_reset(); 00937 00938 00940 00941 #ifdef __cplusplus 00942 } 00943 #endif 00944 00945 #endif /*ALP_OMADM_PROVISIONING_H_*/
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.