Changeset View
Changeset View
Standalone View
Standalone View
src/kuiserverjobtracker_p.h
Show All 18 Lines | 1 | /* This file is part of the KDE libraries | |||
---|---|---|---|---|---|
19 | along with this library; see the file COPYING.LIB. If not, write to | 19 | along with this library; see the file COPYING.LIB. If not, write to | ||
20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
21 | Boston, MA 02110-1301, USA. | 21 | Boston, MA 02110-1301, USA. | ||
22 | */ | 22 | */ | ||
23 | 23 | | |||
24 | #ifndef KUISERVERJOBTRACKER_P_H | 24 | #ifndef KUISERVERJOBTRACKER_P_H | ||
25 | #define KUISERVERJOBTRACKER_P_H | 25 | #define KUISERVERJOBTRACKER_P_H | ||
26 | 26 | | |||
27 | #include <memory> | ||||
28 | | ||||
27 | #include <QDBusServiceWatcher> | 29 | #include <QDBusServiceWatcher> | ||
28 | 30 | | |||
29 | #include "jobviewserverinterface.h" | 31 | #include "jobviewserverinterface.h" | ||
30 | 32 | | |||
31 | class Q_DECL_HIDDEN KSharedUiServerProxy : public QObject | 33 | class Q_DECL_HIDDEN KSharedUiServerProxy : public QObject | ||
32 | { | 34 | { | ||
33 | Q_OBJECT | 35 | Q_OBJECT | ||
34 | 36 | | |||
35 | public: | 37 | public: | ||
36 | KSharedUiServerProxy(); | 38 | KSharedUiServerProxy(); | ||
37 | ~KSharedUiServerProxy(); | 39 | ~KSharedUiServerProxy(); | ||
38 | 40 | | |||
39 | org::kde::JobViewServer &uiserver(); | 41 | org::kde::JobViewServer *uiserver(); | ||
40 | 42 | | |||
41 | Q_SIGNALS: | 43 | Q_SIGNALS: | ||
42 | void serverRegistered(); | 44 | void serverRegistered(); | ||
43 | void serverUnregistered(); | 45 | void serverUnregistered(); | ||
44 | 46 | | |||
45 | private: | 47 | private: | ||
46 | void uiserverOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner); | 48 | void uiserverOwnerChanged(const QString &serviceName, const QString &oldOwner, const QString &newOwner); | ||
47 | 49 | | |||
48 | org::kde::JobViewServer m_uiserver; | 50 | std::unique_ptr<org::kde::JobViewServer> m_uiserver; | ||
49 | QDBusServiceWatcher m_watcher; | 51 | std::unique_ptr<QDBusServiceWatcher> m_watcher; | ||
50 | }; | 52 | }; | ||
51 | 53 | | |||
52 | #endif | 54 | #endif |