|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTrackableSyncSource
com.funambol.common.pim.PIMSyncSource
com.funambol.common.pim.icalendar.EventSyncSource
public class EventSyncSource
Field Summary | |
---|---|
protected static int[] |
SUPPORTED_FIELDS
|
Fields inherited from class com.funambol.common.pim.PIMSyncSource |
---|
globalStatus, list, totalAdded, totalDeleted, totalDeletedSent, totalNewSent, totalUpdated, totalUpdatedSent |
Constructor Summary | |
---|---|
EventSyncSource(SourceConfig config,
javax.microedition.pim.PIMList list,
ChangesTracker tracker)
|
Method Summary | |
---|---|
protected javax.microedition.pim.PIMItem |
createItem(java.lang.String content)
Creates a single item in the proper PIMList |
protected boolean |
deleteItem(javax.microedition.pim.PIMItem item)
Delete an item from the store |
protected void |
fillItem(javax.microedition.pim.PIMItem pitem,
java.lang.String content)
Fills an item according to a textual representation of the same item. |
protected byte[] |
formatItem(javax.microedition.pim.PIMItem item)
Formats an item according to the format supported by the sync source. |
protected int[] |
getSupportedFields()
Get the list of supported fields. |
protected int |
getUIDField()
Get the value of the UID field. |
Methods inherited from class com.funambol.common.pim.PIMSyncSource |
---|
addItem, beginSync, clearItem, dataReceived, deleteAllItems, deleteItem, endSync, findItem, getAllItemsKeys, getItemContent, getLuidFromUID, getUID, updateItem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int[] SUPPORTED_FIELDS
Constructor Detail |
---|
public EventSyncSource(SourceConfig config, javax.microedition.pim.PIMList list, ChangesTracker tracker)
Method Detail |
---|
protected javax.microedition.pim.PIMItem createItem(java.lang.String content) throws javax.microedition.pim.PIMException
createItem
in class PIMSyncSource
content
- is the item in the sync source standard format (could be a
vCard, SIF-C or any other valid format).
javax.microedition.pim.PIMException
- if the PIMItem cannot be created (for example if the
textual representation is invalid, or no new items can be added to the
list)protected int[] getSupportedFields()
getSupportedFields
in class PIMSyncSource
protected int getUIDField()
getUIDField
in class PIMSyncSource
protected boolean deleteItem(javax.microedition.pim.PIMItem item) throws javax.microedition.pim.PIMException
deleteItem
in class PIMSyncSource
item
- the item to be removed (the key is the only relevant field)
javax.microedition.pim.PIMException
- if the item cannot be removedprotected byte[] formatItem(javax.microedition.pim.PIMItem item) throws javax.microedition.pim.PIMException
formatItem
in class PIMSyncSource
item
- the item (cannot be null)
javax.microedition.pim.PIMException
- if the item cannot be formattedprotected void fillItem(javax.microedition.pim.PIMItem pitem, java.lang.String content) throws javax.microedition.pim.PIMException
fillItem
in class PIMSyncSource
pitem
- is the object to be filledcontent
- is the item textual representation
javax.microedition.pim.PIMException
- if the item cannot be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |