com.vodafone360.people.engine.contactsync
Interface ProcessorFactory

All Known Implementing Classes:
DefaultProcessorFactory

public interface ProcessorFactory

The ProcessorFactory interface provides a way to create processors.

See Also:
DefaultProcessorFactory for a standard implementation used by the ContactSyncEngine.

Field Summary
static int DOWNLOAD_SERVER_CONTACTS
          The type id of the processor responsible of contacts downloading from the server.
static int DOWNLOAD_SERVER_THUMBNAILS
          The type id of the processor responsible of thumbnails downloading from the server.
static int FETCH_NATIVE_CONTACTS
          The type id of the processor responsible of retrieving native contacts from the device address book.
static int SET_ME_PROFILE_STATUS
           
static int SYNC_ME_PROFILE
          The type id of the processor responsible of synchronizing Me profile information between the device and the server.
static int UPDATE_NATIVE_CONTACTS
          The type id of the processor responsible of updating the native contacts of the device address book.
static int UPLOAD_SERVER_CONTACTS
          The type id of the processor responsible of uploading contacts to the server.
static int UPLOAD_SERVER_THUMBNAILS
          The type id of the processor responsible of uploading thumbnails to the server.
 
Method Summary
 BaseSyncProcessor create(int type, IContactSyncCallback callback, DatabaseHelper dbHelper, Context context, ContentResolver cr)
          Creates a processor from the provided type.
 

Field Detail

DOWNLOAD_SERVER_CONTACTS

static final int DOWNLOAD_SERVER_CONTACTS
The type id of the processor responsible of contacts downloading from the server.

See Also:
Constant Field Values

DOWNLOAD_SERVER_THUMBNAILS

static final int DOWNLOAD_SERVER_THUMBNAILS
The type id of the processor responsible of thumbnails downloading from the server.

See Also:
Constant Field Values

FETCH_NATIVE_CONTACTS

static final int FETCH_NATIVE_CONTACTS
The type id of the processor responsible of retrieving native contacts from the device address book.

See Also:
Constant Field Values

SYNC_ME_PROFILE

static final int SYNC_ME_PROFILE
The type id of the processor responsible of synchronizing Me profile information between the device and the server.

See Also:
Constant Field Values

SET_ME_PROFILE_STATUS

static final int SET_ME_PROFILE_STATUS
See Also:
Constant Field Values

UPDATE_NATIVE_CONTACTS

static final int UPDATE_NATIVE_CONTACTS
The type id of the processor responsible of updating the native contacts of the device address book.

See Also:
Constant Field Values

UPLOAD_SERVER_CONTACTS

static final int UPLOAD_SERVER_CONTACTS
The type id of the processor responsible of uploading contacts to the server.

See Also:
Constant Field Values

UPLOAD_SERVER_THUMBNAILS

static final int UPLOAD_SERVER_THUMBNAILS
The type id of the processor responsible of uploading thumbnails to the server.

See Also:
Constant Field Values
Method Detail

create

BaseSyncProcessor create(int type,
                         IContactSyncCallback callback,
                         DatabaseHelper dbHelper,
                         Context context,
                         ContentResolver cr)
Creates a processor from the provided type.

Parameters:
type - the type of the processor to create
callback - the observer of processor state
dbHelper - the database helper to use
context - the context to use
cr - the content resolver to use
Returns:
a BaseSyncProcessor implementation of the requested type
Throws:
java.lang.IllegalArgumentException - if the type of processor is not known


JavaDoc