|
PDAP Public Review Draft | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.microedition.pim.PIM
Class for accessing the PIM databases on a device.
Field Summary | |
static int |
READ_ONLY
Constant representing opening a list in read only mode. |
static int |
READ_WRITE
Constant representing opening a list in read/write mode. |
Method Summary | |
static java.lang.String[] |
listContactLists()
Returns a list of all ContactList names. |
static java.lang.String[] |
listEventLists()
Returns a list of all EventList names. |
static java.lang.String[] |
listToDoLists()
Returns a list of all ToDoList names. |
static ContactList |
openContactList(int mode)
Open the default Contact list. |
static ContactList |
openContactList(int mode,
java.lang.String name)
Open a named ContactList. |
static EventList |
openEventList(int mode)
Open the default Event list. |
static EventList |
openEventList(int mode,
java.lang.String name)
Open a named Event list. |
static ToDoList |
openToDoList(int mode)
Open the default ToDo list. |
static ToDoList |
openToDoList(int mode,
java.lang.String name)
Open a named ToDo list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int READ_ONLY
Value 1 is assigned to READ_ONLY
.
public static final int READ_WRITE
Value 2 is assigned to READ_WRITE
.
Method Detail |
public static ContactList openContactList(int mode) throws PIMException
PIMException
- If the operation is unsupported or an error occurs.java.lang.SecurityException
- if the application is not given permission that matches the requested mode.java.lang.IllegalArgumentException
- If an invalid mode is provided as a parameter.public static ContactList openContactList(int mode, java.lang.String name) throws PIMException
listContactLists()
can be used to open a Contact list.mode
- how to open the ContactList, either READ or READ_WRITEname
- the named ContactList to openPIMException
- If the list is not available, the operation is unsupported or an error occurs.java.lang.SecurityException
- if the application is not given permission that matches the requested mode.java.lang.IllegalArgumentException
- If an invalid mode is provided as a parameter
or if name is null
.public static java.lang.String[] listContactLists()
java.lang.SecurityException
- if the application is not given permission to read contact lists.public static EventList openEventList(int mode) throws PIMException
PIMException
- If the operation is unsupported or an error occurs.java.lang.SecurityException
- if the application is not given permission that matches the requested mode.java.lang.IllegalArgumentException
- If an invalid mode is provided as a parameter.public static EventList openEventList(int mode, java.lang.String name) throws PIMException
listEventLists()
can be used to open an Event list.mode
- how to open the EventList, either READ or READ_WRITEname
- the named EventList to openPIMException
- If the list is not available, the operation is unsupported or an error occurs.java.lang.SecurityException
- if the application is not given permission that matches the requested mode.java.lang.IllegalArgumentException
- If an invalid mode is provided as a parameter
or if name is null
.public static java.lang.String[] listEventLists()
java.lang.SecurityException
- if the application is not given permission to read event lists.public static ToDoList openToDoList(int mode) throws PIMException
mode
- how to open the ToDoList, either READ or READ_WRITEPIMException
- If the operation is unsupported or an error occurs.java.lang.SecurityException
- if the application is not given permission that matches the requested mode.java.lang.IllegalArgumentException
- If an invalid mode is provided as a parameter.public static ToDoList openToDoList(int mode, java.lang.String name) throws PIMException
listToDoLists()
can be used to open a ToDo list.mode
- how to open the ToDoList, either READ or READ_WRITEname
- the named ToDoList to openPIMException
- If the list is not available, the operation is unsupported or an error occurs.java.lang.SecurityException
- if the application is not given permission that matches the requested mode.java.lang.IllegalArgumentException
- If an invalid mode is provided as a parameter
or if name is null
.public static java.lang.String[] listToDoLists()
java.lang.SecurityException
- if the application is not given permission to read to do lists.
|
PDAP 1.0 Spec, Rev. 0.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |