Akonadi

agentpluginloader.h
1/*
2 SPDX-FileCopyrightText: 2010 Bertjan Broeksema <broeksema@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include <QHash>
9class QPluginLoader;
10
11class AgentPluginLoader
12{
13public:
14 AgentPluginLoader();
15
16 /**
17 Deletes all instantiated QPluginLoaders.
18 */
19 ~AgentPluginLoader();
20
21 /**
22 Returns the loader for plugins with @p pluginName. Callers must not
23 take ownership over the returned loader. Loaders will be unloaded and deleted
24 when the AgentPluginLoader goes out of scope/gets deleted.
25
26 @return the plugin for @p pluginName or 0 if the plugin is not found.
27 */
28 [[nodiscard]] QPluginLoader *load(const QString &pluginName);
29
30private:
31 Q_DISABLE_COPY(AgentPluginLoader)
32 QHash<QString, QPluginLoader *> m_pluginLoaders;
33};
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.