include/alp/mobile_services.h

Go to the documentation of this file.
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_SERVICES_H
00013 #define ALP_MOBILE_SERVICES_H 1
00014 
00015 
00016 /******************************************************************************
00017  * Includes
00018  *****************************************************************************/
00019 
00020 #include <stdlib.h>
00021 
00022 #include <alp/types.h>
00023 #include <alp/sysclass.h>
00024 
00025 
00026 /******************************************************************************
00027  * Type definition
00028  *****************************************************************************/ 
00029 
00035 typedef unsigned char   AlpMblServiceId;
00036 typedef unsigned char   AlpMblFunctionId;
00037 typedef unsigned char   AlpMblNotificationId;
00038 
00039 typedef unsigned char   AlpMblCmdId;
00041 typedef unsigned char   AlpMblCallAction;
00042 
00043 typedef unsigned char   AlpMblUsatUserConfirmation;
00044 
00045 
00046 typedef char                    AlpMblAddress[64];
00047 typedef char                    AlpMblAddressScheme[32];
00048 
00049 typedef char                    AlpMblCurrency[4];                              
00050 
00051 typedef unsigned char   AlpMblAuthType;
00052 
00053 typedef unsigned char   AlpMblAccessTechnology;
00054 
00055 typedef struct _AlpMblObserver AlpMblObserver;
00056 struct _AlpMblObserver
00057 {
00058         AlpMblServiceId                 serviceId;
00059         AlpMblNotificationId    notificationId;
00060         void*                                   callbackP;
00061         void*                                   userDataP;
00062 };
00063 
00071 typedef unsigned char   AlpMblNetworkId;
00072 
00080 typedef unsigned char   AlpMblUsimId;
00081 
00082 typedef struct _AlpMblUsimList AlpMblUsimList;
00083 struct _AlpMblUsimList
00084 {
00085         AlpMblUsimId*                   usimIdListP;
00086         unsigned short                  usimIdCount;
00087 };
00088 
00096 typedef unsigned char   AlpMblContextId;                                
00097 typedef char                    AlpMblContextType[12];                  
00098 
00099 typedef struct _AlpMblCost AlpMblCost;
00100 struct _AlpMblCost
00101 {
00102         uint32_t                                entireValue;
00103         uint32_t                                decimalValue;
00104 };
00105 
00106 typedef struct _AlpMblDataCall AlpMblDataCall;
00107 struct _AlpMblDataCall
00108 {
00109         uint32_t                                cncProfileId;
00110 };
00111 
00112 typedef struct _AlpMblDataCallList AlpMblDataCallList;
00113 struct _AlpMblDataCallList
00114 {
00115         AlpMblDataCall*                 dataCallP;
00116         uint8_t                                 dataCallCount;
00117 };
00118 
00126 typedef unsigned long   AlpMblCncProfileId;
00127 
00137 #define ALP_STATUS_MBL_GENERIC_ERROR                                    ((alp_status_t) (ALP_CLASS_MOBILE | 0x00100000))        
00138 #define ALP_STATUS_MBL_MEMORY_ERROR                                             ((alp_status_t) (ALP_CLASS_MOBILE | 0x00110000))        
00139 #define ALP_STATUS_MBL_IPC_ERROR                                                ((alp_status_t) (ALP_CLASS_MOBILE | 0x00120000))        
00140 #define ALP_STATUS_MBL_INVALID_PARAMETER                                ((alp_status_t) (ALP_CLASS_MOBILE | 0x00130000))        
00141 #define ALP_STATUS_MBL_VALUE_NOT_AVAILABLE                              ((alp_status_t) (ALP_CLASS_MOBILE | 0x00140000))        
00142 #define ALP_STATUS_MBL_TELEPHONY_ERROR                                  ((alp_status_t) (ALP_CLASS_MOBILE | 0x00150000))        
00143 #define ALP_STATUS_MBL_BUFFER_SIZE_ERROR                                ((alp_status_t) (ALP_CLASS_MOBILE | 0x00160000))        
00144 #define ALP_STATUS_MBL_SOCKET_ERROR                                             ((alp_status_t) (ALP_CLASS_MOBILE | 0x00170000))        
00145 #define ALP_STATUS_MBL_FILE_ERROR                                               ((alp_status_t) (ALP_CLASS_MOBILE | 0x00180000))        
00146 #define ALP_STATUS_MBL_FEATURE_NOT_SUPPORTED                    ((alp_status_t) (ALP_CLASS_MOBILE | 0x00190000))        
00147 #define ALP_STATUS_MBL_ICON_NOT_FOUND                                   ((alp_status_t) (ALP_CLASS_MOBILE | 0x001A0000))        
00148 #define ALP_STATUS_MBL_ENTRY_NOT_FOUND                                  ((alp_status_t) (ALP_CLASS_MOBILE | 0x001B0000))        
00149 #define ALP_STATUS_MBL_BLUETOOTH_FAILURE                                ((alp_status_t) (ALP_CLASS_MOBILE | 0x001C0000))        
00150 #define ALP_STATUS_MBL_AUDIO_NO_CONNECTED_DEVICE                ((alp_status_t) (ALP_CLASS_MOBILE | 0x001D0000))        
00151 #define ALP_STATUS_MBL_INVALID_OBJECT                                   ((alp_status_t) (ALP_CLASS_MOBILE | 0x001E0000))        
00152 #define ALP_STATUS_MBL_CARD_FILE_NOT_FOUND                              ((alp_status_t) (ALP_CLASS_MOBILE | 0x001F0000))        
00153 #define ALP_STATUS_MBL_SECURITY_ERROR                                   ((alp_status_t) (ALP_CLASS_MOBILE | 0x00200000))        
00154 #define ALP_STATUS_MBL_OPERATION_NOT_ALLOWED                    ((alp_status_t) (ALP_CLASS_MOBILE | 0x00210000))        
00155 #define ALP_STATUS_MBL_NO_SIM_CARD_INSERTED                             ((alp_status_t) (ALP_CLASS_MOBILE | 0x00220000))        
00156 #define ALP_STATUS_MBL_SIM_CARD_BUSY                                    ((alp_status_t) (ALP_CLASS_MOBILE | 0x00230000))        
00157 #define ALP_STATUS_MBL_PHONEBOOK_MEMORY_FULL                    ((alp_status_t) (ALP_CLASS_MOBILE | 0x00240000))        
00158 #define ALP_STATUS_MBL_PHONEBOOK_EMPTY                                  ((alp_status_t) (ALP_CLASS_MOBILE | 0x00250000))        
00159 #define ALP_STATUS_MBL_PHONEBOOK_EXCEED_MEMORY                  ((alp_status_t) (ALP_CLASS_MOBILE | 0x00260000))        
00160 #define ALP_STATUS_MBL_PROVISIONING_FILE_NOT_PRESENT    ((alp_status_t) (ALP_CLASS_MOBILE | 0x00270000))        
00161 #define ALP_STATUS_MBL_SIM_CARD_LOCKED                                  ((alp_status_t) (ALP_CLASS_MOBILE | 0x00280000))        
00162 
00163 
00166 /******************************************************************************
00167  * Service Identifiers
00168  *****************************************************************************/
00169 
00175 #define ALP_MBL_NO_SERVICE_ID                           ((AlpMblServiceId) 0)
00176 #define ALP_MBL_MOBILE_SERVICE_ID                       ((AlpMblServiceId) 1)
00177 #define ALP_MBL_MOBILE_CTX_SERVICE_ID           ((AlpMblServiceId) 2)
00178 #define ALP_MBL_MOBILE_CTX_CELL_SERVICE_ID      ((AlpMblServiceId) 3)
00179 #define ALP_MBL_NETWORK_SERVICE_ID                      ((AlpMblServiceId) 4)
00180 #define ALP_MBL_OPERATOR_SERVICE_ID                     ((AlpMblServiceId) 5)
00181 #define ALP_MBL_CALL_SERVICE_ID                         ((AlpMblServiceId) 6)
00182 #define ALP_MBL_USIM_SERVICE_ID                         ((AlpMblServiceId) 7)
00183 #define ALP_MBL_USAT_SERVICE_ID                         ((AlpMblServiceId) 8)
00184 #define ALP_MBL_SPEED_DIAL_SERVICE_ID           ((AlpMblServiceId) 9)
00185 #define ALP_MBL_AUDIO_SERVICE_ID                        ((AlpMblServiceId) 10)
00186 #define ALP_MBL_LINE_SERVICE_ID                         ((AlpMblServiceId) 11)
00187 #define ALP_MBL_PHONEBOOK_SERVICE_ID            ((AlpMblServiceId) 12)
00188 
00191 /******************************************************************************
00192  * Access Technology
00193  *****************************************************************************/
00194 
00200 #define ALP_MBL_ACCESS_TECHNOLOGY_UNKNOW        ((AlpMblAccessTechnology) 0)            
00201 #define ALP_MBL_ACCESS_TECHNOLOGY_GSM           ((AlpMblAccessTechnology) 1)            
00202 #define ALP_MBL_ACCESS_TECHNOLOGY_GPRS          ((AlpMblAccessTechnology) 2)            
00203 #define ALP_MBL_ACCESS_TECHNOLOGY_UMTS          ((AlpMblAccessTechnology) 3)            
00204 #define ALP_MBL_ACCESS_TECHNOLOGY_EDGE          ((AlpMblAccessTechnology) 4)            
00205 #define ALP_MBL_ACCESS_TECHNOLOGY_HSDPA         ((AlpMblAccessTechnology) 5)            
00206 #define ALP_MBL_ACCESS_TECHNOLOGY_HSUPA         ((AlpMblAccessTechnology) 6)            
00207 
00208 
00211 #endif // ALP_MOBILE_SERVICES_H

Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.