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
13QT_BEGIN_NAMESPACE
14
15
16class QDBusInterfacePrivate;
17class Q_DBUS_EXPORT QDBusInterface: public QDBusAbstractInterface
18{
19 friend class QDBusConnection;
20private:
21 QDBusInterface(QDBusInterfacePrivate *p);
22
23public:
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
33private:
34 Q_DECLARE_PRIVATE(QDBusInterface)
35};
36
37QT_END_NAMESPACE
38
39#endif // QT_NO_DBUS
40#endif
41

source code of qtbase/src/dbus/qdbusinterface.h