File indexing completed on 2025-03-23 12:49:53
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 <QDBusServiceWatcher> 0011 0012 #include "agentmanagerinterface.h" 0013 #include "secretagentadaptor.h" 0014 0015 namespace NetworkManager 0016 { 0017 class SecretAgent; 0018 class SecretAgentPrivate 0019 { 0020 Q_DECLARE_PUBLIC(SecretAgent) 0021 public: 0022 explicit SecretAgentPrivate(const QString &, SecretAgent *parent = nullptr); 0023 explicit SecretAgentPrivate(const QString &, const NetworkManager::SecretAgent::Capabilities, SecretAgent *parent = nullptr); 0024 virtual ~SecretAgentPrivate(); 0025 private Q_SLOTS: 0026 void dbusInterfacesAdded(const QDBusObjectPath &path, const QVariantMap &interfaces); 0027 void daemonRegistered(); 0028 void registerAgent(); 0029 void registerAgent(const NetworkManager::SecretAgent::Capabilities capabilities); 0030 0031 private: 0032 SecretAgent *q_ptr; 0033 SecretAgentAdaptor agent; 0034 OrgFreedesktopNetworkManagerAgentManagerInterface agentManager; 0035 QDBusServiceWatcher watcher; 0036 QString agentId; 0037 NetworkManager::SecretAgent::Capabilities capabilities; 0038 }; 0039 } 0040 0041 #endif // NETWORKMANAGERQT_SECRETAGENT_P_H