umbrello: umbrello/_unused/configurable.h Source File

umbrello 2.32.2 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
13class KConfig;
14
23 namespace Umbrello
24{
25// forward declarations
26class Plugin;
27
52 class Configurable
53{
54public:
55
57 Configurable();
58
63 virtual ~Configurable();
64
72 virtual bool configure() = 0;
73
74protected:
87 bool loadPlugins(KConfig *config, const QString &group, const QString &key);
88
96 bool unloadPlugins();
97
98private:
99 typedef QList<Plugin*> PluginList;
100
101 PluginList _plugins;
102};
103}
104
105#endif
Umbrello::Configurable
Definition: configurable.h:53
Umbrello::Configurable::Configurable
Configurable()
Definition: configurable.cpp:24
Umbrello::Configurable::unloadPlugins
bool unloadPlugins()
Definition: configurable.cpp:61
Umbrello::Configurable::loadPlugins
bool loadPlugins(KConfig *config, const QString &group, const QString &key)
Definition: configurable.cpp:35
Umbrello::Configurable::configure
virtual bool configure()=0
Umbrello::Configurable::_plugins
PluginList _plugins
List of loaded plugins.
Definition: configurable.h:101
Umbrello::Configurable::~Configurable
virtual ~Configurable()
Definition: configurable.cpp:29
Umbrello::Configurable::PluginList
QList< Plugin * > PluginList
Definition: configurable.h:99
Umbrello::Plugin
Definition: plugin.h:77
Umbrello
Definition: configurable.h:24