X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FIO%2FDeviceControl%2FDeviceManager.h;h=2d0dac4cc43d09f6d2a128d4249a9c9e2257855e;hb=ddaeaa85dc39c1e67fae142677adbce94965c1e7;hp=d318482b37042788ba3cb5b49699e149c02d83d3;hpb=2fee8a8f52f449dd162bd1ece6c71dd3a460df1d;p=qtmeetings diff --git a/src/IO/DeviceControl/DeviceManager.h b/src/IO/DeviceControl/DeviceManager.h index d318482..2d0dac4 100644 --- a/src/IO/DeviceControl/DeviceManager.h +++ b/src/IO/DeviceControl/DeviceManager.h @@ -9,6 +9,7 @@ class HWKeyListener; class StartupSettings; class DeviceDataStorage; class DeviceConfigurator; +class OperationModeToggler; static const int ERROR_BASE=200; @@ -123,6 +124,7 @@ private slots: * \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. @@ -133,14 +135,6 @@ private: * \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 @@ -155,6 +149,7 @@ private: * \param aHandle indicates if the signals should be connected or not. */ void handleKeyPresses( bool aHandle ); + void toggleErrorSending( bool aToggle ); private: AlarmSender *iAlarmSender; @@ -162,6 +157,7 @@ private: StartupSettings *iSettings; DeviceDataStorage *iDataStorage; DeviceConfigurator *iConfigurator; + OperationModeToggler *iModeToggler; OperationMode iMode; bool iSendErrorMessages;