refs #314, new propertyBy methods (nested indexes)

This commit is contained in:
Klaus Basan
2014-08-15 18:17:15 +02:00
parent d797d76a60
commit e109d73ba2
54 changed files with 1016 additions and 754 deletions

View File

@@ -13,6 +13,7 @@
#define BLACKMISC_AVIOMODULATORUNIT_H
#include <QDBusMetaType>
#include "blackmisc/propertyindex.h"
#include "blackmisc/aviobase.h"
#include "blackmisc/mathematics.h"
@@ -30,6 +31,17 @@ namespace BlackMisc
{
public:
//! Column indexes
enum ColumnIndex
{
IndexActiveFrequency = BlackMisc::CPropertyIndex::GlobalIndexCModulator,
IndexStandbyFrequency,
IndexOutputVolume,
IndexInputVolume,
IndexEnabled
};
//! Virtual destructor
virtual ~CModulator() {}
@@ -90,6 +102,12 @@ namespace BlackMisc
//! \copydoc CValueObject::fromJson
virtual void fromJson(const QJsonObject &json) override;
//! \copydoc CValueObject::propertyByIndex
virtual QVariant propertyByIndex(const BlackMisc::CPropertyIndex &index) const override;
//! \copydoc CValueObject::setPropertyByIndex(variant, index)
virtual void setPropertyByIndex(const QVariant &variant, const BlackMisc::CPropertyIndex &index) override;
//! Register metadata
static void registerMetadata();