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