diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /akregator/src/plugin.h | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
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/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/plugin.h')
-rw-r--r-- | akregator/src/plugin.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/akregator/src/plugin.h b/akregator/src/plugin.h new file mode 100644 index 000000000..ed10bf200 --- /dev/null +++ b/akregator/src/plugin.h @@ -0,0 +1,51 @@ +// Author: Mark Kretschmann (C) Copyright 2004 +// Copyright: See COPYING file that comes with this distribution + +#ifndef AKREGATOR_PLUGIN_H +#define AKREGATOR_PLUGIN_H + +#include "akregator_export.h" + +#define AKREGATOR_EXPORT_PLUGIN( classname ) \ + extern "C" { \ + Akregator::Plugin* create_plugin() { return new classname; } \ + } + +#include <qmap.h> +#include <qstring.h> + + +namespace Akregator +{ +// class PluginConfig; + + class AKREGATOR_EXPORT Plugin + { + public: + virtual ~Plugin(); + + virtual bool init() = 0; + /** + * TODO @param parent you must parent the widget to parent + * @return the configure widget for your plugin, create it on the heap! + */ + //TODO rename configureWidget( QWidget *parent ) + // virtual PluginConfig* configure() const { return 0; } + + void addPluginProperty( const QString& key, const QString& value ); + QString pluginProperty( const QString& key ); + bool hasPluginProperty( const QString& key ); + + protected: + Plugin(); + + private: + QMap<QString, QString> m_properties; + }; + +} //namespace Akregator + + +#endif /* AKREGATOR_PLUGIN_H */ + + |