com.funambol.syncclient.spds.event
Class SyncItemEvent

java.lang.Object
  extended by com.funambol.syncclient.spds.event.SyncItemEvent

public class SyncItemEvent
extends java.lang.Object

Is used to notify the listeners when a item is added / updated / deleted by a command received from the server or when a item is added / updated / deleted on by the client


Field Summary
static int ITEM_ADDED_BY_CLIENT
          A new item is added by the client
static int ITEM_ADDED_BY_SERVER
          A new item is added on the client
static int ITEM_DELETED_BY_CLIENT
          An item is deleted by the client
static int ITEM_DELETED_BY_SERVER
          An item is deleted on the client
static int ITEM_UPDATED_BY_CLIENT
          An item is updated by the client
static int ITEM_UPDATED_BY_SERVER
          An item is updated on the client
 
Constructor Summary
SyncItemEvent(int type, java.lang.String sourceUri, SyncItemKey itemKey)
          Creates a SyncItemEvent
 
Method Summary
 SyncItemKey getItemKey()
           
 java.lang.String getSourceUri()
           
 int getType()
           
 void setItemKey(SyncItemKey itemKey)
           
 void setSourceUri(java.lang.String sourceUri)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEM_ADDED_BY_SERVER

public static final int ITEM_ADDED_BY_SERVER
A new item is added on the client

See Also:
Constant Field Values

ITEM_DELETED_BY_SERVER

public static final int ITEM_DELETED_BY_SERVER
An item is deleted on the client

See Also:
Constant Field Values

ITEM_UPDATED_BY_SERVER

public static final int ITEM_UPDATED_BY_SERVER
An item is updated on the client

See Also:
Constant Field Values

ITEM_ADDED_BY_CLIENT

public static final int ITEM_ADDED_BY_CLIENT
A new item is added by the client

See Also:
Constant Field Values

ITEM_DELETED_BY_CLIENT

public static final int ITEM_DELETED_BY_CLIENT
An item is deleted by the client

See Also:
Constant Field Values

ITEM_UPDATED_BY_CLIENT

public static final int ITEM_UPDATED_BY_CLIENT
An item is updated by the client

See Also:
Constant Field Values
Constructor Detail

SyncItemEvent

public SyncItemEvent(int type,
                     java.lang.String sourceUri,
                     SyncItemKey itemKey)
Creates a SyncItemEvent

Parameters:
type - the event type
sourceUri - the source the item belong to
itemKey - the item key
Method Detail

getItemKey

public SyncItemKey getItemKey()

getSourceUri

public java.lang.String getSourceUri()

getType

public int getType()

setItemKey

public void setItemKey(SyncItemKey itemKey)

setSourceUri

public void setSourceUri(java.lang.String sourceUri)

setType

public void setType(int type)


Copyright © 2003-2007 Funambol.