File indexing completed on 2023-10-03 07:15:16

0001 /*
0002     SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef NETWORKMANAGERQT_SECRETAGENT_P_H
0008 #define NETWORKMANAGERQT_SECRETAGENT_P_H
0009 
0010 #include "agentmanagerinterface.h"
0011 #include "secretagentadaptor.h"
0012 
0013 namespace NetworkManager
0014 {
0015 class SecretAgent;
0016 class SecretAgentPrivate
0017 {
0018     Q_DECLARE_PUBLIC(SecretAgent)
0019 public:
0020     explicit SecretAgentPrivate(const QString &, SecretAgent *parent = nullptr);
0021     explicit SecretAgentPrivate(const QString &, const NetworkManager::SecretAgent::Capabilities, SecretAgent *parent = nullptr);
0022     virtual ~SecretAgentPrivate();
0023 private Q_SLOTS:
0024     void dbusInterfacesAdded(const QDBusObjectPath &path, const QVariantMap &interfaces);
0025     void registerAgent();
0026     void registerAgent(const NetworkManager::SecretAgent::Capabilities capabilities);
0027 
0028 private:
0029     SecretAgent *q_ptr;
0030     SecretAgentAdaptor agent;
0031     OrgFreedesktopNetworkManagerAgentManagerInterface agentManager;
0032     QString agentId;
0033     NetworkManager::SecretAgent::Capabilities capabilities;
0034 };
0035 }
0036 
0037 #endif // NETWORKMANAGERQT_SECRETAGENT_P_H