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 AUTHORIZEDAPPMODEL_H 0008 #define AUTHORIZEDAPPMODEL_H 0009 0010 #include <QStandardItemModel> 0011 #include <KSharedConfig> 0012 0013 namespace KWallet 0014 { 0015 class Wallet; 0016 } 0017 0018 class AuthorizedAppModel : public QStandardItemModel 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit AuthorizedAppModel(KWallet::Wallet *wallet); 0023 0024 public Q_SLOTS: 0025 void removeApp(const QString &); 0026 0027 private Q_SLOTS: 0028 void saveConfig(); 0029 0030 private: 0031 KSharedConfig::Ptr _cfg; 0032 KWallet::Wallet *const _wallet; 0033 QMap<QString, QPersistentModelIndex> _authorizedAppsIndexMap; 0034 }; 0035 0036 #endif // AUTHORIZEDAPPMODEL_H