1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2006-2008 Rafael Fernández López <ereslibre@kde.org>
4 SPDX-FileCopyrightText: 2006-2008 Kevin Ottens <ervin@kde.org>
5 SPDX-FileCopyrightText: 2000 Matej Koss <koss@miesto.sk>
6 SPDX-FileCopyrightText: 2000 David Faure <faure@kde.org>
7 SPDX-FileCopyrightText: 2000 Stephan Kulow <coolo@kde.org>
8
9 SPDX-License-Identifier: LGPL-2.0-or-later
10*/
11
12#ifndef KUISERVERJOBTRACKER_P_H
13#define KUISERVERJOBTRACKER_P_H
14
15#include <kjobwidgets_export.h>
16
17#if KJOBWIDGETS_ENABLE_DEPRECATED_SINCE(6, 17)
18
19#include <memory>
20
21#include <QDBusServiceWatcher>
22
23#include "jobviewserverinterface.h"
24
25class Q_DECL_HIDDEN KSharedUiServerProxy : public QObject
26{
27 Q_OBJECT
28
29public:
30 KSharedUiServerProxy();
31 ~KSharedUiServerProxy() override;
32
33 org::kde::JobViewServer *uiserver();
34
35Q_SIGNALS:
36 void serverRegistered();
37 void serverUnregistered();
38
39private:
40 void uiserverOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner);
41
42 std::unique_ptr<org::kde::JobViewServer> m_uiserver;
43 std::unique_ptr<QDBusServiceWatcher> m_watcher;
44};
45
46#endif // KJOBWIDGETS_DEPRECATED_WARNINGS_SINCE
47
48#endif
49

source code of kjobwidgets/src/kuiserverjobtracker_p.h