• Skip to content
  • Skip to link menu
KDE 4.1 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 
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    * Following methodes allow the plugin to react on view and document
00126    * creation.
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 // 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
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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