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 APPLICATIONSMANAGER_H
0008 #define APPLICATIONSMANAGER_H
0009 
0010 #include "ui_applicationsmanager.h"
0011 #include <QWidget>
0012 
0013 class AuthorizedAppModel;
0014 class ConnectedAppModel;
0015 namespace KWallet
0016 {
0017 class Wallet;
0018 }
0019 
0020 class ApplicationsManager : public QWidget, public Ui::ApplicationsManager
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit ApplicationsManager(QWidget *parent);
0025     ~ApplicationsManager() override;
0026 
0027     void setWallet(KWallet::Wallet *wallet);
0028 
0029 private:
0030     KWallet::Wallet     *_wallet = nullptr;
0031     ConnectedAppModel   *_connectedAppsModel = nullptr;
0032     AuthorizedAppModel  *_authorizedAppModel = nullptr;
0033 };
0034 
0035 #endif // APPLICATIONSMANAGER_H