Motorola C450 User Manual

Page of 86
 
int maxNameLengthPhone =  
PhoneBookRecord.getMaxNameLength(PhoneBookRecord.PHONE_MEMORY); 
int maxNameLengthSim =  
PhoneBookRecord.getMaxNameLength(PhoneBookRecord.SIM_MEMORY); 
int maxNameLengthAll = 
PhoneBookRecord.getMaxNameLength(PhoneBookRecord.ALL_MEMORY); 
 
Sample of code for calling of ‘getMaxTelNoLength (int device)’ method: 
 
int maxTelNoLengthPhone =  
PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.PHONE_MEMORY); 
int maxTelNoLengthSim =  
PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.SIM_MEMORY); 
int maxTelNoLengthAll =  
PhoneBookRecord.getMaxTelNoLength(PhoneBookRecord.ALL_MEMORY); 
 
Sample of code for calling of ‘getMaxEmailLength ()’ method: 
 
 
int maxEmailLength =  
PhoneBookRecord.getMaxEmailLength(); 
 
Sample of code for calling of ‘getIndexBySpeedNo(int speedNo, int sortOrder)’ method: 
 
int speedNo = 1; 
index = PhoneBookRecord.getIndexBySpeedNo(speedNo, 
PhoneBookRecord.SORT_BY_NAME); 
 
Sample of code for calling of ‘getNewSpeedNo(int num, int device)’ method: 
 
int speedNo = 1; 
int speedNo_phone =  
PhoneBookRecord.getNewSpeedNo(speedNo,  
PhoneBookRecord.PHONE_MEMORY); 
int speedNo_sim =  
PhoneBookRecord.getNewSpeedNo(speedNo, 
 PhoneBookRecord.PHONE_MEMORY); 
int speedNo_all =  
PhoneBookRecord.getNewSpeedNo(speedNo, 
PhoneBookRecord.PHONE_MEMORY); 
 
Sample of code for calling of ‘getDeviceType(int speedNo)’ method: 
 
int speedNo = 1; 
int type = PhoneBookRecord.getDeviceType(speedNo); 
 
Sample of code for calling of ‘setPrimary(int index, int sortOrder)’ method: 
 
int index = 1; 
PhoneBookRecord.setPrimary(index, PhoneBookRecord.SORT_BY_NAME);