00001 /****************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2006 PalmSource, Inc (an ACCESS company). All rights reserved. 00004 *****************************************************************************/ 00012 #ifndef ALP_MOBILE_OPERATOR_H_ 00013 #define ALP_MOBILE_OPERATOR_H_ 00014 00015 00023 /****************************************************************************** 00024 * Includes 00025 *****************************************************************************/ 00026 00027 #include <alp/mobile_services.h> 00028 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif // __cplusplus 00033 00034 00035 /****************************************************************************** 00036 * Defines 00037 *****************************************************************************/ 00038 00039 #define ALP_MBL_OPERATOR_NOTIFICATION_NAME_AVAILABLE ((AlpMblNotificationId) 1) 00040 #define ALP_MBL_OPERATOR_NOTIFICATION_LOGO_AVAILABLE ((AlpMblNotificationId) 2) 00041 00042 #define ALP_MBL_OPERATOR_STATUS_UNKNOW ((AlpMblOperatorStatus) 0) 00043 #define ALP_MBL_OPERATOR_STATUS_AVAILABLE ((AlpMblOperatorStatus) 1) 00044 #define ALP_MBL_OPERATOR_STATUS_CURRENT ((AlpMblOperatorStatus) 2) 00045 #define ALP_MBL_OPERATOR_STATUS_FORBIDDEN ((AlpMblOperatorStatus) 3) 00046 00047 #define ALP_MBL_OPERATOR_INVALID_OPERATOR_ID ((AlpMblOperatorId) 0) 00048 00049 #define ALP_MBL_OPERATOR_APN_TYPE_CSD 1 00050 #define ALP_MBL_OPERATOR_APN_TYPE_GPRS 2 00051 00052 00053 /****************************************************************************** 00054 * Typedef 00055 *****************************************************************************/ 00056 00057 typedef unsigned char AlpMblOperatorId; 00058 typedef char AlpMblOperatorName[32]; 00059 typedef char AlpMblOperatorNumber[8]; 00060 typedef char AlpMblOperatorLogoPath[256]; 00061 typedef uint8_t AlpMblOperatorStatus; 00062 00063 typedef char AlpMblOperatorApnName[32]; 00064 typedef char AlpMblOperatorApnAddress[32]; 00065 typedef char AlpMblOperatorApnLogin[32]; 00066 typedef char AlpMblOperatorApnPassword[32]; 00067 00068 typedef struct _AlpMblOperatorList AlpMblOperatorList; 00069 struct _AlpMblOperatorList 00070 { 00071 AlpMblOperatorId* operatorIdListP; 00072 unsigned short operatorCount; 00073 }; 00074 00075 typedef struct _AlpMblOperatorApn AlpMblOperatorApn; 00076 struct _AlpMblOperatorApn 00077 { 00078 AlpMblOperatorApnName name; 00079 AlpMblOperatorApnAddress address; 00080 AlpMblOperatorApnLogin login; 00081 AlpMblOperatorApnPassword password; 00082 uint8_t type; 00083 }; 00084 00090 typedef void (*AlpMblOperatorNameAvailableCallbackPtr) (void* iUserDataP, AlpMblOperatorId iOperatorId, AlpMblOperatorName iName); 00091 00097 typedef void (*AlpMblOperatorLogoAvailableCallbackPtr) (void* iUserDataP, AlpMblOperatorId iOperatorId, AlpMblOperatorLogoPath iLogoPath); 00098 00099 00100 /****************************************************************************** 00101 * Prototype 00102 *****************************************************************************/ 00103 00121 alp_status_t alp_mbl_operator_get_name(AlpMblOperatorId iOperatorId, AlpMblOperatorName* oOperatorNameP); 00122 00136 alp_status_t alp_mbl_operator_get_number(AlpMblOperatorId iOperatorId, AlpMblOperatorNumber* oOperatorNumberP); 00137 00151 alp_status_t alp_mbl_operator_get_logo(AlpMblOperatorId iOperatorId, AlpMblOperatorLogoPath* oOperatorLogoPathP); 00152 00166 alp_status_t alp_mbl_operator_get_apn_count(AlpMblOperatorId iOperatorId, uint32_t* oOperatorApnCountP); 00167 00182 alp_status_t alp_mbl_operator_get_apn(AlpMblOperatorId iOperatorId, uint32_t iOperatorApnIndex, AlpMblOperatorApn* oOperatorApnP); 00183 00197 alp_status_t alp_mbl_operator_get_status(AlpMblOperatorId iOperatorId, AlpMblOperatorStatus* oStatusP); 00198 00212 alp_status_t alp_mbl_operator_get_access_technology(AlpMblOperatorId iOperatorId, AlpMblAccessTechnology* oAccessTechnologyP); 00213 00216 #ifdef __cplusplus 00217 } 00218 #endif // __cplusplus 00219 00220 00221 #endif // ALP_MOBILE_OPERATOR_H_
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.