Fix include
[kdeaccessibility.git] / ksayit / src / effectstack.cpp
blob0b5c9462d236b160ac21ea2bb9d7dbeed1e284a3
1 //
2 // C++ Implementation: effectstack
3 //
4 // Description:
5 //
6 //
7 // Author: Robert Vogl <voglrobe@lapislazuli>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
13 // Qt includes
15 // KDE includes
16 #include <kdebug.h>
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),
26 m_config(config)
31 EffectStack::~EffectStack()
35 bool EffectStack::loadEffects()
37 kDebug(100200) << "EffectStack::loadEffects()" << endl;
39 QStringList c_active;
40 QStringList::Iterator fx_it;
42 // create filterstack
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);
52 return true;
56 bool EffectStack::unloadEffects()
58 kDebug(100200) << "EffectStack::unloadEffects()" << endl;
59 // remove all effects
60 m_pluginhandler->deactivateEffects(&FX_Stack);
62 return true;