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 <memory> |
16 | |
17 | #include <QDBusServiceWatcher> |
18 | |
19 | #include "jobviewserverinterface.h" |
20 | |
21 | class Q_DECL_HIDDEN KSharedUiServerProxy : public QObject |
22 | { |
23 | Q_OBJECT |
24 | |
25 | public: |
26 | KSharedUiServerProxy(); |
27 | ~KSharedUiServerProxy() override; |
28 | |
29 | org::kde::JobViewServer *uiserver(); |
30 | |
31 | Q_SIGNALS: |
32 | void serverRegistered(); |
33 | void serverUnregistered(); |
34 | |
35 | private: |
36 | void uiserverOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner); |
37 | |
38 | std::unique_ptr<org::kde::JobViewServer> m_uiserver; |
39 | std::unique_ptr<QDBusServiceWatcher> m_watcher; |
40 | }; |
41 | |
42 | #endif |
43 |