File indexing completed on 2024-05-19 05:55:47
0001 /* 0002 SPDX-FileCopyrightText: 2003 George Staikos <staikos@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KWALLETPOPUP_H 0008 #define KWALLETPOPUP_H 0009 0010 #include <QMenu> 0011 0012 0013 class KWalletPopup : public QMenu 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 explicit KWalletPopup(const QString &wallet, QWidget *parent = nullptr, const QString &name = QString()); 0019 ~KWalletPopup() override; 0020 0021 public Q_SLOTS: 0022 void openWallet(); 0023 void deleteWallet(); 0024 void closeWallet(); 0025 void createWallet(); 0026 void changeWalletPassword(); 0027 void disconnectApp(); 0028 0029 Q_SIGNALS: 0030 void walletOpened(const QString &walletName); 0031 void walletClosed(const QString &walletName); 0032 void walletDeleted(const QString &walletName); 0033 void walletCreated(); 0034 void walletChangePassword(const QString &walletName); 0035 0036 private: 0037 const QString _walletName; 0038 }; 0039 0040 #endif