File indexing completed on 2024-12-22 04:33:56

0001 //SPDX-FileCopyrightText: 2015 Jolla Ltd. <valerio.valerio@jolla.com>
0002 //SPDX-FileContributor: Andres Gomez
0003 //
0004 //SPDX-License-Identifier: LGPL-2.1-or-later
0005 
0006 
0007 //
0008 //  W A R N I N G
0009 //  -------------
0010 //
0011 // This file is not part of the public API.  This header file may
0012 // change from version to version without notice, or even be
0013 // removed.
0014 //
0015 // We mean it.
0016 //
0017 //
0018 
0019 
0020 #ifndef DBUSEXTENDEDPENDINGCALLWATCHER_P_H
0021 #define DBUSEXTENDEDPENDINGCALLWATCHER_P_H
0022 
0023 #include <QDBusPendingCallWatcher>
0024 #include <QDBusError>
0025 
0026 class DBusExtendedPendingCallWatcher: public QDBusPendingCallWatcher
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     explicit DBusExtendedPendingCallWatcher(const QDBusPendingCall &call,
0032                                             const QString &asyncProperty,
0033                                             const QVariant &previousValue,
0034                                             QObject *parent = 0);
0035     ~DBusExtendedPendingCallWatcher();
0036 
0037     Q_PROPERTY(QString AsyncProperty READ asyncProperty)
0038     inline QString asyncProperty() const { return m_asyncProperty; }
0039 
0040     Q_PROPERTY(QVariant PreviousValue READ previousValue)
0041     inline QVariant previousValue() const { return m_previousValue; }
0042 
0043 private:
0044     QString m_asyncProperty;
0045     QVariant m_previousValue;
0046 };
0047 
0048 #endif /* DBUSEXTENDEDPENDINGCALLWATCHER_P_H */