diff options
author | RJ Ryan <rryan@mixxx.org> | 2013-11-30 13:58:02 -0500 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2013-11-30 13:58:02 -0500 |
commit | 89af205cc5cb1a9a2d17ff9509e229353c251b51 (patch) | |
tree | 8946e4351246f73fb9a80ac011aee3b76382b752 /src/effects/effectchain.h | |
parent | 91089327ee7db48594efe74186edb073cb759bea (diff) |
Add enabled/enabledForGroup tracking to EffectChain.
Diffstat (limited to 'src/effects/effectchain.h')
-rw-r--r-- | src/effects/effectchain.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/effects/effectchain.h b/src/effects/effectchain.h index b4c64e59f6..6b74736e2f 100644 --- a/src/effects/effectchain.h +++ b/src/effects/effectchain.h @@ -26,6 +26,17 @@ class EffectChain : public QObject { // with the preset from which it was loaded. QString id() const; + // Whether the chain is enabled (loaded to a slot and eligible for + // processing). + bool enabled() const; + void setEnabled(bool enabled); + + // Activates EffectChain processing for the provided group. + void enableForGroup(const QString& group); + bool enabledForGroup(const QString& group) const; + void disableForGroup(const QString& group); + + // Get the human-readable name of the EffectChain QString name() const; void setName(const QString& name); @@ -59,6 +70,7 @@ class EffectChain : public QObject { double m_dMix; double m_dParameter; + QSet<QString> m_enabledGroups; QList<EffectPointer> m_effects; EngineEffectChain* m_pEngineEffectChain; |