Pimcommon

pluginutil.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pimcommon_export.h"
10
11#include <KPluginMetaData>
12#include <QPair>
13#include <QString>
14#include <QStringList>
15
16namespace PimCommon
17{
18/**
19 * @brief The PluginUtilData class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class PIMCOMMON_EXPORT PluginUtilData
23{
24public:
25 PluginUtilData() = default;
26
27 QStringList mExtraInfo;
28 QString mDescription;
29 QString mIdentifier;
30 QString mName;
31 bool mEnableByDefault = false;
32 bool mHasConfigureDialog = false;
33};
34
35namespace PluginUtil
36{
37[[nodiscard]] PIMCOMMON_EXPORT bool
38isPluginActivated(const QStringList &enabledPluginsList, const QStringList &disabledPluginsList, bool isEnabledByDefault, const QString &pluginId);
39[[nodiscard]] PIMCOMMON_EXPORT QPair<QStringList, QStringList> loadPluginSetting(const QString &groupName, const QString &prefixSettingKey);
40PIMCOMMON_EXPORT void
41savePluginSettings(const QString &groupName, const QString &prefixSettingKey, const QStringList &enabledPluginsList, const QStringList &disabledPluginsList);
42[[nodiscard]] PIMCOMMON_EXPORT PimCommon::PluginUtilData createPluginMetaData(const KPluginMetaData &metaData);
43}
44}
The PluginUtilData class.
Definition pluginutil.h:23
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.