• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • app
katepluginmanager.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
4 Copyright (C) 2001 Anders Lund <anders.lund@lund.tdcadsl.dk>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __KATE_PLUGINMANAGER_H__
22#define __KATE_PLUGINMANAGER_H__
23
24#include "katemain.h"
25
26#include "../interfaces/plugin.h"
27#include "../interfaces/pluginmanager.h"
28
29#include <ktrader.h>
30
31#include <tqobject.h>
32#include <tqvaluelist.h>
33
34class KatePluginInfo
35{
36 public:
37 bool load;
38 KService::Ptr service;
39 Kate::Plugin *plugin;
40};
41
42typedef TQValueList<KatePluginInfo> KatePluginList;
43
44class KatePluginManager : public TQObject
45{
46 TQ_OBJECT
47
48 public:
49 KatePluginManager(TQObject *parent);
50 ~KatePluginManager();
51
52 static KatePluginManager *self();
53
54 Kate::PluginManager *pluginManager () const { return m_pluginManager; };
55
56 void loadAllEnabledPlugins ();
57 void unloadAllPlugins ();
58
59 void enableAllPluginsGUI (KateMainWindow *win);
60 void disableAllPluginsGUI (KateMainWindow *win);
61
62 void loadConfig ();
63 void writeConfig ();
64
65 void loadPlugin (KatePluginInfo *item);
66 void unloadPlugin (KatePluginInfo *item);
67
68 void enablePluginGUI (KatePluginInfo *item, KateMainWindow *win);
69 void enablePluginGUI (KatePluginInfo *item);
70
71 void disablePluginGUI (KatePluginInfo *item, KateMainWindow *win);
72 void disablePluginGUI (KatePluginInfo *item);
73
74 inline KatePluginList & pluginList () { return m_pluginList; };
75
76 Kate::Plugin *plugin (const TQString &name);
77 bool pluginAvailable (const TQString &name);
78
79 Kate::Plugin *loadPlugin (const TQString &name, bool permanent=true);
80 void unloadPlugin (const TQString &name, bool permanent=true);
81
82 private:
83 Kate::PluginManager *m_pluginManager;
84
85 void setupPluginList ();
86
87 KatePluginList m_pluginList;
88};
89
90#endif
Kate::PluginManager
This interface provides access to the Kate Plugin Manager.
Definition: pluginmanager.h:31

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.