include/alp/mobile_phonebook.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_PHONEBOOK_H_
00013 #define ALP_MOBILE_PHONEBOOK_H_
00014 
00015 
00023 /******************************************************************************
00024  * Includes
00025  *****************************************************************************/
00026 
00027 #include <alp/mobile_call.h>
00028 #include <alp/mobile_services.h>
00029 
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif // __cplusplus
00034 
00035 /******************************************************************************
00036  * Defines
00037  *****************************************************************************/
00038 
00039 #define ALP_MBL_PHB_NOTIFICATION_SIM_CARD_PHONEBOOK_IMPORTED    ((AlpMblNotificationId) 1)      
00040 #define ALP_MBL_PHB_NOTIFICATION_CONTACTS_LIST_EXPORTED                 ((AlpMblNotificationId) 2)      
00041 #define ALP_MBL_PHB_NOTIFICATION_SIM_CONTACTS_INSERTED                  ((AlpMblNotificationId) 3)      
00042 
00043 #define ALP_MBL_PHONEBOOK_SIM                                                                   ((AlpMblPhonebookId) 1)         
00044 #define ALP_MBL_PHONEBOOK_USIM                                                                  ((AlpMblPhonebookId) 2)         
00045 #define ALP_MBL_PHONEBOOK_SIM_SERVICE                                                   ((AlpMblPhonebookId) 3)         
00046 #define ALP_MBL_PHONEBOOK_SIM_FIX_DIALLING                                              ((AlpMblPhonebookId) 4)         
00047 #define ALP_MBL_PHONEBOOK_OWN_NUMBERS                                                   ((AlpMblPhonebookId) 5)         
00048 #define ALP_MBL_PHONEBOOK_EMERGENCY                                                             ((AlpMblPhonebookId) 6)         
00049 
00050 
00051 /******************************************************************************
00052  * Typedef
00053  *****************************************************************************/
00054 
00055 typedef uint8_t AlpMblPhonebookId;
00056 
00057 typedef struct _AlpMblContactList AlpMblContactList;
00058 struct _AlpMblContactList
00059 {
00060         size_t                                  count;
00061         AlpLuid*                                listP;
00062 };
00063 
00064 typedef struct _AlpMblPhonebookList AlpMblPhonebookList;
00065 struct _AlpMblPhonebookList
00066 {
00067         AlpMblPhonebookId*              idP;                                            
00068         size_t                                  count;                                          
00069 };
00070 
00071 typedef struct _AlpMblPhonebook AlpMblPhonebook;
00072 struct _AlpMblPhonebook
00073 {
00074         AlpMblPhonebookId               id;                                                     
00075         uint16_t                                usedSlot;                                       
00076         uint16_t                                totalSlot;                                      
00077         uint16_t                                fullNameMaxSize;                        
00078         uint16_t                                dialNumberMaxSize;                      
00079         uint16_t                                secondNameMaxSize;                      
00080         uint16_t                                groupNameMaxSize;                       
00081         uint16_t                                emailAddressMaxSize;            
00082         uint16_t                                addNumberCount;                         
00083         uint16_t                                emailAddressCount;                      
00084         uint16_t                                availableEmailSlot;                     
00085         uint16_t                                availableAddNumberSlot;         
00086         uint16_t                                availableSecondNameSlot;        
00087 };
00088 
00094 typedef void    (*AlpMblPhbSimCardPhonebookImportedCallbackPtr)         (void* iUserDataP, AlpMblPhonebookId iPhoneBookId, uint16_t iAvailableSlots);
00095 
00102 typedef void    (*AlpMblPhbContactsListExportedCallbackPtr)   (void* iUserDataP, AlpMblPhonebookId iPhoneBookId, uint16_t iAvailableSlots, AlpMblContactList* iSimContactsListP);
00103 
00109 typedef void    (*AlpMblPhbSimContactsInsertedCallbackPtr)   (void* iUserDataP, AlpMblPhonebookId iPhoneBookId, uint16_t iAvailableSlots);
00110 
00111 
00112 /******************************************************************************
00113  * Prototype
00114  *****************************************************************************/
00115 
00130 alp_status_t alp_mbl_phonebook_add_sim_entry(AlpLuid iContactLuid, AlpLuid* oSimContactP, AlpMblPhonebookId iPhonebookId);
00131 
00144 alp_status_t alp_mbl_phonebook_delete_sim_entry(AlpLuid iContactLuid);
00145 
00158 alp_status_t alp_mbl_phonebook_update_sim_entry(AlpLuid iContactLuid);
00159 
00160 
00161 
00174 alp_status_t alp_mbl_phonebook_import_all_sim_entries(AlpMblPhonebookId iPhonebookId);
00175 
00190 alp_status_t alp_mbl_phonebook_export_contacts_to_sim(AlpMblContactList* iContactListP, AlpMblPhonebookId iPhonebookId);
00191 
00203 alp_status_t alp_mbl_phonebook_get_phonebooks(AlpMblPhonebookList* oPhonebooksP);
00204 
00218 alp_status_t alp_mbl_phonebook_get_phonebook(AlpMblPhonebookId iPhonebookId, AlpMblPhonebook* oPhonebookP);
00221 #ifdef __cplusplus
00222 }
00223 #endif // __cplusplus
00224 
00225 
00226 #endif // ALP_MOBILE_PHONEBOOK_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.