X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FIO%2FDeviceControl%2FOperationModeToggler.h;h=77f93820d77fbecc63ba327b6f7763872b04e852;hb=c084f87d1751151c7f9e913776796a40c5cd5cb9;hp=0b222663ee36c514fc7d0d4be13fdd736a763efc;hpb=deb6aee06a80416a24a64c2ac6349a2341acdc39;p=qtmeetings diff --git a/src/IO/DeviceControl/OperationModeToggler.h b/src/IO/DeviceControl/OperationModeToggler.h index 0b22266..77f9382 100644 --- a/src/IO/DeviceControl/OperationModeToggler.h +++ b/src/IO/DeviceControl/OperationModeToggler.h @@ -49,13 +49,13 @@ public: 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 @@ -70,6 +70,14 @@ signals: * \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;