File indexing completed on 2024-05-19 05:55:46

0001 /*
0002     SPDX-FileCopyrightText: 2013 Valentin Rusu <kde@rusu.info>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef DISCONNECTAPPBUTTON_H
0008 #define DISCONNECTAPPBUTTON_H
0009 
0010 #include <QPushButton>
0011 
0012 namespace KWallet
0013 {
0014 class Wallet;
0015 }
0016 
0017 class DisconnectAppButton : public QPushButton
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit DisconnectAppButton(const QString &appName, KWallet::Wallet *wallet);
0022 
0023 Q_SIGNALS:
0024     void appDisconnected(const QString &);
0025 
0026 private Q_SLOTS:
0027     void onClicked();
0028 
0029 private:
0030     QString             _appName;
0031     KWallet::Wallet     *const _wallet;
0032 };
0033 
0034 #endif // DISCONNECTAPPBUTTON_H