Akonadi

agentpluginloader.h
1 /*
2  SPDX-FileCopyrightText: 2010 Bertjan Broeksema <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #pragma once
7 
8 #include <QHash>
9 class QPluginLoader;
10 
11 class AgentPluginLoader
12 {
13 public:
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  Q_REQUIRED_RESULT QPluginLoader *load(const QString &pluginName);
29 
30 private:
31  Q_DISABLE_COPY(AgentPluginLoader)
32  QHash<QString, QPluginLoader *> m_pluginLoaders;
33 };
34 
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:00:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.