| 1 | // -*- c++ -*- |
| 2 | |
| 3 | /*! |
| 4 | * |
| 5 | * Copyright (C) 2015 Jolla Ltd. |
| 6 | * |
| 7 | * Contact: Valerio Valerio <[email protected]> |
| 8 | * Author: Andres Gomez <[email protected]> |
| 9 | * |
| 10 | * This library is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU Lesser General Public |
| 12 | * License as published by the Free Software Foundation; either |
| 13 | * version 2.1 of the License, or (at your option) any later version. |
| 14 | * |
| 15 | * This library is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 | * Lesser General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU Lesser General Public |
| 21 | * License along with this library; if not, write to the Free Software |
| 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 23 | */ |
| 24 | |
| 25 | |
| 26 | // |
| 27 | // W A R N I N G |
| 28 | // ------------- |
| 29 | // |
| 30 | // This file is not part of the public API. This header file may |
| 31 | // change from version to version without notice, or even be |
| 32 | // removed. |
| 33 | // |
| 34 | // We mean it. |
| 35 | // |
| 36 | // |
| 37 | |
| 38 | |
| 39 | #ifndef DBUSEXTENDEDPENDINGCALLWATCHER_P_H |
| 40 | #define DBUSEXTENDEDPENDINGCALLWATCHER_P_H |
| 41 | |
| 42 | #include <QDBusPendingCallWatcher> |
| 43 | #include <QDBusError> |
| 44 | |
| 45 | class DBusExtendedPendingCallWatcher: public QDBusPendingCallWatcher |
| 46 | { |
| 47 | Q_OBJECT |
| 48 | |
| 49 | public: |
| 50 | explicit DBusExtendedPendingCallWatcher(const QDBusPendingCall &call, |
| 51 | const QString &asyncProperty, |
| 52 | const QVariant &previousValue, |
| 53 | QObject *parent = 0); |
| 54 | ~DBusExtendedPendingCallWatcher(); |
| 55 | |
| 56 | Q_PROPERTY(QString AsyncProperty READ asyncProperty) |
| 57 | inline QString asyncProperty() const { return m_asyncProperty; } |
| 58 | |
| 59 | Q_PROPERTY(QVariant PreviousValue READ previousValue) |
| 60 | inline QVariant previousValue() const { return m_previousValue; } |
| 61 | |
| 62 | private: |
| 63 | QString m_asyncProperty; |
| 64 | QVariant m_previousValue; |
| 65 | }; |
| 66 | |
| 67 | #endif /* DBUSEXTENDEDPENDINGCALLWATCHER_P_H */ |