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