KTextEditor
plugin.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KDELIBS_KTEXTEDITOR_PLUGIN_H
00021 #define KDELIBS_KTEXTEDITOR_PLUGIN_H
00022
00023 #include <QtCore/QObject>
00024
00025 #include <ktexteditor/ktexteditor_export.h>
00026 #include <kservice.h>
00027
00028 class KConfig;
00029
00030 namespace KTextEditor
00031 {
00032
00033 class Document;
00034 class View;
00035
00105 class KTEXTEDITOR_EXPORT Plugin : public QObject
00106 {
00107 Q_OBJECT
00108
00109 public:
00116 Plugin ( QObject *parent );
00117
00121 virtual ~Plugin ();
00122
00123
00124
00125
00126
00127 public:
00139 virtual void addDocument (Document *document) { Q_UNUSED(document); }
00140
00152 virtual void removeDocument (Document *document) { Q_UNUSED(document); }
00153
00173 virtual void addView (View *view) { Q_UNUSED(view); }
00174
00185 virtual void removeView (View *view) { Q_UNUSED(view); }
00186
00187 private:
00188 class PluginPrivate* const d;
00189 };
00190
00203 KTEXTEDITOR_EXPORT Plugin *createPlugin ( KService::Ptr service, QObject *parent );
00204
00205 }
00206
00207 #endif
00208
00209