com.funambol.syncclient.spds.event
Class SyncTransportEvent

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

public class SyncTransportEvent
extends java.lang.Object

Is used to notify the listeners of the sending of data to the server and of the reception of data from the server.


Field Summary
static int DATA_RECEIVED
          Engine is receiving data from the server
static int RECEIVE_DATA_BEGIN
          Engine started to receive data from the server
static int RECEIVE_DATA_END
          Engine has received all data from the server
static int SEND_DATA_BEGIN
          Engine started to send data to the server
static int SEND_DATA_END
          Engine has sent all data to the server
 
Constructor Summary
SyncTransportEvent(int type, int data)
          Creates a SyncTransportEvent
 
Method Summary
 int getData()
           
 int getType()
           
 void setData(int data)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEND_DATA_BEGIN

public static final int SEND_DATA_BEGIN
Engine started to send data to the server

See Also:
Constant Field Values

SEND_DATA_END

public static final int SEND_DATA_END
Engine has sent all data to the server

See Also:
Constant Field Values

RECEIVE_DATA_BEGIN

public static final int RECEIVE_DATA_BEGIN
Engine started to receive data from the server

See Also:
Constant Field Values

DATA_RECEIVED

public static final int DATA_RECEIVED
Engine is receiving data from the server

See Also:
Constant Field Values

RECEIVE_DATA_END

public static final int RECEIVE_DATA_END
Engine has received all data from the server

See Also:
Constant Field Values
Constructor Detail

SyncTransportEvent

public SyncTransportEvent(int type,
                          int data)
Creates a SyncTransportEvent

Parameters:
type - the event type
data - the data length
Method Detail

getData

public int getData()

getType

public int getType()

setData

public void setData(int data)

setType

public void setType(int type)


Copyright © 2003-2007 Funambol.