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 { Basic, Advanced };
25
26 static const int PageIntroId = 0;
27 static const int PagePasswordId = 1;
28#ifdef HAVE_GPGMEPP
29 static const int PageGpgKeyId = 2;
30#endif
31 static const int PageOptionsId = 3;
32 static const int PageExplanationId = 4;
33
34 explicit KWalletWizard(QWidget *parent = nullptr);
35
36 WizardType wizardType() const;
37
38#ifdef HAVE_GPGMEPP
39 GpgME::Key gpgKey() const;
40#endif // HAVE_GPGMEPP
41
42protected:
43 void initializePage(int id) override;
44
45protected Q_SLOTS:
46 friend class PagePassword;
47 void passwordPageUpdate();
48
49private:
50 PageIntro *m_pageIntro;
51 PagePassword *m_pagePasswd;
52#ifdef HAVE_GPGMEPP
53 PageGpgKey *m_pageGpgKey;
54#endif
55};
56
57#endif
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:05 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.