2 // C++ Implementation: effectstack
7 // Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
18 // App specific includes
19 #include "effectstack.h"
20 #include "fxpluginhandler.h"
22 EffectStack::EffectStack(FXPluginHandler
*pluginhandler
, KConfig
*config
)
24 dispatcher(), server(),
25 m_pluginhandler(pluginhandler
),
31 EffectStack::~EffectStack()
35 bool EffectStack::loadEffects()
37 kDebug(100200) << "EffectStack::loadEffects()" << endl
;
40 QStringList::Iterator fx_it
;
43 FX_Stack
= server
.server().outstack();
45 m_config
->setGroup("Effect Stack Configuration");
46 c_active
= m_config
->readEntry("Activated",QStringList());
47 for(fx_it
=c_active
.begin(); fx_it
!=c_active
.end(); ++fx_it
){
49 m_pluginhandler
->activateEffect(*fx_it
, &server
, &FX_Stack
);
56 bool EffectStack::unloadEffects()
58 kDebug(100200) << "EffectStack::unloadEffects()" << endl
;
60 m_pluginhandler
->deactivateEffects(&FX_Stack
);