|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessorFactory
The ProcessorFactory
interface provides a way to create
processors.
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 |
---|
static final int DOWNLOAD_SERVER_CONTACTS
static final int DOWNLOAD_SERVER_THUMBNAILS
static final int FETCH_NATIVE_CONTACTS
static final int SYNC_ME_PROFILE
static final int SET_ME_PROFILE_STATUS
static final int UPDATE_NATIVE_CONTACTS
static final int UPLOAD_SERVER_CONTACTS
static final int UPLOAD_SERVER_THUMBNAILS
Method Detail |
---|
BaseSyncProcessor create(int type, IContactSyncCallback callback, DatabaseHelper dbHelper, Context context, ContentResolver cr)
type
- the type of the processor to createcallback
- the observer of processor statedbHelper
- the database helper to usecontext
- the context to usecr
- the content resolver to use
BaseSyncProcessor
implementation of the requested
type
java.lang.IllegalArgumentException
- if the type of processor is not known
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc