umbrello  2.35.1
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  SPDX-FileCopyrightText: 2003 Andrew Sutton <ansutton@kent.edu>
3  SPDX-License-Identifier: GPL-2.0-or-later
4  Bugs and comments to umbrello-devel@kde.org or https://bugs.kde.org
5 */
6 
7 #ifndef UMBRELLO_CONFIGURABLE_H
8 #define UMBRELLO_CONFIGURABLE_H
9 
10 #include <QList>
11 
12 // forward declarations
13 class KConfig;
14 
23 namespace Umbrello
24 {
25 // forward declarations
26 class Plugin;
27 
53 {
54 public:
55 
57  Configurable();
58 
63  virtual ~Configurable();
64 
72  virtual bool configure() = 0;
73 
74 protected:
87  bool loadPlugins(KConfig *config, const QString &group, const QString &key);
88 
96  bool unloadPlugins();
97 
98 private:
99  typedef QList<Plugin*> PluginList;
100 
102 };
103 }
104 
105 #endif
XMILanguagesAttributes
QStringList XMILanguagesAttributes()
Definition: shared.cpp:35
Umbrello::Configurable::loadPlugins
bool loadPlugins(KConfig *config, const QString &group, const QString &key)
Definition: configurable.cpp:35
POMap
QMap< QString, POEntry > POMap
Definition: shared.h:23
toGetTextString
QString toGetTextString(const QString &message)
Definition: shared.cpp:119
plugin.h
Umbrello
Definition: configurable.h:23
Umbrello::Plugin::unload
void unload()
Definition: plugin.cpp:41
Umbrello::Configurable::configure
virtual bool configure()=0
Umbrello::Configurable::_plugins
PluginList _plugins
List of loaded plugins.
Definition: configurable.h:101
Umbrello::Configurable::unloadPlugins
bool unloadPlugins()
Definition: configurable.cpp:61
it
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
Umbrello::Plugin
Definition: plugin.h:74
names
alter the names
Definition: GPL-2.0-only.txt:308
Umbrello::Configurable::PluginList
QList< Plugin * > PluginList
Definition: configurable.h:99
main
int main(int argc, char **argv)
Definition: xmi2pot.cpp:21
Umbrello::Configurable::Configurable
Configurable()
Definition: configurable.cpp:24
Umbrello::PluginLoader::loadPlugin
Plugin * loadPlugin(const QString &name)
Definition: pluginloader.cpp:46
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:52
Umbrello::Configurable::~Configurable
virtual ~Configurable()
Definition: configurable.cpp:29
Umbrello::Configurable
Definition: configurable.h:52
shared.h
Umbrello::PluginLoader::instance
static PluginLoader * instance()
Definition: pluginloader.cpp:39