refs #91 & #124 using override and \copydoc throughout blackmisc

This commit is contained in:
Mathew Sutcliffe
2014-02-16 23:52:42 +00:00
parent 3c8d4819e9
commit 35e0c3e085
49 changed files with 405 additions and 689 deletions

View File

@@ -53,10 +53,9 @@ namespace BlackMisc
{}
/*!
* \brief Virtual method to return QVariant, used with DBUS QVariant lists
* \return
* \copydoc CValueObject::toQVariant
*/
virtual QVariant toQVariant() const
virtual QVariant toQVariant() const override
{
return QVariant::fromValue(*this);
}
@@ -147,9 +146,9 @@ namespace BlackMisc
bool isEmpty() const { return this->m_message.isEmpty(); }
/*!
* \brief Value hash
* \copydoc CValueObject::getValueHash
*/
virtual uint getValueHash() const;
virtual uint getValueHash() const override;
/*!
* \brief Register metadata
@@ -158,38 +157,34 @@ namespace BlackMisc
protected:
/*!
* \brief Rounded value as string
* \param i18n
* \return
* \copydoc CValueObject::convertToQString
*/
virtual QString convertToQString(bool i18n = false) const;
virtual QString convertToQString(bool i18n = false) const override;
/*!
* \copydoc CValueObject::getMetaTypeId
*/
virtual int getMetaTypeId() const;
virtual int getMetaTypeId() const override;
/*!
* \copydoc CValueObject::isA
*/
virtual bool isA(int metaTypeId) const;
virtual bool isA(int metaTypeId) const override;
/*!
* \copydoc CValueObject::compareImpl
*/
virtual int compareImpl(const CValueObject &other) const;
virtual int compareImpl(const CValueObject &other) const override;
/*!
* \brief Stream to DBus <<
* \param argument
* \copydoc CValueObject::marshallToDbus
*/
virtual void marshallToDbus(QDBusArgument &argument) const;
virtual void marshallToDbus(QDBusArgument &argument) const override;
/*!
* \brief Stream from DBus >>
* \param argument
* \copydoc CValueObject::unmarshallFromDbus
*/
virtual void unmarshallFromDbus(const QDBusArgument &argument);
virtual void unmarshallFromDbus(const QDBusArgument &argument) override;
private:
InformationType m_type;