1/*
2 SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef NETWORKMANAGERQT_SECRETAGENT_P_H
8#define NETWORKMANAGERQT_SECRETAGENT_P_H
9
10#include <QDBusServiceWatcher>
11
12#include "agentmanagerinterface.h"
13#include "secretagentadaptor.h"
14
15namespace NetworkManager
16{
17class SecretAgent;
18class SecretAgentPrivate
19{
20 Q_DECLARE_PUBLIC(SecretAgent)
21public:
22 explicit SecretAgentPrivate(const QString &, SecretAgent *parent = nullptr);
23 explicit SecretAgentPrivate(const QString &, const NetworkManager::SecretAgent::Capabilities, SecretAgent *parent = nullptr);
24 virtual ~SecretAgentPrivate();
25private Q_SLOTS:
26 void dbusInterfacesAdded(const QDBusObjectPath &path, const QVariantMap &interfaces);
27 void daemonRegistered();
28 void registerAgent();
29 void registerAgent(const NetworkManager::SecretAgent::Capabilities capabilities);
30
31private:
32 SecretAgent *q_ptr;
33 SecretAgentAdaptor agent;
34 OrgFreedesktopNetworkManagerAgentManagerInterface agentManager;
35 QDBusServiceWatcher watcher;
36 QString agentId;
37 NetworkManager::SecretAgent::Capabilities capabilities;
38};
39}
40
41#endif // NETWORKMANAGERQT_SECRETAGENT_P_H

source code of networkmanager-qt/src/secretagent_p.h