class StartupSettings;
class DeviceDataStorage;
class DeviceConfigurator;
+class OperationModeToggler;
static const int ERROR_BASE=200;
* \param aAddInfo The possible additional error text.
*/
void errorSender( DeviceManager::ErrorCode aErrorCode, const QString &aAddInfo = "" );
+ void modeChanged();
private:
//! Updates the internal indicator of the current operation mode.
* \return True if operation mode fetching succeeds; otherwise, false.
*/
bool setCurrentOperationMode();
- //! Stores the current operation mode.
- /*!
- * Stores the current operation mode by asking the DeviceDataStorage to write it to the internal
- * data storage.
- * \param aMode The operation mode that user wants to activate.
- * \return True if operation mode storing succeeds; otherwise, false.
- */
- bool storeOperationMode( OperationMode aMode );
//! Asks DeviceConfigurator to remove the deactivate script of the application.
/*!
* Asks DeviceConfigurator to remove the deactivate script of the application. Also asks
* \param aHandle indicates if the signals should be connected or not.
*/
void handleKeyPresses( bool aHandle );
+ void toggleErrorSending( bool aToggle );
private:
AlarmSender *iAlarmSender;
StartupSettings *iSettings;
DeviceDataStorage *iDataStorage;
DeviceConfigurator *iConfigurator;
+ OperationModeToggler *iModeToggler;
OperationMode iMode;
bool iSendErrorMessages;