Debian Codegraph @

src/util/ddbusextendedpendingcallwatcher_p.h

raw
1 // SPDX-FileCopyrightText: 2015 Jolla Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4
5 //
6 // W A R N I N G
7 // -------------
8 //
9 // This file is not part of the public API. This header file may
10 // change from version to version without notice, or even be
11 // removed.
12 //
13 // We mean it.
14 //
15 //
16
17 #ifndef DDBUSEXTENDEDPENDINGCALLWATCHER_P_H
18 #define DDBUSEXTENDEDPENDINGCALLWATCHER_P_H
19 #include "dtkcore_global.h"
20 #include <QDBusError>
21 #include <QDBusPendingCallWatcher>
22
23 DCORE_BEGIN_NAMESPACE
24 class DDBusExtendedPendingCallWatcher : public QDBusPendingCallWatcher
25 {
26 Q_OBJECT
27
28 public:
29 explicit DDBusExtendedPendingCallWatcher(const QDBusPendingCall &call,
30 const QString &asyncProperty,
31 const QVariant &previousValue,
32 QObject *parent = 0);
33 ~DDBusExtendedPendingCallWatcher();
34
35 Q_PROPERTY(QString AsyncProperty READ asyncProperty)
36 inline QString asyncProperty() const { return m_asyncProperty; }
37
38 Q_PROPERTY(QVariant PreviousValue READ previousValue)
39 inline QVariant previousValue() const { return m_previousValue; }
40
41 private:
42 QString m_asyncProperty;
43 QVariant m_previousValue;
44 };
45 DCORE_END_NAMESPACE
46
47 #endif /* DDBUSEXTENDEDPENDINGCALLWATCHER_P_H */