2 // C++ Implementation: effectstack
7 // Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
14 #include <QStringList>
19 // App specific includes
20 #include "effectstack.h"
21 #include "fxpluginhandler.h"
23 EffectStack::EffectStack(FXPluginHandler
*pluginhandler
, KConfig
*config
)
25 dispatcher(), server(),
26 m_pluginhandler(pluginhandler
),
32 EffectStack::~EffectStack()
36 bool EffectStack::loadEffects()
38 kDebug(100200) << "EffectStack::loadEffects()" << endl
;
41 QStringList::Iterator fx_it
;
44 FX_Stack
= server
.server().outstack();
46 m_config
->setGroup("Effect Stack Configuration");
47 c_active
= m_config
->readEntry("Activated",QStringList());
48 for(fx_it
=c_active
.begin(); fx_it
!=c_active
.end(); ++fx_it
){
50 m_pluginhandler
->activateEffect(*fx_it
, &server
, &FX_Stack
);
57 bool EffectStack::unloadEffects()
59 kDebug(100200) << "EffectStack::unloadEffects()" << endl
;
61 m_pluginhandler
->deactivateEffects(&FX_Stack
);