bt747.waba_view
Class AppController

java.lang.Object
  extended by bt747.model.Controller
      extended by bt747.waba_view.AppController
All Implemented Interfaces:
ModelListener

public final class AppController
extends Controller


Constructor Summary
AppController(Model model)
           
 
Method Summary
 void addView(BT747View view)
          Attach a view to the controller.
 void changeLogFormat(int logFormat)
          (User) request to change the log format.
 void changeLogFormatAndErase(int logFormat)
          (User) request to change the log format.
 void convertLog(int logType)
          Convert the log given the provided parameters using other methods.
 GPSRecord[] convertLogToTrackPoints()
          Convert the log into an array of trackpoints.
 void eraseLogWithDialogs()
          User request to format the device.
static void initAppSettings()
           
 void performOperationsAfterGPSConnect()
          This does a number of operations once the GPS is effectively connected.
 void recoveryErase()
          A 'recovery Erase' attempts to recover memory that was previously identified as 'bad'.
 void saveSettings()
          Save all the user settings to disk.
 
Methods inherited from class bt747.model.Controller
addLogFile, addWayPointStyle, cancelGetLog, closeGPS, connectGPS, doConvertLog, doConvertLog, doConvertLogToTrackPoints, doConvertLogToTracksAndWayPoints, eraseLog, getHeightReference, getInputConversionInstance, getInputConversionInstance, getLastError, getLastErrorInfo, getLogFiltersToUse, getModel, getOutFileExt, getOutFileHandler, getUserWayPoints, gpsCmd, gpsCmd, init, isEnableStoreOK, isLocationServingActive, logImmediate, modelEvent, openFreeTextPort, recoveryEraseLog, replyToOkToOverwrite, reqDeviceInfo, reqSettingsForStorage, resetFilters, restoreSetting1, sendBT747Exception, sendCmd, setAgpsData, setAutoFetch, setAutoLog, setBaudRate, setBluetooth, setBooleanOpt, setBTMacAddr, setChunkSize, setDatumMode, setDebug, setDebugConn, setDGPSMode, setDownloadMethod, setDownloadTimeOut, setFileNameBuilder, setFilterEndTime, setFilters, setFilterStartTime, setFixInterval, setFlashUserOption, setFloatOpt, setGpsDecode, setHoluxName, setIncremental, setIntOpt, setLogDistanceInterval, setLogFormat, setLoggingActive, setLogOverwrite, setLogRequestAhead, setLogSpeedInterval, setLogTimeInterval, setModel, setMtkDataNeeded, setNMEADefaultPeriods, setNMEAPeriods, setNMEAset, setOutputFileRelPath, setPort, setPowerSaveEnabled, setSBASEnabled, setSBASTestEnabled, setStats, setStringOpt, setUsb, setUserWayPoints, setWayPointStyles, startDefaultDownload, startDownload, startGPSPositionServing, startWPDownload, stopErase, stopGPSPositionServing, stopLogConvert, storeSetting1
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppController

public AppController(Model model)
Parameters:
model - The model to associate with this controller.
Method Detail

convertLog

public final void convertLog(int logType)
Convert the log given the provided parameters using other methods.

Parameters:
logType - Indicates the type of log that should be written. For example Model.CSV_LOGTYPE .
See Also:
Model.CSV_LOGTYPE, Model.TRK_LOGTYPE, Model.KML_LOGTYPE, Model.PLT_LOGTYPE, Model.GPX_LOGTYPE, Model.NMEA_LOGTYPE, Model.GMAP_LOGTYPE

convertLogToTrackPoints

public final GPSRecord[] convertLogToTrackPoints()
Convert the log into an array of trackpoints.

Returns:
Array of selected trackpoints.

recoveryErase

public final void recoveryErase()
A 'recovery Erase' attempts to recover memory that was previously identified as 'bad'.


changeLogFormatAndErase

public final void changeLogFormatAndErase(int logFormat)
(User) request to change the log format. Warns about requirement to erase the log too.

Parameters:
logFormat - The logFormat to set upon erase.

changeLogFormat

public final void changeLogFormat(int logFormat)
(User) request to change the log format. The log is not erased and may be incompatible with other applications.

Parameters:
logFormat - The new log format to set.

eraseLogWithDialogs

public final void eraseLogWithDialogs()
User request to format the device. Warns about requirement to erase the log too.


addView

public final void addView(BT747View view)
Attach a view to the controller.

Parameters:
view - The view that must be attached.

performOperationsAfterGPSConnect

public final void performOperationsAfterGPSConnect()
Description copied from class: Controller
This does a number of operations once the GPS is effectively connected. Can be extended by the application. It gets certain informations required by the application. It stores the settings related to the port (since the connection was successful) and starts of the Model to do port queries.

Overrides:
performOperationsAfterGPSConnect in class Controller

initAppSettings

public static final void initAppSettings()

saveSettings

public final void saveSettings()
Description copied from class: Controller
Save all the user settings to disk.

Overrides:
saveSettings in class Controller