SVN_SILENT made messages (.desktop file)
[kdeaccessibility.git] / ksayit / src / effectstack.cpp
blobb8d4d44c48d7da5394fd6626bd0aa7f2ace2c9bd
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
14 #include <QStringList>
16 // KDE includes
17 #include <kdebug.h>
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),
27 m_config(config)
32 EffectStack::~EffectStack()
36 bool EffectStack::loadEffects()
38 kDebug(100200) << "EffectStack::loadEffects()" << endl;
40 QStringList c_active;
41 QStringList::Iterator fx_it;
43 // create filterstack
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);
53 return true;
57 bool EffectStack::unloadEffects()
59 kDebug(100200) << "EffectStack::unloadEffects()" << endl;
60 // remove all effects
61 m_pluginhandler->deactivateEffects(&FX_Stack);
63 return true;