Remove QtDBus includes
Per the discussion of QTBUG-88831, we determined that module-wide imports are unfortunate, especially for compile times. Following this, all QtDBus includes have been replaced with the headers for the classes actually used in each file. Additionally, some cleanup of header file order and format has been performed in the changed files. Pick-to: 6.0 Change-Id: I62c1b75682a48422f0ba1168dd5d7bd0952808ac Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
6a3f8cbc3a
commit
9e09677c1d
@ -48,17 +48,18 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QProcess>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include "ping-common.h"
|
||||
#include "complexping.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusReply>
|
||||
#include <QDBusServiceWatcher>
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
#include <QProcess>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
void Ping::start(const QString &name)
|
||||
{
|
||||
if (name != SERVICE_NAME)
|
||||
|
@ -48,16 +48,17 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include "ping-common.h"
|
||||
#include "complexpong.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusError>
|
||||
#include <QTimer>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// the property
|
||||
QString Pong::value() const
|
||||
{
|
||||
|
@ -48,10 +48,13 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusReply>
|
||||
#include <QDebug>
|
||||
#include <QStringList>
|
||||
|
||||
void method1()
|
||||
{
|
||||
|
@ -48,13 +48,15 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include "ping-common.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusReply>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
@ -48,16 +48,17 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include "ping-common.h"
|
||||
#include "pong.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusError>
|
||||
#include <QTimer>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
QString Pong::ping(const QString &arg)
|
||||
{
|
||||
QMetaObject::invokeMethod(QCoreApplication::instance(), "quit");
|
||||
|
@ -49,7 +49,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtWidgets>
|
||||
#include <QtDBus>
|
||||
|
||||
|
||||
#include "controller.h"
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtCore>
|
||||
#include <QtDBus>
|
||||
|
||||
|
||||
static QVariant callMyDBusFunction() { return QVariant(); }
|
||||
|
||||
|
@ -45,15 +45,17 @@
|
||||
However it is maintained manually.
|
||||
*/
|
||||
|
||||
#include "qdbusmenuadaptor_p.h"
|
||||
#include "qdbusplatformmenu_p.h"
|
||||
#include <QtCore/QMetaObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QMetaObject>
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <QLocale>
|
||||
|
||||
#include <private/qdbusmenuadaptor_p.h>
|
||||
#include <private/qdbusplatformmenu_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -62,9 +62,10 @@
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include "qdbusmenutypes_p.h"
|
||||
#include <QObject>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
|
||||
#include <private/qdbusmenutypes_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -39,18 +39,19 @@
|
||||
|
||||
#include <QtGui/qtgui-config.h>
|
||||
|
||||
#ifndef QT_NO_SYSTEMTRAYICON
|
||||
#include "../dbustray/qdbustrayicon_p.h"
|
||||
#endif
|
||||
#include "qdbusmenuconnection_p.h"
|
||||
#include "qdbusmenuadaptor_p.h"
|
||||
#include "qdbusplatformmenu_p.h"
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusServiceWatcher>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDebug>
|
||||
#include <QCoreApplication>
|
||||
|
||||
#include <QtDBus/QDBusMessage>
|
||||
#include <QtDBus/QDBusServiceWatcher>
|
||||
#include <QtDBus/QDBusConnectionInterface>
|
||||
#include <qdebug.h>
|
||||
#include <qcoreapplication.h>
|
||||
#ifndef QT_NO_SYSTEMTRAYICON
|
||||
#include <private/qdbustrayicon_p.h>
|
||||
#endif
|
||||
#include <private/qdbusmenuconnection_p.h>
|
||||
#include <private/qdbusmenuadaptor_p.h>
|
||||
#include <private/qdbusplatformmenu_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -41,23 +41,28 @@
|
||||
|
||||
#ifndef QT_NO_SYSTEMTRAYICON
|
||||
|
||||
#include <private/qdbusmenuconnection_p.h>
|
||||
#include "qstatusnotifieritemadaptor_p.h"
|
||||
#include <private/qdbusmenuadaptor_p.h>
|
||||
#include <private/qdbusplatformmenu_p.h>
|
||||
#include "qxdgnotificationproxy_p.h"
|
||||
#include <QString>
|
||||
#include <QDebug>
|
||||
#include <QRect>
|
||||
#include <QLoggingCategory>
|
||||
#include <QStandardPaths>
|
||||
#include <QDir>
|
||||
#include <QMetaObject>
|
||||
#include <QMetaEnum>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusArgument>
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusServiceWatcher>
|
||||
|
||||
#include <qpa/qplatformmenu.h>
|
||||
#include <qstring.h>
|
||||
#include <qdebug.h>
|
||||
#include <qrect.h>
|
||||
#include <qloggingcategory.h>
|
||||
#include <qstandardpaths.h>
|
||||
#include <qdir.h>
|
||||
#include <qmetaobject.h>
|
||||
#include <qpa/qplatformintegration.h>
|
||||
#include <qpa/qplatformservices.h>
|
||||
#include <qdbusconnectioninterface.h>
|
||||
|
||||
#include <private/qdbusmenuconnection_p.h>
|
||||
#include <private/qstatusnotifieritemadaptor_p.h>
|
||||
#include <private/qdbusmenuadaptor_p.h>
|
||||
#include <private/qdbusplatformmenu_p.h>
|
||||
#include <private/qxdgnotificationproxy_p.h>
|
||||
#include <private/qlockfile_p.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
|
||||
|
@ -62,14 +62,14 @@
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <QtGui/private/qtguiglobal_p.h>
|
||||
#include <private/qtguiglobal_p.h>
|
||||
|
||||
QT_REQUIRE_CONFIG(systemtrayicon);
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QObject>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
|
||||
#include "qdbustraytypes_p.h"
|
||||
#include <private/qdbustraytypes_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QDBusTrayIcon;
|
||||
|
@ -62,15 +62,17 @@
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QLoggingCategory>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QLoggingCategory>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <QDBusAbstractInterface>
|
||||
#include <QDBusPendingReply>
|
||||
#include <QDBusReply>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -39,32 +39,34 @@
|
||||
|
||||
#include "qgenericunixthemes_p.h"
|
||||
|
||||
#include "qpa/qplatformtheme_p.h"
|
||||
#include "qpa/qplatformfontdatabase.h" // lcQpaFonts
|
||||
|
||||
#include <QtGui/QPalette>
|
||||
#include <QtGui/QFont>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QFileInfo>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QHash>
|
||||
#include <QPalette>
|
||||
#include <QFont>
|
||||
#include <QGuiApplication>
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QFile>
|
||||
#include <QDebug>
|
||||
#include <QHash>
|
||||
#include <QLoggingCategory>
|
||||
#include <QVariant>
|
||||
#include <QStandardPaths>
|
||||
#include <QStringList>
|
||||
#if QT_CONFIG(mimetype)
|
||||
#include <QtCore/QMimeDatabase>
|
||||
#include <QMimeDatabase>
|
||||
#endif
|
||||
#include <QtCore/QLoggingCategory>
|
||||
#if QT_CONFIG(settings)
|
||||
#include <QtCore/QSettings>
|
||||
#include <QSettings>
|
||||
#endif
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtCore/QStandardPaths>
|
||||
#include <QtCore/QStringList>
|
||||
#include <private/qguiapplication_p.h>
|
||||
|
||||
#include <qpa/qplatformfontdatabase.h> // lcQpaFonts
|
||||
#include <qpa/qplatformintegration.h>
|
||||
#include <qpa/qplatformservices.h>
|
||||
#include <qpa/qplatformdialoghelper.h>
|
||||
#include <qpa/qplatformtheme_p.h>
|
||||
|
||||
#include <private/qguiapplication_p.h>
|
||||
#ifndef QT_NO_DBUS
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <private/qdbusplatformmenu_p.h>
|
||||
#include <private/qdbusmenubar_p.h>
|
||||
#endif
|
||||
|
@ -11,14 +11,16 @@
|
||||
#ifndef QIBUSINPUTCONTEXTPROXY_H_1394889529
|
||||
#define QIBUSINPUTCONTEXTPROXY_H_1394889529
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <QDBusAbstractInterface>
|
||||
#include <QDBusPendingReply>
|
||||
|
||||
|
||||
/*
|
||||
* Proxy class for interface org.freedesktop.IBus.InputContext
|
||||
|
@ -38,30 +38,33 @@
|
||||
****************************************************************************/
|
||||
#include "qibusplatforminputcontext.h"
|
||||
|
||||
#include <QtDebug>
|
||||
#include <QDebug>
|
||||
#include <QTextCharFormat>
|
||||
#include <QGuiApplication>
|
||||
#include <QWindow>
|
||||
#include <QEvent>
|
||||
#include <QFile>
|
||||
#include <QStandardPaths>
|
||||
#include <QDBusVariant>
|
||||
#include <qwindow.h>
|
||||
#include <qevent.h>
|
||||
|
||||
#include <qpa/qplatformcursor.h>
|
||||
#include <qpa/qplatformscreen.h>
|
||||
#include <qpa/qwindowsysteminterface_p.h>
|
||||
|
||||
#include <QtGui/private/qguiapplication_p.h>
|
||||
|
||||
#include <QtGui/private/qxkbcommon_p.h>
|
||||
#include <QDBusPendingReply>
|
||||
#include <QDBusReply>
|
||||
#include <QDBusServiceWatcher>
|
||||
|
||||
#include "qibusproxy.h"
|
||||
#include "qibusproxyportal.h"
|
||||
#include "qibusinputcontextproxy.h"
|
||||
#include "qibustypes.h"
|
||||
|
||||
#include <qpa/qplatformcursor.h>
|
||||
#include <qpa/qplatformscreen.h>
|
||||
#include <qpa/qwindowsysteminterface_p.h>
|
||||
|
||||
#include <private/qguiapplication_p.h>
|
||||
#include <private/qxkbcommon_p.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <QtDBus>
|
||||
|
||||
#ifndef IBUS_RELEASE_MASK
|
||||
#define IBUS_RELEASE_MASK (1 << 30)
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
#include "qibusproxy.h"
|
||||
|
||||
#include <QDBusReply>
|
||||
|
||||
/*
|
||||
* Implementation of interface class QIBusProxy
|
||||
*/
|
||||
|
@ -11,14 +11,15 @@
|
||||
#ifndef QIBUSPROXY_H_1308831142
|
||||
#define QIBUSPROXY_H_1308831142
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <QDBusAbstractInterface>
|
||||
#include <QDBusPendingReply>
|
||||
|
||||
#include "qibustypes.h"
|
||||
|
||||
|
@ -11,14 +11,15 @@
|
||||
#ifndef QIBUSPROXYPORTAL_H
|
||||
#define QIBUSPROXYPORTAL_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QObject>
|
||||
#include <QByteArray>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QVariant>
|
||||
#include <QDBusAbstractInterface>
|
||||
#include <QDBusPendingReply>
|
||||
|
||||
/*
|
||||
* Proxy class for interface org.freedesktop.IBus.Portal
|
||||
|
@ -38,7 +38,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qibustypes.h"
|
||||
#include <QtDBus>
|
||||
|
||||
#include <QHash>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
@ -39,21 +39,21 @@
|
||||
|
||||
#include "qxdgdesktopportalfiledialog_p.h"
|
||||
|
||||
#include <QtCore/qeventloop.h>
|
||||
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusPendingCall>
|
||||
#include <QDBusPendingCallWatcher>
|
||||
#include <QDBusPendingReply>
|
||||
#include <QDBusMetaType>
|
||||
|
||||
#include <QEventLoop>
|
||||
#include <QFile>
|
||||
#include <QMetaType>
|
||||
#include <QMimeType>
|
||||
#include <QMimeDatabase>
|
||||
#include <QRandomGenerator>
|
||||
#include <QWindow>
|
||||
#include <QRegularExpression>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -29,8 +29,11 @@
|
||||
#ifndef MYOBJECT_H
|
||||
#define MYOBJECT_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
#include <QUrl>
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
|
||||
extern const char *slotSpy;
|
||||
extern QString valueSpy;
|
||||
|
@ -26,8 +26,13 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusServer>
|
||||
#include <QDBusContext>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusVariant>
|
||||
#include <QDBusServer>
|
||||
|
||||
#include "../myobject.h"
|
||||
|
||||
|
@ -26,12 +26,15 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qdebug.h>
|
||||
|
||||
#include <QTest>
|
||||
|
||||
#include <QtDBus>
|
||||
#include <QDebug>
|
||||
#include <QCoreApplication>
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusConnectionInterface>
|
||||
|
||||
#include "../qdbusmarshall/common.h"
|
||||
#include "myobject.h"
|
||||
|
@ -29,9 +29,9 @@
|
||||
#ifndef INTERFACE_H
|
||||
#define INTERFACE_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QHash>
|
||||
#include <QtDBus/QDBusArgument>
|
||||
#include <QObject>
|
||||
#include <QHash>
|
||||
#include <QDBusArgument>
|
||||
|
||||
struct RegisteredType
|
||||
{
|
||||
|
@ -26,8 +26,15 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
#include <QDBusServer>
|
||||
#include <QDBusContext>
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMessage>
|
||||
|
||||
#include "../interface.h"
|
||||
|
||||
static const char serviceName[] = "org.qtproject.autotests.qpinger";
|
||||
|
@ -26,15 +26,18 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qdebug.h>
|
||||
#include <qsharedpointer.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QDebug>
|
||||
#include <QCoreApplication>
|
||||
#include <QSharedPointer>
|
||||
#include <QSignalSpy>
|
||||
|
||||
#include <QtDBus>
|
||||
#include <QProcess>
|
||||
#include <QSemaphore>
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusInterface>
|
||||
|
||||
#include "interface.h"
|
||||
#include "pinger_interface.h"
|
||||
|
@ -29,12 +29,14 @@
|
||||
|
||||
#include "tst_qdbusconnection.h"
|
||||
|
||||
#include <qcoreapplication.h>
|
||||
#include <qdebug.h>
|
||||
|
||||
#include <QTest>
|
||||
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QDebug>
|
||||
#include <QProcess>
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusReply>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusConnectionInterface>
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
# include <sys/types.h>
|
||||
|
@ -31,9 +31,12 @@
|
||||
#define TST_QDBUSCONNECTION_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusServer>
|
||||
#include <QDBusVirtualObject>
|
||||
|
||||
class BaseObject: public QObject
|
||||
{
|
||||
|
@ -26,9 +26,10 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtDBus>
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusConnectionInterface>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
# include <process.h>
|
||||
|
@ -25,11 +25,11 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qdebug.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QDebug>
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <qdebug.h>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -25,8 +25,12 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtDBus>
|
||||
|
||||
#include <QTest>
|
||||
#include <QDBusContext>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusReply>
|
||||
|
||||
const char errorName[] = "org.qtproject.tst_QDBusContext.Error";
|
||||
const char errorMsg[] = "A generic error";
|
||||
|
@ -29,9 +29,10 @@
|
||||
#ifndef MYOBJECT_H
|
||||
#define MYOBJECT_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include <QObject>
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusContext>
|
||||
#include <QDBusConnection>
|
||||
|
||||
class MyObject: public QObject, protected QDBusContext
|
||||
{
|
||||
|
@ -26,8 +26,9 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusServer>
|
||||
|
||||
#include "../myobject.h"
|
||||
|
||||
|
@ -25,18 +25,22 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
/* -*- C++ -*-
|
||||
*/
|
||||
|
||||
#include <qcoreapplication.h>
|
||||
#include <qmetatype.h>
|
||||
#include <QTest>
|
||||
#include <QDebug>
|
||||
#include <QTestEventLoop>
|
||||
#include <QtCore/qregularexpression.h>
|
||||
#include <QtCore/qvariant.h>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QtDBus/private/qdbus_symbols_p.h>
|
||||
#include <qdebug.h>
|
||||
#include <QCoreApplication>
|
||||
#include <QMetaType>
|
||||
#include <QRegularExpression>
|
||||
#include <QVariant>
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusVirtualObject>
|
||||
|
||||
#include <private/qdbus_symbols_p.h>
|
||||
|
||||
#include "../qdbusmarshall/common.h"
|
||||
#include "myobject.h"
|
||||
|
||||
|
@ -25,14 +25,16 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QList>
|
||||
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QtDBus>
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
#include <QList>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusVariant>
|
||||
#include <QDBusPendingCallWatcher>
|
||||
#include <QDBusMetaType>
|
||||
|
||||
class tst_QDBusLocalCalls: public QObject
|
||||
{
|
||||
|
@ -25,8 +25,18 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qmath.h> // qIsNan
|
||||
#include <qvariant.h>
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
#include <QDateTime>
|
||||
#include <QLine>
|
||||
#include <QDBusObjectPath>
|
||||
#include <QDBusSignature>
|
||||
#include <QDBusUnixFileDescriptor>
|
||||
#include <QDBusArgument>
|
||||
#include <QDBusMetaType>
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
# include <private/qcore_unix_p.h>
|
||||
|
@ -25,8 +25,10 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusConnection>
|
||||
|
||||
static const char serviceName[] = "org.qtproject.autotests.qpong";
|
||||
static const char objectPath[] = "/org/qtproject/qpong";
|
||||
|
@ -30,8 +30,6 @@
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include "common.h"
|
||||
#include <limits>
|
||||
|
||||
|
@ -25,11 +25,15 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qmetatype.h>
|
||||
#include <QTest>
|
||||
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QTest>
|
||||
#include <QCoreApplication>
|
||||
#include <QMetaType>
|
||||
#include <QDBusArgument>
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusError>
|
||||
#include <QDBusUnixFileDescriptor>
|
||||
|
||||
#include <private/qdbusmetaobject_p.h>
|
||||
|
||||
class tst_QDBusMetaObject: public QObject
|
||||
|
@ -25,11 +25,12 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qmetatype.h>
|
||||
#include <QTest>
|
||||
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QTest>
|
||||
#include <QCoreApplication>
|
||||
#include <QMetaType>
|
||||
#include <QDBusArgument>
|
||||
#include <QDBusMetaType>
|
||||
|
||||
class tst_QDBusMetaType: public QObject
|
||||
{
|
||||
|
@ -26,13 +26,18 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QThread>
|
||||
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QtDBus>
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
#include <QList>
|
||||
#include <QThread>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
#include <QDBusMessage>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusPendingCallWatcher>
|
||||
#include <QDBusInterface>
|
||||
|
||||
#define TEST_INTERFACE_NAME "org.qtproject.QtDBus.MyObject"
|
||||
|
||||
|
@ -25,11 +25,16 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtCore/QList>
|
||||
|
||||
#include <QTest>
|
||||
#include <QtDBus>
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
#include <QList>
|
||||
#include <QDBusArgument>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
#include <QDBusPendingReply>
|
||||
|
||||
typedef QMap<int,QString> IntStringMap;
|
||||
Q_DECLARE_METATYPE(IntStringMap)
|
||||
|
@ -25,13 +25,16 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qdebug.h>
|
||||
#include <qvariant.h>
|
||||
|
||||
#include <QTest>
|
||||
|
||||
#include <QtDBus>
|
||||
#include <QDebug>
|
||||
#include <QCoreApplication>
|
||||
#include <QVariant>
|
||||
#include <QDBusArgument>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusMetaType>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
#include <QDBusReply>
|
||||
|
||||
typedef QMap<int,QString> IntStringMap;
|
||||
Q_DECLARE_METATYPE(IntStringMap)
|
||||
|
@ -27,11 +27,11 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtDBus/QDBusServiceWatcher>
|
||||
#include <QtDBus>
|
||||
#include <QTest>
|
||||
#include <QSignalSpy>
|
||||
#include <QTestEventLoop>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusServiceWatcher>
|
||||
|
||||
class tst_QDBusServiceWatcher: public QObject
|
||||
{
|
||||
|
@ -25,16 +25,21 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QtDBus>
|
||||
#include <QtCore/QVarLengthArray>
|
||||
#include <QtCore/QThread>
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QSemaphore>
|
||||
#include <QtCore/QMutex>
|
||||
#include <QtCore/QWaitCondition>
|
||||
#include <QtCore/QMap>
|
||||
#include <QVarLengthArray>
|
||||
#include <QThread>
|
||||
#include <QObject>
|
||||
#include <QSemaphore>
|
||||
#include <QMutex>
|
||||
#include <QWaitCondition>
|
||||
#include <QMap>
|
||||
#include <QDBusAbstractAdaptor>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusReply>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusInterface>
|
||||
|
||||
class Thread : public QThread
|
||||
{
|
||||
|
@ -25,13 +25,11 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
/* -*- C++ -*-
|
||||
*/
|
||||
#include <qcoreapplication.h>
|
||||
#include <qmetatype.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDomDocument>
|
||||
#include <QMetaType>
|
||||
#include <QTest>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QtXml/QDomDocument>
|
||||
|
||||
#define USE_PRIVATE_CODE
|
||||
#include "../qdbusmarshall/common.h"
|
||||
|
@ -26,7 +26,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
|
||||
#include "../serverobject.h"
|
||||
|
||||
|
@ -31,7 +31,8 @@
|
||||
#define SERVEROBJECT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusVariant>
|
||||
|
||||
class ServerObject: public QObject
|
||||
{
|
||||
|
@ -25,10 +25,13 @@
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
#include <QtCore/QtCore>
|
||||
|
||||
#include <QTest>
|
||||
#include <QTestEventLoop>
|
||||
#include <QtDBus/QtDBus>
|
||||
#include <QProcess>
|
||||
#include <QDBusServiceWatcher>
|
||||
#include <QDBusConnectionInterface>
|
||||
#include <QDBusInterface>
|
||||
|
||||
#include "./serverobject.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user