|
||||||||||
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
com.funambol.client.controller.SignupScreenController
public abstract class SignupScreenController
This class is the controller (in the MVC model) for the SignupScreen.
Field Summary | |
---|---|
protected int |
state
|
protected int |
STATE_BEGIN
|
protected int |
STATE_CAPTCHA
|
protected int |
STATE_LOGGED_IN
|
protected int |
STATE_LOGIN_FAILED
|
protected int |
STATE_SIGNED_UP
|
Fields inherited from class com.funambol.client.controller.AccountScreenController |
---|
configAppSource, exp, failed, originalPassword, originalUrl, originalUser, screen, 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 | |
---|---|
SignupScreenController(Controller controller,
Customization customization,
Configuration configuration,
Localization localization,
AppSyncSourceManager appSyncSourceManager,
SignupScreen signupScreen)
TODO: Remove once the com.funambol.client.controller package integration is finished |
Method Summary | |
---|---|
protected void |
captchaRequestFailed(java.lang.String msg)
|
protected void |
captchaRequestStarted()
|
protected void |
captchaRequestSucceeded(byte[] captcha)
|
void |
continueWithSignup()
Sign up the user with the information taken from the account screen and DeviceInfo |
java.lang.String |
getCurrentJSessionId()
|
protected abstract DeviceInfoInterface |
getDeviceInfo()
|
protected java.lang.String |
getMessageFromSyncException(SyncException ex)
|
protected void |
hideProgressDialog()
|
void |
initScreen()
|
void |
initScreen(java.lang.String url,
java.lang.String usr,
java.lang.String pwd)
|
protected void |
loginRequestFailed()
|
protected void |
loginRequestStarted()
|
protected void |
loginRequestSucceeded()
|
void |
promptCaptcha()
|
void |
promptCredentials()
|
protected void |
requestLogin()
|
protected void |
requestNewCaptcha(boolean unmatched)
|
void |
setCurrentJSessionId(java.lang.String id)
|
protected void |
showProgressDialog(java.lang.String label)
|
protected void |
showSignupSucceededMessage(java.lang.String message)
|
void |
signup()
Sign up the user with the information taken from the account screen and DeviceInfo |
protected void |
signupFailed(java.lang.String msg)
|
protected void |
signupFailed(java.lang.String msg,
boolean promptCredentials)
|
void |
signupStarted()
|
void |
signupSucceeded()
|
void |
switchToLoginScreen()
Prompts the user to the login screen |
void |
syncEnded()
Invoked at the end of the synchronization (always invoked, regardless of success or failure) |
void |
synchronize(java.lang.String syncType,
java.util.Vector syncSources)
Triggers a synchronization for the given syncSources. |
protected void |
userAuthenticated()
|
Methods inherited from class com.funambol.client.controller.AccountScreenController |
---|
endSync, getAccountScreen, hasChanges, hide, isSyncInProgress, resetValues, saveAndCheck, saveAndCheck, showSyncInProgressMessage, sourceFailed, sourceStarted, switchToSignupScreen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int STATE_BEGIN
protected final int STATE_LOGGED_IN
protected final int STATE_LOGIN_FAILED
protected final int STATE_CAPTCHA
protected final int STATE_SIGNED_UP
protected int state
Constructor Detail |
---|
public SignupScreenController(Controller controller, Customization customization, Configuration configuration, Localization localization, AppSyncSourceManager appSyncSourceManager, SignupScreen signupScreen)
Method Detail |
---|
protected abstract DeviceInfoInterface getDeviceInfo()
public void initScreen()
initScreen
in class AccountScreenController
public void initScreen(java.lang.String url, java.lang.String usr, java.lang.String pwd)
initScreen
in class AccountScreenController
public void promptCredentials()
public void promptCaptcha()
public void switchToLoginScreen()
public void continueWithSignup()
protected void requestLogin()
protected void loginRequestStarted()
protected void loginRequestSucceeded()
protected void loginRequestFailed()
protected void requestNewCaptcha(boolean unmatched)
protected void captchaRequestStarted()
protected void captchaRequestSucceeded(byte[] captcha)
protected void captchaRequestFailed(java.lang.String msg)
public void signup()
public void signupStarted()
public void signupSucceeded()
protected void signupFailed(java.lang.String msg)
protected void signupFailed(java.lang.String msg, boolean promptCredentials)
public void synchronize(java.lang.String syncType, java.util.Vector syncSources)
SynchronizationController
synchronize
in class SynchronizationController
syncType
- the caller type (SYNC_TYPE_MANUAL, SYNC_TYPE_SCHEDULED)syncSources
- is a vector of AppSyncSource to be syncedpublic void syncEnded()
SyncEngineListener
syncEnded
in interface SyncEngineListener
syncEnded
in class AccountScreenController
protected void userAuthenticated()
userAuthenticated
in class AccountScreenController
protected void showSignupSucceededMessage(java.lang.String message)
protected void showProgressDialog(java.lang.String label)
protected void hideProgressDialog()
protected java.lang.String getMessageFromSyncException(SyncException ex)
getMessageFromSyncException
in class AccountScreenController
public java.lang.String getCurrentJSessionId()
public void setCurrentJSessionId(java.lang.String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |