KWallet

kwalletwizard.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2004 George Staikos <staikos@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#ifndef KWALLETWIZARD_H
9#define KWALLETWIZARD_H
10
11#include <QWizard>
12#ifdef HAVE_GPGMEPP
13#include <gpgme++/key.h>
14#endif
15
16class PageGpgKey;
17class PagePassword;
18class PageIntro;
19
20class KWalletWizard : public QWizard
21{
23public:
24 enum WizardType {
25 Basic,
26 Advanced
27 };
28
29 static const int PageIntroId = 0;
30 static const int PagePasswordId = 1;
31#ifdef HAVE_GPGMEPP
32 static const int PageGpgKeyId = 2;
33#endif
34 static const int PageOptionsId = 3;
35 static const int PageExplanationId = 4;
36
37 explicit KWalletWizard(QWidget *parent = nullptr);
38
39 WizardType wizardType() const;
40
41#ifdef HAVE_GPGMEPP
42 GpgME::Key gpgKey() const;
43#endif // HAVE_GPGMEPP
44
45protected:
46 void initializePage(int id) override;
47
48protected Q_SLOTS:
49 friend class PagePassword;
50 void passwordPageUpdate();
51
52private:
53 PageIntro *m_pageIntro;
54 PagePassword *m_pagePasswd;
55#ifdef HAVE_GPGMEPP
56 PageGpgKey *m_pageGpgKey;
57#endif
58};
59
60#endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 25 2025 11:53:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.