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
XMILanguagesAttributes
QStringList XMILanguagesAttributes()
Definition: shared.cpp:42
Umbrello::Configurable::loadPlugins
bool loadPlugins(KConfig *config, const QString &group, const QString &key)
Definition: configurable.cpp:47
POMap
QMap< QString, POEntry > POMap
Definition: shared.h:30
toGetTextString
QString toGetTextString(const QString &message)
Definition: shared.cpp:126
plugin.h
Umbrello
Definition: configurable.h:36
Umbrello::Plugin::unload
void unload()
Definition: plugin.cpp:53
Umbrello::Configurable::configure
virtual bool configure()=0
Umbrello::Configurable::_plugins
PluginList _plugins
List of loaded plugins.
Definition: configurable.h:113
Umbrello::Configurable::unloadPlugins
bool unloadPlugins()
Definition: configurable.cpp:73
Umbrello::Plugin
Definition: plugin.h:90
Umbrello::Configurable::PluginList
QList< Plugin * > PluginList
Definition: configurable.h:111
main
int main(int argc, char **argv)
Definition: xmi2pot.cpp:28
Umbrello::Configurable::Configurable
Configurable()
Definition: configurable.cpp:36
Umbrello::PluginLoader::loadPlugin
Plugin * loadPlugin(const QString &name)
Definition: pluginloader.cpp:56
outputMsg
void outputMsg(const char *prefix, const QString &message)
configurable.h
pluginloader.h
extractAttributesFromXMI
bool extractAttributesFromXMI(const char *fileName, const QStringList &attributes, POMap &result)
Definition: shared.cpp:59
Umbrello::Configurable::~Configurable
virtual ~Configurable()
Definition: configurable.cpp:41
Umbrello::Configurable
Definition: configurable.h:65
shared.h
Umbrello::PluginLoader::instance
static PluginLoader * instance()
Definition: pluginloader.cpp:49