plugin.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef KORG_PLUGIN_H
00022
#define KORG_PLUGIN_H
00023
00024
#include <klocale.h>
00025
#include <klibloader.h>
00026
00027
namespace KOrg {
00028
00029
class Plugin
00030 {
00031
public:
00032
static int interfaceVersion() {
return -1; }
00033
static QString serviceType() {
return "Calendar/Plugin"; }
00034
00035 Plugin() {}
00036
virtual ~Plugin() {}
00037
00038
virtual QString info() = 0;
00039
00040
virtual void configure(
QWidget * ) {}
00041 };
00042
00043
class PluginFactory :
public KLibFactory
00044 {
00045
public:
00046
virtual Plugin *create() = 0;
00047
00048
protected:
00049
virtual QObject *createObject(
QObject *,
const char *,
const char *,
00050
const QStringList & )
00051 {
00052
return 0;
00053 }
00054 };
00055
00056 }
00057
00058
#endif
This file is part of the documentation for korganizer Library Version 3.3.0.