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
00106 class KTEXTEDITOR_EXPORT Plugin : public QObject
00107 {
00108 Q_OBJECT
00109
00110 public:
00117 Plugin ( QObject *parent );
00118
00122 virtual ~Plugin ();
00123
00124
00125
00126
00127
00128 public:
00140 virtual void addDocument (Document *document) { Q_UNUSED(document); }
00141
00153 virtual void removeDocument (Document *document) { Q_UNUSED(document); }
00154
00174 virtual void addView (View *view) { Q_UNUSED(view); }
00175
00186 virtual void removeView (View *view) { Q_UNUSED(view); }
00187
00188 private:
00189 class PluginPrivate* const d;
00190 };
00191
00204 KTEXTEDITOR_EXPORT Plugin *createPlugin ( KService::Ptr service, QObject *parent );
00205
00206 }
00207
00208 #endif
00209
00210