File indexing completed on 2024-05-12 03:59:50
0001 /* 0002 This file is part of the KDE project 0003 0004 SPDX-FileCopyrightText: 2010-2012 Martin Sandsmark <martin.sandsmark@kde.org> 0005 SPDX-FileCopyrightText: 2018 Olivier Churlaud <olivier@churlaud.com> 0006 0007 SPDX-License-Identifier: LGPL-3.0-or-later 0008 */ 0009 0010 #ifndef DIALOG_H 0011 #define DIALOG_H 0012 0013 #include <QDialog> 0014 #include <QLabel> 0015 #include <QLineEdit> 0016 0017 namespace KWallet 0018 { 0019 class Wallet; 0020 } 0021 0022 class Dialog : public QDialog 0023 { 0024 Q_OBJECT 0025 public: 0026 Dialog(QWidget *parent = nullptr); 0027 0028 private Q_SLOTS: 0029 void doSave(); 0030 void walletOpened(bool ok); 0031 0032 private: 0033 KWallet::Wallet *m_wallet; 0034 QLineEdit *m_keyInput; 0035 QLineEdit *m_valueInput; 0036 QLabel *m_statusLabel; 0037 QPushButton *m_launchButton; 0038 }; 0039 0040 #endif // DIALOG_H