• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KTextEditor

plugin.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
00003    Copyright (C) 2005 Dominik Haumann (dhdev@gmx.de) (documentation)
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
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    * Following methodes allow the plugin to react on view and document
00125    * creation.
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 // kate: space-indent on; indent-width 2; replace-tabs on;

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal