com.funambol.client.controller
Class Controller

java.lang.Object
  extended by com.funambol.client.controller.Controller

public class Controller
extends java.lang.Object


Field Summary
static int ABOUT_SCREEN_ID
           
static int ACCOUNT_SCREEN_ID
           
static int ADVANCED_SETTINGS_SCREEN_ID
           
protected  AppSyncSourceManager appSyncSourceManager
           
protected  Configuration configuration
           
static int CONFIGURATION_SCREEN_ID
           
protected  Customization customization
           
static int HOME_SCREEN_ID
           
protected  Localization localization
           
static int LOGIN_SCREEN_ID
           
static int SIGNUP_SCREEN_ID
           
protected  SyncModeHandler syncModeHandler
           
 
Constructor Summary
Controller()
          This constructor is here ONLY for backward compatibility.
Controller(ControllerDataFactory fact, Configuration configuration, Customization customization, Localization localization, AppSyncSourceManager appSyncSourceManager)
           
 
Method Summary
 boolean checkForUpdate()
           
 int computeNumberOfVisibleSources()
           
 AboutScreenController getAboutScreenController()
           
 AdvancedSettingsScreenController getAdvancedSettingsScreenController()
           
 AppSyncSourceManager getAppSyncSourceManager()
           
 Configuration getConfiguration()
           
 Customization getCustomization()
           
 DialogController getDialogController()
           
 DisplayManager getDisplayManager()
           
 HomeScreenController getHomeScreenController()
           
 Localization getLocalization()
           
 AccountScreenController getLoginScreenController()
           
 SignupScreenController getSignupScreenController()
           
 SyncSettingsScreenController getSyncSettingsScreenController()
           
 void hideScreen(Screen screen)
           
 boolean isUpdate()
           
 boolean isVisible(AppSyncSource appSource)
          This method checks if a source must be displayed or not.
 void promptUpdate()
          Called when user selected Download Update from the menu
 void reapplyAccountConfiguration()
           
 void reapplyConfiguration()
           
 void reapplyMiscConfiguration()
           
 void reapplyServerCaps(DevInf devInf)
           
 void reapplySourceConfiguration(AppSyncSource appSource)
           
 void reapplySyncModeConfiguration()
           
 void reapplyUpdaterConfiguration()
           
 void setAboutScreenController(AboutScreenController aboutScreenController)
           
 void setAdvancedSettingsScreenController(AdvancedSettingsScreenController advancedSettingsScreenController)
           
 void setHomeScreenController(HomeScreenController homeScreenController)
           
 void setLoginScreenController(AccountScreenController loginScreenController)
           
 void setSignupScreenController(SignupScreenController signupScreenController)
           
 void setSyncSettingsScreenController(SyncSettingsScreenController syncSettingsScreenController)
           
 boolean shallLoginScreenBeRun()
           
 void showScreen(Screen screen, int screenId)
           
 void toBackground()
           
 void toForeground()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOME_SCREEN_ID

public static final int HOME_SCREEN_ID
See Also:
Constant Field Values

CONFIGURATION_SCREEN_ID

public static final int CONFIGURATION_SCREEN_ID
See Also:
Constant Field Values

LOGIN_SCREEN_ID

public static final int LOGIN_SCREEN_ID
See Also:
Constant Field Values

SIGNUP_SCREEN_ID

public static final int SIGNUP_SCREEN_ID
See Also:
Constant Field Values

ACCOUNT_SCREEN_ID

public static final int ACCOUNT_SCREEN_ID
See Also:
Constant Field Values

ABOUT_SCREEN_ID

public static final int ABOUT_SCREEN_ID
See Also:
Constant Field Values

ADVANCED_SETTINGS_SCREEN_ID

public static final int ADVANCED_SETTINGS_SCREEN_ID
See Also:
Constant Field Values

customization

protected Customization customization

configuration

protected Configuration configuration

localization

protected Localization localization

appSyncSourceManager

protected AppSyncSourceManager appSyncSourceManager

syncModeHandler

protected SyncModeHandler syncModeHandler
Constructor Detail

Controller

public Controller(ControllerDataFactory fact,
                  Configuration configuration,
                  Customization customization,
                  Localization localization,
                  AppSyncSourceManager appSyncSourceManager)

Controller

public Controller()
This constructor is here ONLY for backward compatibility. Do not use it unless you know what you are doing.

Method Detail

setHomeScreenController

public void setHomeScreenController(HomeScreenController homeScreenController)

getHomeScreenController

public HomeScreenController getHomeScreenController()

setLoginScreenController

public void setLoginScreenController(AccountScreenController loginScreenController)

getLoginScreenController

public AccountScreenController getLoginScreenController()

setSignupScreenController

public void setSignupScreenController(SignupScreenController signupScreenController)

getSignupScreenController

public SignupScreenController getSignupScreenController()

setSyncSettingsScreenController

public void setSyncSettingsScreenController(SyncSettingsScreenController syncSettingsScreenController)

getSyncSettingsScreenController

public SyncSettingsScreenController getSyncSettingsScreenController()

setAdvancedSettingsScreenController

public void setAdvancedSettingsScreenController(AdvancedSettingsScreenController advancedSettingsScreenController)

getAdvancedSettingsScreenController

public AdvancedSettingsScreenController getAdvancedSettingsScreenController()

setAboutScreenController

public void setAboutScreenController(AboutScreenController aboutScreenController)

getAboutScreenController

public AboutScreenController getAboutScreenController()

getDialogController

public DialogController getDialogController()
Returns:
the DialogController;

getDisplayManager

public DisplayManager getDisplayManager()

showScreen

public void showScreen(Screen screen,
                       int screenId)

hideScreen

public void hideScreen(Screen screen)

toForeground

public void toForeground()

toBackground

public void toBackground()

isUpdate

public boolean isUpdate()

reapplyConfiguration

public void reapplyConfiguration()

reapplyAccountConfiguration

public void reapplyAccountConfiguration()

reapplyUpdaterConfiguration

public void reapplyUpdaterConfiguration()

reapplySourceConfiguration

public void reapplySourceConfiguration(AppSyncSource appSource)

reapplySyncModeConfiguration

public void reapplySyncModeConfiguration()

reapplyMiscConfiguration

public void reapplyMiscConfiguration()

reapplyServerCaps

public void reapplyServerCaps(DevInf devInf)

promptUpdate

public void promptUpdate()
Called when user selected Download Update from the menu


checkForUpdate

public boolean checkForUpdate()

isVisible

public boolean isVisible(AppSyncSource appSource)
This method checks if a source must be displayed or not.


computeNumberOfVisibleSources

public int computeNumberOfVisibleSources()

getConfiguration

public Configuration getConfiguration()

getCustomization

public Customization getCustomization()

getLocalization

public Localization getLocalization()

getAppSyncSourceManager

public AppSyncSourceManager getAppSyncSourceManager()

shallLoginScreenBeRun

public boolean shallLoginScreenBeRun()


Copyright © 2001-2009 Funambol.