umbrello: umbrello/_unused/configurable.h Source File

umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

configurable.h
Go to the documentation of this file.
1 /***************************************************************************
2 configurable.h
3 -------------------
4 begin : Mon Jan 13 2003
5 copyright : (C) 2003 by Andrew Sutton
6 email : ansutton@kent.edu
7 Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org
8 ***************************************************************************/
9
10 /***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19 #ifndef UMBRELLO_CONFIGURABLE_H
20 #define UMBRELLO_CONFIGURABLE_H
21
22 #include <QList>
23
24 // forward declarations
25 class KConfig;
26
35 namespace Umbrello
36 {
37 // forward declarations
38 class Plugin;
39
64 class Configurable
65 {
66 public:
67
69 Configurable();
70
75 virtual ~Configurable();
76
84 virtual bool configure() = 0;
85
86 protected:
99 bool loadPlugins(KConfig *config, const QString &group, const QString &key);
100
108 bool unloadPlugins();
109
110 private:
111 typedef QList<Plugin*> PluginList;
112
113 PluginList _plugins;
114 };
115 }
116
117 #endif
Umbrello::Configurable
Definition: configurable.h:65
Umbrello::Configurable::Configurable
Configurable()
Definition: configurable.cpp:36
Umbrello::Configurable::unloadPlugins
bool unloadPlugins()
Definition: configurable.cpp:73
Umbrello::Configurable::loadPlugins
bool loadPlugins(KConfig *config, const QString &group, const QString &key)
Definition: configurable.cpp:47
Umbrello::Configurable::configure
virtual bool configure()=0
Umbrello::Configurable::_plugins
PluginList _plugins
List of loaded plugins.
Definition: configurable.h:113
Umbrello::Configurable::~Configurable
virtual ~Configurable()
Definition: configurable.cpp:41
Umbrello::Configurable::PluginList
QList< Plugin * > PluginList
Definition: configurable.h:111
Umbrello::Plugin
Definition: plugin.h:90
Umbrello
Definition: configurable.h:36