|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.client.controller.SynchronizationController
com.funambol.client.controller.AccountScreenController
public class AccountScreenController
This class is the controller (in the MVC model) for the AccountScreen.
Field Summary | |
---|---|
protected AppSyncSource |
configAppSource
|
protected java.lang.Exception |
exp
|
protected boolean |
failed
|
protected java.lang.String |
originalPassword
|
protected java.lang.String |
originalUrl
|
protected java.lang.String |
originalUser
|
protected AccountScreen |
screen
|
protected boolean |
sourceStarted
|
Fields inherited from class com.funambol.client.controller.SynchronizationController |
---|
appSyncSourceManager, configuration, controller, currentSource, customization, doCancel, engine, localization, logConnectivityError, MANUAL, PUSH, REFRESH_FROM_SERVER, REFRESH_TO_SERVER, SCHEDULED, showTCPAlert |
Constructor Summary | |
---|---|
AccountScreenController(Controller controller,
AccountScreen accountScreen)
|
|
AccountScreenController(Controller controller,
Customization customization,
Configuration configuration,
Localization localization,
AppSyncSourceManager appSyncSourceManager,
AccountScreen accountScreen)
TODO: Remove once the com.funambol.client.controller package integration is finished |
Method Summary | |
---|---|
void |
endSync(java.util.Vector sources,
boolean hadErrors)
The synchronizaion has been completed for the given sources. |
AccountScreen |
getAccountScreen()
|
protected java.lang.String |
getMessageFromSyncException(SyncException ex)
|
boolean |
hasChanges(java.lang.String serverUri,
java.lang.String username,
java.lang.String password)
|
void |
hide()
|
void |
initScreen()
|
void |
initScreen(java.lang.String url,
java.lang.String usr,
java.lang.String pwd)
|
protected boolean |
isSyncInProgress()
|
void |
resetValues()
|
void |
saveAndCheck()
|
void |
saveAndCheck(java.lang.String serverUri,
java.lang.String username,
java.lang.String password)
|
protected void |
showSyncInProgressMessage()
|
void |
sourceFailed(AppSyncSource appSource,
SyncException e)
This method is invoked when the synchronization of a source throws an exception. |
void |
sourceStarted(AppSyncSource appSource)
This method notifies that a new source is about to begin its synchronization. |
void |
switchToSignupScreen()
|
void |
syncEnded()
Invoked at the end of the synchronization (always invoked, regardless of success or failure) |
protected void |
userAuthenticated()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AccountScreen screen
protected AppSyncSource configAppSource
protected boolean failed
protected boolean sourceStarted
protected java.lang.Exception exp
protected java.lang.String originalUrl
protected java.lang.String originalUser
protected java.lang.String originalPassword
Constructor Detail |
---|
public AccountScreenController(Controller controller, AccountScreen accountScreen)
public AccountScreenController(Controller controller, Customization customization, Configuration configuration, Localization localization, AppSyncSourceManager appSyncSourceManager, AccountScreen accountScreen)
Method Detail |
---|
public AccountScreen getAccountScreen()
public void saveAndCheck()
public void saveAndCheck(java.lang.String serverUri, java.lang.String username, java.lang.String password)
protected boolean isSyncInProgress()
public void sourceFailed(AppSyncSource appSource, SyncException e)
SyncEngineListener
sourceFailed
in interface SyncEngineListener
sourceFailed
in class SynchronizationController
public void sourceStarted(AppSyncSource appSource)
SyncEngineListener
sourceStarted
in interface SyncEngineListener
sourceStarted
in class SynchronizationController
public void syncEnded()
SyncEngineListener
syncEnded
in interface SyncEngineListener
syncEnded
in class SynchronizationController
protected java.lang.String getMessageFromSyncException(SyncException ex)
public boolean hasChanges(java.lang.String serverUri, java.lang.String username, java.lang.String password)
public void resetValues()
public void endSync(java.util.Vector sources, boolean hadErrors)
SyncEngineListener
endSync
in interface SyncEngineListener
endSync
in class SynchronizationController
sources
- the list of sources being synchronizedpublic void hide()
public void initScreen()
public void initScreen(java.lang.String url, java.lang.String usr, java.lang.String pwd)
protected void showSyncInProgressMessage()
protected void userAuthenticated()
public void switchToSignupScreen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |