|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vodafone360.people.engine.contactsync.BaseSyncProcessor
com.vodafone360.people.engine.contactsync.UpdateNativeContacts
public class UpdateNativeContacts
Processor handling the update of contacts in the Native database based on changes received during sync with People server.
| Field Summary | |
|---|---|
private NativeExporter |
mNativeExporter
The NativeExporter instance that will take care of updating contacts on the native address book. |
| Fields inherited from class com.vodafone360.people.engine.contactsync.BaseSyncProcessor |
|---|
mCallback, mDb, mFailureList |
| Constructor Summary | |
|---|---|
UpdateNativeContacts(IContactSyncCallback callback,
DatabaseHelper db,
ContentResolver cr)
Processor constructor. |
|
| Method Summary | |
|---|---|
protected void |
doCancel()
Can be called anytime when the processor is active, to cancel the sync. |
protected void |
doStart()
Implemented by all contact sync processors to initiate the sync. |
void |
onTimeoutEvent()
Can be overriden by processors which are interested in timeout events. |
void |
processCommsResponse(ResponseQueue.Response resp)
Called when a comms response is received from the server. |
| Methods inherited from class com.vodafone360.people.engine.contactsync.BaseSyncProcessor |
|---|
cancel, complete, getEngine, markDbChanged, onComplete, setReqId, setSyncStatus, setTimeout, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final NativeExporter mNativeExporter
| Constructor Detail |
|---|
public UpdateNativeContacts(IContactSyncCallback callback,
DatabaseHelper db,
ContentResolver cr)
callback - Provides access to contact sync engine processor
functions.db - Database for reading contacts for sync and fetching change logcr - ContentResolver for updating the native database.| Method Detail |
|---|
protected void doCancel()
BaseSyncProcessorBaseSyncProcessor.cancel() will take care of this.
doCancel in class BaseSyncProcessorBaseSyncProcessor.doCancel()protected void doStart()
BaseSyncProcessorIContactSyncCallback.onProcessorComplete(ServiceStatus, String, Object)
method when the sync is finished (the usual way to do this is by calling
BaseSyncProcessor.complete(ServiceStatus)).
doStart in class BaseSyncProcessorBaseSyncProcessor.doStart()public void processCommsResponse(ResponseQueue.Response resp)
BaseSyncProcessor
processCommsResponse in class BaseSyncProcessorresp - The response dataBaseSyncProcessor#processCommsResponse(Response)public void onTimeoutEvent()
BaseSyncProcessor
onTimeoutEvent in class BaseSyncProcessorBaseSyncProcessor.onTimeoutEvent()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaDoc