Definition at line 62 of file OpenMSPSynchroManager.java.
Public Member Functions | |
OpenMSPSyncListener | getListenerByName (String listenerName) |
Return the registered listener with specified name. | |
boolean | removeListenerByName (String listenerName) |
Remove the listener with the specified name. | |
OpenMSPSyncListener | getModuleListenerByName (String listenerName) |
Return the registered module listener with specified name. | |
void | registerSynchroListenerAddNotifier (SynchroListenerAddNotifier listener) |
register a listener that will be notified when a synchrolistener is added. | |
void | addListener (OpenMSPSyncListener listener, String[] depends) |
register a new listener and its depends that will participate to the synchro. | |
void | addModuleListener (OpenMSPSyncListener listener, String[] depends) |
register a new listener and its depends that will participate to the module synchro. | |
String | getSynchroUserAgent (SynchroDescriptor descriptor) |
return the user agent to use with synchronisation. |
OpenMSPSyncListener org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.getListenerByName | ( | String | listenerName | ) |
Return the registered listener with specified name.
listenerName |
Definition at line 123 of file OpenMSPSynchroManager.java.
References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.getListenerByName().
boolean org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.removeListenerByName | ( | String | listenerName | ) |
Remove the listener with the specified name.
It remove all dependent listener too. Return a boolean to inform the succed or not of the remove operation
listenerName |
Definition at line 133 of file OpenMSPSynchroManager.java.
References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.removeListenerByName().
OpenMSPSyncListener org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.getModuleListenerByName | ( | String | listenerName | ) |
Return the registered module listener with specified name.
Module listener participate to module synchro Module synchro is the synchro of module specific files to manage module update.
listenerName |
Definition at line 145 of file OpenMSPSynchroManager.java.
References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.getListenerByName().
void org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.addListener | ( | OpenMSPSyncListener | listener, | |
String[] | depends | |||
) |
register a new listener and its depends that will participate to the synchro.
Listener's depends are an array of listener name that must be synchronized before the new listener. There is no specific order to register the listener and its dependance. If the SynchroListenerAddNotifier is registered the listener is registered only if the isBlocking() call return true. In other case nothing is done. The listener initListener() method is call before in all case.
listener | : listener to register | |
depends | : list of listener name |
Definition at line 250 of file OpenMSPSynchroManager.java.
References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.addListener(), org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.initListener(), org.openmobileis.database.fastobjectdb.synchro.client.SynchroListenerAddNotifier.isBlocking(), and org.openmobileis.database.fastobjectdb.synchro.client.SynchroListenerAddNotifier.notifyAddListener().
void org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.addModuleListener | ( | OpenMSPSyncListener | listener, | |
String[] | depends | |||
) |
register a new listener and its depends that will participate to the module synchro.
Module synchro is the synchro of module specific files to manage module update. Listener's depends are an array of listener name that must be synchronized before the new listener. Thier is no specific order to register the listener and its dependance.
listener | : listener to register | |
depends | : list of listener name |
Definition at line 280 of file OpenMSPSynchroManager.java.
References org.openmobileis.synchro.openmsp.client.core.ListenerOrdonancer.addListener().
String org.openmobileis.synchro.openmsp.client.OpenMSPSynchroManager.getSynchroUserAgent | ( | SynchroDescriptor | descriptor | ) |
return the user agent to use with synchronisation.
The user agent can be defined with the property org.openmobileis.synchro.direct.useragent. or if not set, it's constructed with plateform information. default user agent : OpenMSPPlug-<OpenMobileISMajorVersion>.<OpenMobileISMinorVersion>-<OS>[<OSVersion>]-<user language>="">-<synchro type="" if="" present>=""> The synchro type is defined with the property OpenMSPsynchrotype of the descriptor.
Definition at line 327 of file OpenMSPSynchroManager.java.
References org.openmobileis.common.context.Plateform.getOpenMobileISMajorVersion(), org.openmobileis.common.context.Plateform.getOpenMobileISMinorVersion(), org.openmobileis.common.context.Plateform.getOS(), org.openmobileis.common.context.Plateform.getOSVersion(), and org.openmobileis.synchro.client.SynchroDescriptor.getProperty().