umbrello  2.32.0
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 
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 
114 };
115 }
116 
117 #endif
Definition: configurable.h:65
Configurable()
Definition: configurable.cpp:36
bool unloadPlugins()
Definition: configurable.cpp:73
bool loadPlugins(KConfig *config, const QString &group, const QString &key)
Definition: configurable.cpp:47
virtual bool configure()=0
PluginList _plugins
List of loaded plugins.
Definition: configurable.h:113
virtual ~Configurable()
Definition: configurable.cpp:41
QList< Plugin * > PluginList
Definition: configurable.h:111
Definition: plugin.h:90
Definition: configurable.h:36