com.funambol.syncclient.spds.event
Class SyncStatusEvent

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

public class SyncStatusEvent
extends java.lang.Object

Is used to notify the listeners received a status command.

Version:
$Id: SyncStatusEvent.java,v 1.3 2007-12-22 18:09:18 nichele Exp $

Field Summary
static int STATUS_RECEIVED
          Received status from the server
static int STATUS_TO_SEND
          Create status to send to the server
 
Constructor Summary
SyncStatusEvent(int type, java.lang.String command, int statusCode, SyncItemKey itemKey, java.lang.String sourceUri)
          Creates a SyncStatusEvent
 
Method Summary
 java.lang.String getCommand()
           
 SyncItemKey getItemKey()
           
 java.lang.String getSourceUri()
           
 int getStatusCode()
           
 int getType()
           
 void setCommand(java.lang.String command)
           
 void setItemKey(SyncItemKey itemKey)
           
 void setSourceUri(java.lang.String sourceUri)
           
 void setStatusCode(int statusCode)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_TO_SEND

public static final int STATUS_TO_SEND
Create status to send to the server

See Also:
Constant Field Values

STATUS_RECEIVED

public static final int STATUS_RECEIVED
Received status from the server

See Also:
Constant Field Values
Constructor Detail

SyncStatusEvent

public SyncStatusEvent(int type,
                       java.lang.String command,
                       int statusCode,
                       SyncItemKey itemKey,
                       java.lang.String sourceUri)
Creates a SyncStatusEvent

Parameters:
type - the event type
command - the command the status relates to
statusCode - the status code
itemKey - the key of the item this status relates to
sourceUri - the uri of the syncsource
Method Detail

getType

public int getType()

getCommand

public java.lang.String getCommand()

getItemKey

public SyncItemKey getItemKey()

getSourceUri

public java.lang.String getSourceUri()

getStatusCode

public int getStatusCode()

setType

public void setType(int type)

setCommand

public void setCommand(java.lang.String command)

setItemKey

public void setItemKey(SyncItemKey itemKey)

setSourceUri

public void setSourceUri(java.lang.String sourceUri)

setStatusCode

public void setStatusCode(int statusCode)


Copyright © 2010 Funambol. All Rights Reserved.