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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

pluginloader.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*/
5
6#ifndef UMBRELLO_PLUGINLOADER_H
7#define UMBRELLO_PLUGINLOADER_H
8
9// Qt includes
10#include <Q3ValueList>
11#include <QMap>
12
13// forward declarations
14 class QString;
15
16 namespace Umbrello
17{
18// forward declarations
19 class Plugin;
20
53 class PluginLoader : public QObject
54{
55 Q_OBJECT
56 public:
57
59 ~PluginLoader();
60
61
63 typedef Q3ValueList<Plugin *> PluginList;
64
66 typedef QMap<QString, Plugin *> PluginMap;
67
69 typedef QMap<QString, PluginList> CategoryMap;
70
72 static PluginLoader *instance();
73
78 Plugin *loadPlugin(const QString &name);
79
81 Plugin *findPlugin(const QString &name);
82
89 void unloadPlugin(const QString &name);
90
96 const PluginMap &plugins() const;
97
99 const CategoryMap &categories() const;
100
101 private Q_SLOTS:
107 void slotDestroyed(QObject *obj);
108
109 private:
111 PluginLoader();
112
113 static PluginLoader *_instance;
114 PluginMap _plugins;
115 CategoryMap _categories;
116};
117}
118
119#endif
Umbrello::Plugin
Definition: plugin.h:77
Umbrello::PluginLoader
Definition: pluginloader.h:54
Umbrello::PluginLoader::PluginLoader
PluginLoader()
Definition: pluginloader.cpp:24
Umbrello::PluginLoader::CategoryMap
QMap< QString, PluginList > CategoryMap
Definition: pluginloader.h:69
Umbrello::PluginLoader::PluginMap
QMap< QString, Plugin * > PluginMap
Definition: pluginloader.h:66
Umbrello::PluginLoader::~PluginLoader
~PluginLoader()
Definition: pluginloader.cpp:34
Umbrello::PluginLoader::unloadPlugin
void unloadPlugin(const QString &name)
Definition: pluginloader.cpp:127
Umbrello::PluginLoader::_plugins
PluginMap _plugins
The plugin mapping.
Definition: pluginloader.h:114
Umbrello::PluginLoader::findPlugin
Plugin * findPlugin(const QString &name)
Definition: pluginloader.cpp:118
Umbrello::PluginLoader::_categories
CategoryMap _categories
Categories of plugins.
Definition: pluginloader.h:115
Umbrello::PluginLoader::plugins
const PluginMap & plugins() const
Definition: pluginloader.cpp:133
Umbrello::PluginLoader::_instance
static PluginLoader * _instance
Singleton instance.
Definition: pluginloader.h:113
Umbrello::PluginLoader::loadPlugin
Plugin * loadPlugin(const QString &name)
Definition: pluginloader.cpp:46
Umbrello::PluginLoader::PluginList
Q3ValueList< Plugin * > PluginList
Definition: pluginloader.h:63
Umbrello::PluginLoader::categories
const CategoryMap & categories() const
Definition: pluginloader.cpp:139
Umbrello::PluginLoader::instance
static PluginLoader * instance()
Definition: pluginloader.cpp:39
Umbrello::PluginLoader::slotDestroyed
void slotDestroyed(QObject *obj)
Definition: pluginloader.cpp:145
Umbrello
Definition: configurable.h:24