com.funambol.client.controller
Class AccountScreenController

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

public class AccountScreenController
extends SynchronizationController

This class is the controller (in the MVC model) for the AccountScreen.


Field Summary
 
Fields inherited from class com.funambol.client.controller.SynchronizationController
controller, currentSource, doCancel, engine, logConnectivityError, MANUAL, PUSH, REFRESH_FROM_SERVER, REFRESH_TO_SERVER, SCHEDULED, showTCPAlert
 
Constructor Summary
AccountScreenController(Controller controller, AccountScreen accountScreen)
           
 
Method Summary
 void applyCurrentValues()
          Apply the current Configuration values
 void endSync(java.util.Vector sources, boolean hadErrors)
          The synchronizaion has been completed for the given sources.
 Controller getController()
           
 boolean hasChanges(java.lang.String serverUri, java.lang.String username, java.lang.String password)
           
 void hide()
           
 void initScreen()
           
 void resetValues()
           
 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 syncEnded()
          Invoked at the end of the synchronization (always invoked, regardless of success or failure)
 
Methods inherited from class com.funambol.client.controller.SynchronizationController
beginSync, cancelSync, clearErrors, confirmDeletes, connectionClosed, connectionConfigurationChanged, connectionOpened, continueSynchronizationAfterDialogCheck, createSyncEngine, forceSynchronization, getCurrentSource, getRemoteUri, getSyncEngine, isCancelled, isConnectionConfigurationAllowed, isSynchronizing, noConnection, noCredentials, noSignal, noSources, refresh, refreshSources, requestWritten, responseReceived, serverOperationFailed, setCancel, setIsUserConfirmationNeeded, setScreen, showPendingFirstSyncQuestion, sourceEnded, synchronize, synchronize, synchronize, syncStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountScreenController

public AccountScreenController(Controller controller,
                               AccountScreen accountScreen)
Method Detail

getController

public Controller getController()
Overrides:
getController in class SynchronizationController

saveAndCheck

public void saveAndCheck(java.lang.String serverUri,
                         java.lang.String username,
                         java.lang.String password)

sourceFailed

public void sourceFailed(AppSyncSource appSource,
                         SyncException e)
Description copied from interface: SyncEngineListener
This method is invoked when the synchronization of a source throws an exception. The exception is provided so the upper layers can decide if an error message shall be shown.

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

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

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

hasChanges

public boolean hasChanges(java.lang.String serverUri,
                          java.lang.String username,
                          java.lang.String password)

resetValues

public void resetValues()

applyCurrentValues

public void applyCurrentValues()
Apply the current Configuration values


endSync

public void endSync(java.util.Vector sources,
                    boolean hadErrors)
Description copied from interface: SyncEngineListener
The synchronizaion has been completed for the given sources.

Specified by:
endSync in interface SyncEngineListener
Overrides:
endSync in class SynchronizationController
Parameters:
sources - the list of sources being synchronized

hide

public void hide()

initScreen

public void initScreen()

showSyncInProgressMessage

protected void showSyncInProgressMessage()


Copyright © 2001-2009 Funambol.