1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QDBUSINTERFACE_H |
5 | #define QDBUSINTERFACE_H |
6 | |
7 | #include <QtDBus/qtdbusglobal.h> |
8 | #include <QtDBus/qdbusabstractinterface.h> |
9 | #include <QtDBus/qdbusconnection.h> |
10 | |
11 | #ifndef QT_NO_DBUS |
12 | |
13 | QT_BEGIN_NAMESPACE |
14 | |
15 | |
16 | class QDBusInterfacePrivate; |
17 | class Q_DBUS_EXPORT QDBusInterface: public QDBusAbstractInterface |
18 | { |
19 | friend class QDBusConnection; |
20 | private: |
21 | QDBusInterface(QDBusInterfacePrivate *p); |
22 | |
23 | public: |
24 | QDBusInterface(const QString &service, const QString &path, const QString &interface = QString(), |
25 | const QDBusConnection &connection = QDBusConnection::sessionBus(), |
26 | QObject *parent = nullptr); |
27 | ~QDBusInterface(); |
28 | |
29 | virtual const QMetaObject *metaObject() const override; |
30 | virtual void *qt_metacast(const char *) override; |
31 | virtual int qt_metacall(QMetaObject::Call, int, void **) override; |
32 | |
33 | private: |
34 | Q_DECLARE_PRIVATE(QDBusInterface) |
35 | }; |
36 | |
37 | QT_END_NAMESPACE |
38 | |
39 | #endif // QT_NO_DBUS |
40 | #endif |
41 | |