|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to be implemented by classes that wish to implement Synchronizer callback functionality. Any application that wishes to use the Synchronizer class to implement data sync capabilities needs to provide a class that implements this interface the the Synchronizer instance so that the Synchronizer can make callbacks to exchange information, and to allow the application to handle app-centric processing during synchronization. Note that every call provides as a parameter the Synchronizer that generated the call. Applications that implement multiple Synchronizers should use this to differentiate between them.
Method Summary | |
---|---|
void |
endOfSync(Synchronizer s)
This message is called by the Synchronizer instance specified when it has completed a synchronization. |
java.util.Vector |
getConduits(Synchronizer s)
Retrieves a Vector object containing the active instances of the conduits to be synchronized. |
AbstractConduit |
getDefaultConduit(Synchronizer s)
Retrieves the DefaultConduit object to be used at the end of a standard sync. |
DLPUserInfo |
getNewUserInfo(Synchronizer s)
Requests new user information from the sync application. |
java.io.File |
getRestoreDatabasePath()
Gets the database set to be used for the restore operation. |
int |
getSyncType(Synchronizer s)
Retrieves the type of synchronization to perform. |
void |
midSync(Synchronizer s)
This message is called by the Synchronizer instance specified when it has reached the mid-point of a synchronization job. |
void |
processUser(DLPUserInfo userInfo,
Synchronizer s)
Gives the application a chance to process the user info for the handhelds owner. |
void |
startOfSync(Synchronizer s)
This message is called by the Synchronizer instance specified when it has began a synchronization job. |
boolean |
useTimeSync(Synchronizer s)
Requests wether or not date and time synchronization should be used at sync time. |
boolean |
validateUser(int userID,
Synchronizer s)
Requests user validation from the implementing application. |
Method Detail |
public void endOfSync(Synchronizer s)
s
- a reference to the Synchronizer that has completed a sync job.public java.util.Vector getConduits(Synchronizer s)
s
- a reference to the Synchronizer that has completed a sync job.public AbstractConduit getDefaultConduit(Synchronizer s)
s
- a reference to the Synchronizer that has completed a sync job.public DLPUserInfo getNewUserInfo(Synchronizer s)
s
- a reference to the Synchronizer that has completed a sync job.public int getSyncType(Synchronizer s)
s
- a reference to the Synchronizer that has completed a sync job.public void midSync(Synchronizer s)
s
- a reference to the Synchronizer that has reached the mid-point of a sync job.public void processUser(DLPUserInfo userInfo, Synchronizer s)
userInfo
- the DLPUserInfo object for the currently synchronizing handheld.s
- a reference to the Synchronizer that has completed a sync job.public void startOfSync(Synchronizer s)
s
- a reference to the Synchronizer that has started a sync job.public boolean useTimeSync(Synchronizer s)
s
- a reference to the Synchronizer that has completed a sync job.public boolean validateUser(int userID, Synchronizer s)
userID
- ints
- a reference to the Synchronizer that has completed a sync job.public java.io.File getRestoreDatabasePath()
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |