com.funambol.client.controller
Class HomeScreenController
java.lang.Object
com.funambol.client.controller.SynchronizationController
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.
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 |
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 |
homeScreen
protected HomeScreen homeScreen
items
protected java.util.Vector items
HomeScreenController
public HomeScreenController(Controller controller,
HomeScreen homeScreen)
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.