• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • 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 as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 
00022 #ifndef KDELIBS_KTEXTEDITOR_PLUGIN_H
00023 #define KDELIBS_KTEXTEDITOR_PLUGIN_H
00024 
00025 #include <QtCore/QObject>
00026 
00027 #include <ktexteditor/ktexteditor_export.h>
00028 #include <kservice.h>
00029 
00030 class KConfig;
00031 
00032 namespace KTextEditor
00033 {
00034 
00035 class Document;
00036 class View;
00037 
00107 class KTEXTEDITOR_EXPORT Plugin : public QObject
00108 {
00109   Q_OBJECT
00110 
00111   public:
00118     Plugin ( QObject *parent );
00119 
00123     virtual ~Plugin ();
00124 
00125   /*
00126    * Following methodes allow the plugin to react on view and document
00127    * creation.
00128    */
00129   public:
00141     virtual void addDocument (Document *document) { Q_UNUSED(document); }
00142 
00154     virtual void removeDocument (Document *document) { Q_UNUSED(document); }
00155 
00175     virtual void addView (View *view) { Q_UNUSED(view); }
00176 
00187     virtual void removeView (View *view) { Q_UNUSED(view); }
00188 
00189   private:
00190     class PluginPrivate* const d;
00191 };
00192 
00205 #ifndef KDE_NO_DEPRECATED
00206 KTEXTEDITOR_EXPORT_DEPRECATED Plugin *createPlugin ( KService::Ptr service, QObject *parent );
00207 #endif
00208 
00209 }
00210 
00211 #endif
00212 
00213 // 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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