com.funambol.syncclient.spds.event
Class SyncEvent

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

public class SyncEvent
extends java.lang.Object

Is used to notify the listeners for the principal states.


Field Summary
static int SEND_FINALIZATION
          Send finalization message
static int SEND_INITIALIZATION
          Send initialization message
static int SEND_MODIFICATION
          Send modification message
static int SYNC_BEGIN
          The synchronization process start
static int SYNC_END
          The synchronization process end
static int SYNC_ERROR
          A no blocking error occours
 
Constructor Summary
SyncEvent(int type, long date)
          Creates a SyncEvent
SyncEvent(int type, long date, java.lang.String message, java.lang.Throwable cause)
          Creates a SyncEvent
 
Method Summary
 java.lang.Throwable getCause()
           
 java.util.Date getDate()
           
 java.lang.String getMessage()
           
 int getType()
           
 void setCause(java.lang.Throwable cause)
           
 void setDate(java.util.Date date)
           
 void setMessage(java.lang.String message)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNC_BEGIN

public static final int SYNC_BEGIN
The synchronization process start

See Also:
Constant Field Values

SYNC_END

public static final int SYNC_END
The synchronization process end

See Also:
Constant Field Values

SYNC_ERROR

public static final int SYNC_ERROR
A no blocking error occours

See Also:
Constant Field Values

SEND_INITIALIZATION

public static final int SEND_INITIALIZATION
Send initialization message

See Also:
Constant Field Values

SEND_MODIFICATION

public static final int SEND_MODIFICATION
Send modification message

See Also:
Constant Field Values

SEND_FINALIZATION

public static final int SEND_FINALIZATION
Send finalization message

See Also:
Constant Field Values
Constructor Detail

SyncEvent

public SyncEvent(int type,
                 long date)
Creates a SyncEvent

Parameters:
type - the event type
date - the date and time when the event occours

SyncEvent

public SyncEvent(int type,
                 long date,
                 java.lang.String message,
                 java.lang.Throwable cause)
Creates a SyncEvent

Parameters:
type - the event type
date - the date and time when the event occours
message - only if the event is a SYNC_ERROR,

null

otherwise
cause - only if the event is a SYNC_ERROR,

null

otherwise
Method Detail

getCause

public java.lang.Throwable getCause()

getDate

public java.util.Date getDate()

getMessage

public java.lang.String getMessage()

getType

public int getType()

setCause

public void setCause(java.lang.Throwable cause)

setDate

public void setDate(java.util.Date date)

setMessage

public void setMessage(java.lang.String message)

setType

public void setType(int type)


Copyright © 2003-2007 Funambol.