|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncml.spds.SyncManager
public class SyncManager
The SyncManager is the engine of the synchronization process on the client library. It initializes the sync, checks the server responses and communicate with the SyncSource, which is the client-specific source of data. A client developer must prepare a SyncConfig to istantiate a SyncManager, and then can sync its sources calling the sync() method.
Constructor Summary | |
---|---|
SyncManager(SyncConfig conf)
SyncManager constructor |
Method Summary | |
---|---|
boolean |
isBusy()
|
void |
setFlagSendDevInf()
To be invoked by every change of the device configuration and if the serverUrl is a new one (i.e., not already on the list lastServerUrl |
void |
sync(SyncSource source)
Synchronizes synchronization source, using the preferred sync mode defined for that SyncSource. |
void |
sync(SyncSource src,
int syncMode)
Synchronizes synchronization source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyncManager(SyncConfig conf)
conf
- is the configuration data filled by the clientMethod Detail |
---|
public void sync(SyncSource source) throws SyncException
source
- the SyncSource to synchronize
SyncException
- If an error occurs during synchronizationpublic void sync(SyncSource src, int syncMode) throws SyncException
source
- the SyncSource to synchronizesyncMode
- the sync mode
SyncException
- If an error occurs during synchronizationpublic void setFlagSendDevInf()
lastServerUrl
public boolean isBusy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |