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_LINE_H_ 00013 #define ALP_MOBILE_LINE_H_ 00014 00015 00027 /****************************************************************************** 00028 * Includes 00029 *****************************************************************************/ 00030 00031 #include <alp/mobile_services.h> 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif // __cplusplus 00036 00037 00038 /****************************************************************************** 00039 * Defines 00040 *****************************************************************************/ 00041 00042 #define ALP_MBL_LINE_NOTIFICATION_NAME_CHANGE ((AlpMblNotificationId) 1) 00043 #define ALP_MBL_LINE_NOTIFICATION_VOICE_MAIL_CHANGE ((AlpMblNotificationId) 2) 00044 #define ALP_MBL_LINE_NOTIFICATION_ADDRESS_CHANGE ((AlpMblNotificationId) 3) 00045 00046 00047 /****************************************************************************** 00048 * Typedef 00049 *****************************************************************************/ 00050 00051 typedef unsigned char AlpMblLineId; 00052 typedef char AlpMblLineName[32]; 00053 00054 typedef struct _AlpMblLineList AlpMblLineList; 00055 struct _AlpMblLineList 00056 { 00057 AlpMblLineId* lineIdP; 00058 uint8_t lineCount; 00059 }; 00060 00067 typedef void (*AlpMblLineNameChangeCallbackPtr) (void* iUserDataP, AlpMblLineId iLineId, AlpMblLineName iPrevious, AlpMblLineName iCurrent); 00068 00075 typedef void (*AlpMblLineVoiceMailChangeCallbackPtr) (void* iUserDataP, AlpMblLineId iLineId, AlpMblAddress iPrevious, AlpMblAddress iCurrent); 00076 00083 typedef void (*AlpMblLineAddressChangeCallbackPtr) (void* iUserDataP, AlpMblLineId iLineId, AlpMblAddress iPrevious, AlpMblAddress iCurrent); 00084 00085 00086 /****************************************************************************** 00087 * Prototype 00088 *****************************************************************************/ 00089 00102 alp_status_t alp_mbl_line_get_name(AlpMblLineId iLineId, AlpMblLineName* oNameP); 00103 00116 alp_status_t alp_mbl_line_set_name(AlpMblLineId iLineId, AlpMblLineName iName); 00117 00130 alp_status_t alp_mbl_line_get_voice_mail(AlpMblLineId iLineId, AlpMblAddress* oVoiceMailP); 00131 00144 alp_status_t alp_mbl_line_set_voice_mail(AlpMblLineId iLineId, AlpMblAddress iVoiceMail); 00145 00158 alp_status_t alp_mbl_line_get_address(AlpMblLineId iLineId, AlpMblAddress* oAddressP); 00159 00172 alp_status_t alp_mbl_line_set_address(AlpMblLineId iLineId, AlpMblAddress iAddress); 00173 00176 #ifdef __cplusplus 00177 } 00178 #endif // __cplusplus 00179 00180 00181 #endif // ALP_MOBILE_LINE_H_
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.