|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
es.cesar.quitesleep.syncData.SyncContactsRefresh
public class SyncContactsRefresh
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SyncContactsRefresh(Context context,
SyncContactsDialog syncDialog)
Constructor with all the three obligatory params for run the synchronization use for the first time running the application (empty db4o database contacts data) or for any other synchronization. |
Method Summary | |
---|---|
boolean |
deleteAll()
Delete all objects associated to Contacts, Mail, Phones, and Banned. |
int |
getInsertContact()
|
SyncContactsDialog |
getSyncDialog()
|
void |
run()
Synchronize the SQLite data contacts, with at least one phone number, with the DB4O database. |
void |
setInsertContact(int insertContact)
|
void |
setSyncDialog(SyncContactsDialog syncDialog)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyncContactsRefresh(Context context, SyncContactsDialog syncDialog)
context
- syncDialog
- Method Detail |
---|
public int getInsertContact()
public void setInsertContact(int insertContact)
public SyncContactsDialog getSyncDialog()
public void setSyncDialog(SyncContactsDialog syncDialog)
public boolean deleteAll()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
context
- after run and finish this function for
check how many contacts are synchronized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |