|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.motorola.iden.udm.PhoneBook
Represents a PhoneBook list containing PhoneBookEntry elements.
Field Summary | |
static int |
EXPANDED_AVAILABLE
EXPANDED_AVAILABLE available Expanded slots in the falcon SIM. |
static int |
NOT_AVAILABLE
NOT_AVAILABLE Not available field in the current SIM type. |
static int |
PHONE_AVAILABLE
PHONE_AVAILABLE available Phone slots in the SIM. |
static int |
PHONE_INUSE
PHONE_INUSE Inuse Phone slots in the SIM. |
static int |
PRIVATE_AVAILABLE
PRIVATE_AVAILABLE available Private slots in the SIM. |
static int |
PRIVATE_INUSE
PRIVATE_INUSE Inuse Private slots in the SIM. |
static int |
TALKGROUP_AVAILABLE
TALKGROUP_AVAILABLE available Talk group slots in the SIM. |
static int |
TALKGROUP_INUSE
TALKGROUP_INUSE Inuse Talk group slots in the SIM. |
static int |
TOTAL_AVAILABLE
TOTAL_AVAILABLE Total available slots in the SIM. |
static int |
TOTAL_INUSE
TOTAL_INUSE Total inuse slots in the SIM. |
Method Summary | |
void |
close()
Closes the list, releasing any resources for this list. |
PhoneBookEntry |
createPhoneBookEntry()
Factory method to create a PhoneBookEntry for this PhoneBookEntry list. |
void |
deleteAllPhoneBookEntries()
Removes all PhoneBookEntries from the list. |
java.util.Enumeration |
elements()
Return an Enumeration of all elements in the list. |
int[] |
getAvailableStorage()
Returns an integer array the amount of slots available on the native database. |
int |
getNumOfEntries()
Returns the amount of entries (not individual numbers) in the list. |
int[] |
getSupportedFields()
Returns an int array containing all field IDs supported by this list. |
int[] |
getSupportedTypes(int fieldID)
Returns an integer array containing the supported type ids for the given field ID. |
PhoneBookEntry |
importPhoneBookEntry(PhoneBookEntry element)
Imports the given PhoneBookEntry into this PhoneBookEntry list by making a new PhoneBookEntry for the list and filling its information with as much information as it can from the provided PhoneBookEntry. |
static boolean |
isCurrent()
Returns a flag indicating whether native contact database has been modified since the last native contact database update. |
boolean |
isSupportedField(int fieldID)
Indicates whether or not the given fieldID is supported in this UDM list. |
void |
removePhoneBookEntry(PhoneBookEntry element)
Removes a specific PhoneBookEntry from the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TOTAL_AVAILABLE
public static final int PHONE_AVAILABLE
public static final int PRIVATE_AVAILABLE
public static final int TALKGROUP_AVAILABLE
public static final int TOTAL_INUSE
public static final int PHONE_INUSE
public static final int PRIVATE_INUSE
public static final int TALKGROUP_INUSE
public static final int EXPANDED_AVAILABLE
public static final int NOT_AVAILABLE
Method Detail |
public PhoneBookEntry createPhoneBookEntry() throws UDMException
UDMException
- if the element cannot be created if the list is no longer accessible or closed.public PhoneBookEntry importPhoneBookEntry(PhoneBookEntry element) throws UDMException
element
- the PhoneBookEntry to import into the list.
UDMException
- If an error occurs or there is not enough space or the list is no longer accessible or closed.
java.lang.IllegalArgumentException
- If the PhoneBookEntry is null.
java.lang.SecurityException
- if the application is not given permission to write to the PhoneBookEntry list.public void removePhoneBookEntry(PhoneBookEntry element) throws UDMException
element
- the PhoneBookEntry to be removed from the list.
UDMException
- If an error occurs deleting the item or the list is no longer accessible or closed.
java.lang.IllegalArgumentException
- If the PhoneBookEntry is null.
java.lang.SecurityException
- if the application is not given permission to write to the PhoneBookEntry list.public void deleteAllPhoneBookEntries() throws UDMException
UDMException
- If an error occurs deleting the item or the list is no longer accessible or closed.
java.lang.SecurityException
- if the application is not given permission to write to the PhoneBookEntry list.public void close() throws UDMException
close
in interface UDMList
UDMException
- If the list is no longer accessible.public java.util.Enumeration elements() throws UDMException
elements
in interface UDMList
UDMException
- If an error occurs or the list is no longer accessible or closed.public static boolean isCurrent()
PhoneBook
object created is current, no new object was created.
This method is not supported on Gemini product and always return true.public boolean isSupportedField(int fieldID) throws UDMException
isSupportedField
in interface UDMList
fieldID
- The fieldID to check, as defined by the UDMEntry subclasses.
java.lang.IllegalArgumentException
- if fieldID is an invalid ID for this list.
UDMException
- if the list is closed or is no longer accessible.public int[] getSupportedFields() throws UDMException
getSupportedFields
in interface UDMList
UDMException
- - if the list is closed or is no longer accessible.public int[] getSupportedTypes(int fieldID) throws UDMException
getSupportedTypes
in interface UDMList
fieldID
- the fieldID to check
java.lang.IllegalArgumentException
- if fieldID is is not one of the the valid field IDs for the implementing class.
UDMException
- if the list is closed or is no longer accessible.public int[] getAvailableStorage() throws UDMException
UDMException
- if the list is closed or is no longer accessible.public int getNumOfEntries() throws UDMException
getNumOfEntries
in interface UDMList
UDMException
- if the list is closed or is no longer accessible.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |