* \param aAddInfo Possible additional information.
*/
void error( int aCode, const QString &aAddInfo );
-
+ //! Signal. Emitted during the operation mode change to explain the current sub-change.
+ /*!
+ * Signal. Emitted during the operation mode change to explain the current sub-change.
+ * \param aMessage Explains the sub-change
+ */
void changingMode( const QString &aMessage );
private slots:
* \param aAddInfo The possible additional error text.
*/
void errorSender( DeviceManager::ErrorCode aErrorCode, const QString &aAddInfo = "" );
+ //! Slot. Is called after the operation mode changing is finished.
+ /*!
+ * Slot. Is called after the operation mode changing is finished. If everything went fine, restarts
+ * the device.
+ */
void modeChanged();
+ //! Slot. Toggles an attribute that indicates whether the errors should be sent.
+ /*!
+ * Slot. Toggles an attribute that indicates whether the errors should be sent.
+ * \param aToggle Indicates if the errors are wanted to be shown.
+ */
+ void toggleErrorSending( bool aToggle );
private:
//! Updates the internal indicator of the current operation mode.
* \param aHandle indicates if the signals should be connected or not.
*/
void handleKeyPresses( bool aHandle );
- void toggleErrorSending( bool aToggle );
private:
AlarmSender *iAlarmSender;
* Run method of the class.
*/
void run();
+ //! Returns the success status of the operation mode change.
+ /*!
+ * Returns the success status of the operation mode change.
+ */
bool success();
//! Stores the current operation mode.
/*!
static bool storeOperationMode( DeviceManager::OperationMode aMode, DeviceDataStorage *aDataStorage );
signals:
+ //! Signal. Emitted if an error occurs during operation mode fetching or reading.
+ /*!
+ * Signal. Emitted if an error occurs during operation mode fetching or reading. Note that other
+ * possible errors are sent by the other instances e.g. alarm sender sents it's own errors.
+ * \param aCode The error code.
+ */
void error( DeviceManager::ErrorCode aCode );
+ //! Signal. Emitted if an error occurs during operation mode changing.
+ /*!
+ * Signal. Emitted if an error occurs during operation mode changing. If an error occurs, the operation
+ * mode changes made so far have to be rolled back. During this we don't want to show possible new
+ * errors.
+ * \param aToggle Indicates if the errors are wanted to be shown.
+ */
void toggleErrorSending( bool aToggle );
+ //! Signal. Emitted during the operation mode change to explain the current sub-change.
+ /*!
+ * Signal. Emitted during the operation mode change to explain the current sub-change.
+ * \param aMessage Explains the sub-change
+ */
void changingMode( const QString &aMessage );
private: