Libkleo

cryptoconfigmodule.h
1/*
2 cryptoconfigmodule.h
3
4 This file is part of libkleopatra
5 SPDX-FileCopyrightText: 2004, 2005 Klarälvdalens Datakonsult AB
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "kleo_export.h"
13
14#include <QTabWidget>
15
16#include <QList>
17
18namespace QGpgME
19{
20class CryptoConfig;
21} // namespace QGpgME
22
23namespace Kleo
24{
25class CryptoConfigComponentGUI;
26
27/**
28 * Crypto Config Module widget, dynamically generated from CryptoConfig
29 * It's a simple QWidget so that it can be embedded into a dialog or into a KCModule.
30 */
31class KLEO_EXPORT CryptoConfigModule : public QTabWidget
32{
33 Q_OBJECT
34public:
35 explicit CryptoConfigModule(QGpgME::CryptoConfig *config, QWidget *parent = nullptr);
36
37 bool hasError() const;
38
39 void save();
40 void reset(); // i.e. reload current settings, discarding user input
41 void defaults();
42 void cancel();
43
44Q_SIGNALS:
45 void changed();
46
47private:
48 void init();
49 static QStringList sortComponentList(const QStringList &components);
50
51public:
52 static QStringList sortGroupList(const QString &moduleName, const QStringList &groups);
53
54private:
55 QGpgME::CryptoConfig *mConfig = nullptr;
57};
58
59}
Crypto Config Module widget, dynamically generated from CryptoConfig It's a simple QWidget so that it...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.