com.vodafone360.people.engine.contactsync
Interface ContactSyncEngine.IContactSyncObserver

All Known Implementing Classes:
ActivitiesEngine, PresenceEngine, SyncAdapter
Enclosing class:
ContactSyncEngine

public static interface ContactSyncEngine.IContactSyncObserver

Observer interface allowing interested parties to receive notification of changes in Contact sync state.


Method Summary
 void onContactSyncStateChange(ContactSyncEngine.Mode mode, ContactSyncEngine.State oldState, ContactSyncEngine.State newState)
          Called when the contact sync engine changes state or mode
 void onProgressEvent(ContactSyncEngine.State currentState, int percent)
          Called to update interested parties on contact sync progress.
 void onSyncComplete(ServiceStatus status)
          Called a contact sync finishes.
 

Method Detail

onSyncComplete

void onSyncComplete(ServiceStatus status)
Called a contact sync finishes.

Parameters:
status - SUCCESS if the sync was successful, a suitable error code otherwise.

onContactSyncStateChange

void onContactSyncStateChange(ContactSyncEngine.Mode mode,
                              ContactSyncEngine.State oldState,
                              ContactSyncEngine.State newState)
Called when the contact sync engine changes state or mode

Parameters:
mode - Current mode
oldState - Previous state
newState - New state

onProgressEvent

void onProgressEvent(ContactSyncEngine.State currentState,
                     int percent)
Called to update interested parties on contact sync progress. This is made up of two parts the state and the percentage. Each time the state changes the percentage value will go back to 0.

Parameters:
currentState - What the contact sync engine is currently doing
percent - Percentage complete for the current task


JavaDoc