From 00bb99ac80741fc50ef8a289719373032f2391eb Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksayit/Freeverb_plugin/ksayitfreeverblib.h | 96 ++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 ksayit/Freeverb_plugin/ksayitfreeverblib.h (limited to 'ksayit/Freeverb_plugin/ksayitfreeverblib.h') diff --git a/ksayit/Freeverb_plugin/ksayitfreeverblib.h b/ksayit/Freeverb_plugin/ksayitfreeverblib.h new file mode 100644 index 0000000..50bfa62 --- /dev/null +++ b/ksayit/Freeverb_plugin/ksayitfreeverblib.h @@ -0,0 +1,96 @@ +// +// C++ Interface: ksayitfreeverblib +// +// Description: +// +// +// Author: Robert Vogl , (C) 2004 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef KSAYITFREEVERBLIB_H +#define KSAYITFREEVERBLIB_H + +// QT includes +#include +#include + +// KDE includes +#include +#include +#include +#include + +#include "ksayit_fxplugin.h" + +class FreeverbPluginFactory : public KLibFactory +{ +Q_OBJECT +public: + // Consturctor + FreeverbPluginFactory(QObject *parent=0, const char* name=0); + + // Destructor + virtual ~FreeverbPluginFactory(){ delete p_instance; }; + + QObject* createObject(QObject *parent=0, const char* name=0, + const char* className="QObject", + const QStringList &args=QStringList()); + +private: + static KInstance* p_instance; + +}; + + + + + +class FreeverbPlugin : public FXPlugin +{ +Q_OBJECT +public: + // Constructor + FreeverbPlugin(QObject *parent=0, const char* name=0); //, KApplication *Appl=0); + + // Destructor + ~FreeverbPlugin(); + + /** sets the Main application object + */ + void setApplication(KApplication *Appl); + + /** returns the Name of the Plugin + */ + QString getName_KS() const; + + /** returns a description of the plugin + */ + QString getDescription_KS() const; + + /** shows the GUI to configure the plugin + */ + bool showGUI_KS(); + + /** activate the effect + */ + long activate_KS(KArtsServer *server, + StereoEffectStack *fx_stack) const; + + /** deactivates the effect + */ + bool deactivate_KS(StereoEffectStack *fx_stack, + long EffectID ) const; + + +private: + KApplication *m_Appl; + KSimpleConfig *m_config; + +}; + + + +#endif + -- cgit v1.2.3