1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2021 Kai Uwe Broulik <kde@broulik.de>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KUISERVERV2JOBTRACKER_P_H
9#define KUISERVERV2JOBTRACKER_P_H
10
11#include <memory>
12
13#include <QDBusServiceWatcher>
14
15#include "jobviewserverv2interface.h"
16
17class Q_DECL_HIDDEN KSharedUiServerV2Proxy : public QObject
18{
19 Q_OBJECT
20
21public:
22 KSharedUiServerV2Proxy();
23 ~KSharedUiServerV2Proxy() override;
24
25 org::kde::JobViewServerV2 *uiserver();
26
27Q_SIGNALS:
28 void serverRegistered();
29 void serverUnregistered();
30
31private:
32 void uiserverOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner);
33
34 std::unique_ptr<org::kde::JobViewServerV2> m_uiserver;
35 std::unique_ptr<QDBusServiceWatcher> m_watcher;
36};
37
38#endif
39

source code of kjobwidgets/src/kuiserverv2jobtracker_p.h