|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vodafone360.people.engine.contactsync.SyncStatus
public class SyncStatus
In memory store for the current state of the Contacts sync engine.
| Nested Class Summary | |
|---|---|
static class |
SyncStatus.Task
Sync tasks, each of which corresponds to a specific processor. |
static class |
SyncStatus.TaskStatus
Sync task status. |
| Field Summary | |
|---|---|
private int |
mProgress
Percentage of sync progress in current task (e.g. 53). |
private ServiceStatus |
mServiceStatus
ServiceStatus of sync outcome. |
private SyncStatus.Task |
mTask
Current task (e.g. |
private SyncStatus.TaskStatus |
mTaskStatus
Current task status (e.g. |
private int |
mTaskStatusDone
Current task done (e.g. |
private int |
mTaskStatusTotal
Current task total (e.g. |
private java.lang.String |
mTextContact
Current contact name (e.g. |
| Constructor Summary | |
|---|---|
|
SyncStatus(int progress,
java.lang.String textContact,
SyncStatus.Task task)
Construct with the current state of the Contacts sync engine, with the task status set to TaskStatus.NONE. |
|
SyncStatus(int progress,
java.lang.String textContact,
SyncStatus.Task task,
SyncStatus.TaskStatus taskStatus,
int taskStatusDone,
int taskStatusTotal)
Construct with the current state of the Contacts sync engine. |
protected |
SyncStatus(ServiceStatus serviceStatus)
Construct with only the ServiceStatus of the Contacts sync engine. |
| Method Summary | |
|---|---|
int |
getProgress()
Get the current sync progress percentage for the current task. |
ServiceStatus |
getServiceStatus()
Gets the ServiceStatus of sync outcome. |
SyncStatus.Task |
getTask()
Get the current task (e.g. |
SyncStatus.TaskStatus |
getTaskStatus()
Get the current task status (e.g. |
int |
getTaskStatusDone()
Get the current task done (e.g. |
int |
getTaskStatusTotal()
Get the current task total (e.g. |
java.lang.String |
getTextContact()
Get the current contact name (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ServiceStatus mServiceStatus
private int mProgress
private java.lang.String mTextContact
private SyncStatus.Task mTask
private SyncStatus.TaskStatus mTaskStatus
private int mTaskStatusDone
private int mTaskStatusTotal
| Constructor Detail |
|---|
protected SyncStatus(ServiceStatus serviceStatus)
serviceStatus - ServiceStatus of sync outcome.
public SyncStatus(int progress,
java.lang.String textContact,
SyncStatus.Task task,
SyncStatus.TaskStatus taskStatus,
int taskStatusDone,
int taskStatusTotal)
progress - Percentage of sync progress in current task (e.g. 53).textContact - Current contact name (e.g. John Doe).task - Current task (e.g. Uploading server contacts).taskStatus - Current task status (e.g. Sent 25 of 500 contacts).taskStatusDone - Current task done (e.g. Sent X of 500 contacts).taskStatusTotal - Current task total (e.g. Sent 25 of X contacts).
public SyncStatus(int progress,
java.lang.String textContact,
SyncStatus.Task task)
progress - Percentage of sync progress in current task (e.g. 53).textContact - Current contact name (e.g. John Doe).task - Current task (e.g. Uploading server contacts).| Method Detail |
|---|
public final ServiceStatus getServiceStatus()
public final int getProgress()
public final java.lang.String getTextContact()
public final SyncStatus.Task getTask()
public final SyncStatus.TaskStatus getTaskStatus()
public final int getTaskStatusDone()
public final int getTaskStatusTotal()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaDoc