com.funambol.client.controller
Class HomeScreenController

java.lang.Object
  extended by com.funambol.client.controller.SynchronizationController
      extended by com.funambol.client.controller.HomeScreenController
All Implemented Interfaces:
SyncEngineListener

public class HomeScreenController
extends SynchronizationController

This class represents the controller for the home screen. Since the HomeScreen is a screen where synchronizations can be performed, the class extends the SynchronizationController. On top of this the class adds the ability of handling the home screen.


Field Summary
protected  HomeScreen homeScreen
           
protected  java.util.Vector items
           
 
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
HomeScreenController(Controller controller, HomeScreen homeScreen)
           
 
Method Summary
 void attachToRunningSync(AppSyncSource appSource)
           
protected  void attachToSource(AppSyncSource appSource)
           
 void buttonPressed(int index)
           
 void buttonSelected(int index)
           
 void cancelMenuSelected()
           
protected  void changeSyncLabelsOnSync(AppSyncSource appSource)
           
protected  void changeSyncLabelsOnSyncEnded()
           
 void exit()
           
 HomeScreen getHomeScreen()
           
 java.util.Vector getVisibleItems()
           
 void gotoMenuSelected()
           
 boolean isUpdate()
           
protected  void lockHomeScreen(java.util.Vector sources)
           
 int numErrors()
           
 void quitMenuSelected()
           
 void redraw()
           
 void refreshMenuSelected()
           
 void selectFirstAvailable()
           
 void sendLogs()
           
 void setHomeScreen(HomeScreen homeScreen)
           
 void showAboutScreen()
           
 void showAccountScreen()
           
 void showConfigurationScreen()
           
protected  void showSyncInProgressMessage()
           
 void sourceStarted(AppSyncSource appSource)
          This method notifies that a new source is about to begin its synchronization.
 void syncAllPressed()
           
 void syncAllSources(java.lang.String syncType)
           
 void syncEnded()
          Invoked at the end of the synchronization (always invoked, regardless of success or failure)
 void syncMenuSelected()
           
protected  void syncSource(java.lang.String syncType, AppSyncSource appSource)
           
 boolean syncStarted(java.util.Vector sources)
          A sync for the given sources is about to begin.
protected  void unlockHomeScreen()
           
 void updateAvailableSources()
           
 void updateEnabledSources()
           
 void updateMenuSelected()
           
 
Methods inherited from class com.funambol.client.controller.SynchronizationController
beginSync, cancelSync, clearErrors, confirmDeletes, connectionClosed, connectionConfigurationChanged, connectionOpened, continueSynchronizationAfterDialogCheck, createSyncEngine, endSync, forceSynchronization, getController, getCurrentSource, getRemoteUri, getSyncEngine, isCancelled, isConnectionConfigurationAllowed, isSynchronizing, noConnection, noCredentials, noSignal, noSources, refresh, refreshSources, requestWritten, responseReceived, serverOperationFailed, setCancel, setIsUserConfirmationNeeded, setScreen, showPendingFirstSyncQuestion, sourceEnded, sourceFailed, synchronize, synchronize, synchronize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

homeScreen

protected HomeScreen homeScreen

items

protected java.util.Vector items
Constructor Detail

HomeScreenController

public HomeScreenController(Controller controller,
                            HomeScreen homeScreen)
Method Detail

getHomeScreen

public HomeScreen getHomeScreen()

setHomeScreen

public void setHomeScreen(HomeScreen homeScreen)

updateAvailableSources

public void updateAvailableSources()

syncStarted

public boolean syncStarted(java.util.Vector sources)
Description copied from interface: SyncEngineListener
A sync for the given sources is about to begin.

Specified by:
syncStarted in interface SyncEngineListener
Overrides:
syncStarted in class SynchronizationController

attachToRunningSync

public void attachToRunningSync(AppSyncSource appSource)

syncEnded

public void syncEnded()
Description copied from interface: SyncEngineListener
Invoked at the end of the synchronization (always invoked, regardless of success or failure)

Specified by:
syncEnded in interface SyncEngineListener
Overrides:
syncEnded in class SynchronizationController

redraw

public void redraw()

getVisibleItems

public java.util.Vector getVisibleItems()

buttonSelected

public void buttonSelected(int index)

buttonPressed

public void buttonPressed(int index)

selectFirstAvailable

public void selectFirstAvailable()

sourceStarted

public void sourceStarted(AppSyncSource appSource)
Description copied from interface: SyncEngineListener
This method notifies that a new source is about to begin its synchronization.

Specified by:
sourceStarted in interface SyncEngineListener
Overrides:
sourceStarted in class SynchronizationController

lockHomeScreen

protected void lockHomeScreen(java.util.Vector sources)

updateEnabledSources

public void updateEnabledSources()

syncSource

protected void syncSource(java.lang.String syncType,
                          AppSyncSource appSource)

syncMenuSelected

public void syncMenuSelected()

syncAllPressed

public void syncAllPressed()

syncAllSources

public void syncAllSources(java.lang.String syncType)

refreshMenuSelected

public void refreshMenuSelected()

cancelMenuSelected

public void cancelMenuSelected()

updateMenuSelected

public void updateMenuSelected()

quitMenuSelected

public void quitMenuSelected()

isUpdate

public boolean isUpdate()

numErrors

public int numErrors()

sendLogs

public void sendLogs()

exit

public void exit()

showConfigurationScreen

public void showConfigurationScreen()

showAboutScreen

public void showAboutScreen()

showAccountScreen

public void showAccountScreen()

gotoMenuSelected

public void gotoMenuSelected()

unlockHomeScreen

protected void unlockHomeScreen()

showSyncInProgressMessage

protected void showSyncInProgressMessage()

changeSyncLabelsOnSync

protected void changeSyncLabelsOnSync(AppSyncSource appSource)

attachToSource

protected void attachToSource(AppSyncSource appSource)

changeSyncLabelsOnSyncEnded

protected void changeSyncLabelsOnSyncEnded()


Copyright © 2001-2009 Funambol.