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 happens.
/*!
- * 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.
+ * Signal. Emitted if an error happens.
+ * \param aCode An error code defined by DeviceManager.
+ * \param aAddInfo Possible additional information.
*/
- void error( DeviceManager::ErrorCode aCode );
+ void error( DeviceManager::ErrorCode aCode, const QString &aAddInfo );
//! 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
* \param aMessage Explains the sub-change
*/
void changingMode( const QString &aMessage );
+
+private slots:
+ //! Slot. Emits an error signal.
+ /*!
+ * Slot. Emits an error signal.
+ * \param aCode The error code.
+ */
+ void createError( DeviceManager::ErrorCode aCode );
private:
DeviceManager::OperationMode iMode;