Fix spelling of D-Bus in the source code
Replace D-BUS with correct splling D-Bus in the source code, Keep the old spelling inside XML DTD declarations for compatibility. Change-Id: Ifa5d43f9fa1417431c81cf1bce0d897a966409b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b48a588e13
commit
f846454993
@ -34,7 +34,7 @@ for(entry, DBUS_$${dbus_TYPE}S) {
|
||||
for(subent, $$list($$unique(files))) {
|
||||
|
||||
!contains(subent, .*\\w\\.xml$) {
|
||||
warning("Invalid D-BUS $${dbus_type}: '$$subent', please use 'com.mydomain.myinterface.xml' instead.")
|
||||
warning("Invalid D-Bus $${dbus_type}: '$$subent', please use 'com.mydomain.myinterface.xml' instead.")
|
||||
next()
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ qt_generate_dbus_interface(header
|
||||
\section1 Description
|
||||
|
||||
Parses the C++ source or header file containing a QObject-derived class
|
||||
declaration and generates a file containing the D-BUS Introspection XML.
|
||||
declaration and generates a file containing the D-Bus Introspection XML.
|
||||
|
||||
By default, the generated XML file is stored in the current binary directory,
|
||||
and has the same base name as the header. You can specify a different name or
|
||||
|
@ -51,14 +51,14 @@ QByteArray QDBusArgumentPrivate::createSignature(int id)
|
||||
delete marshaller;
|
||||
|
||||
if (signature.isEmpty() || !ok || !QDBusUtil::isValidSingleSignature(QString::fromLatin1(signature))) {
|
||||
qWarning("QDBusMarshaller: type '%s' produces invalid D-BUS signature '%s' "
|
||||
qWarning("QDBusMarshaller: type '%s' produces invalid D-Bus signature '%s' "
|
||||
"(Did you forget to call beginStructure() ?)",
|
||||
QMetaType(id).name(), signature.isEmpty() ? "<empty>" : signature.constData());
|
||||
return "";
|
||||
} else if ((signature.at(0) != DBUS_TYPE_ARRAY && signature.at(0) != DBUS_STRUCT_BEGIN_CHAR) ||
|
||||
(signature.at(0) == DBUS_TYPE_ARRAY && (signature.at(1) == DBUS_TYPE_BYTE ||
|
||||
signature.at(1) == DBUS_TYPE_STRING))) {
|
||||
qWarning("QDBusMarshaller: type '%s' attempts to redefine basic D-BUS type '%s' (%s) "
|
||||
qWarning("QDBusMarshaller: type '%s' attempts to redefine basic D-Bus type '%s' (%s) "
|
||||
"(Did you forget to call beginStructure() ?)",
|
||||
QMetaType(id).name(), signature.constData(),
|
||||
QDBusMetaType::signatureToMetaType(signature).name());
|
||||
@ -562,8 +562,8 @@ QDBusArgument::ElementType QDBusArgument::currentType() const
|
||||
}
|
||||
|
||||
/*!
|
||||
Extracts one D-BUS primitive argument of type \c{BYTE} from the
|
||||
D-BUS stream and puts it into \a arg.
|
||||
Extracts one D-Bus primitive argument of type \c{BYTE} from the
|
||||
D-Bus stream and puts it into \a arg.
|
||||
*/
|
||||
const QDBusArgument &QDBusArgument::operator>>(uchar &arg) const
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
|
||||
void swap(QDBusArgument &other) noexcept { qt_ptr_swap(d, other.d); }
|
||||
|
||||
// used for marshalling (Qt -> D-BUS)
|
||||
// used for marshalling (Qt -> D-Bus)
|
||||
QDBusArgument &operator<<(uchar arg);
|
||||
QDBusArgument &operator<<(bool arg);
|
||||
QDBusArgument &operator<<(short arg);
|
||||
@ -80,7 +80,7 @@ public:
|
||||
|
||||
void appendVariant(const QVariant &v);
|
||||
|
||||
// used for de-marshalling (D-BUS -> Qt)
|
||||
// used for de-marshalling (D-Bus -> Qt)
|
||||
QString currentSignature() const;
|
||||
ElementType currentType() const;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#ifndef QDBUSEXTRATYPES_H
|
||||
#define QDBUSEXTRATYPES_H
|
||||
|
||||
// define some useful types for D-BUS
|
||||
// define some useful types for D-Bus
|
||||
|
||||
#include <QtDBus/qtdbusglobal.h>
|
||||
#include <QtCore/qvariant.h>
|
||||
|
@ -28,7 +28,7 @@ QDBusMarshaller::~QDBusMarshaller()
|
||||
void QDBusMarshaller::unregisteredTypeError(QMetaType id)
|
||||
{
|
||||
const char *name = id.name();
|
||||
qWarning("QDBusMarshaller: type '%s' (%d) is not registered with D-BUS. "
|
||||
qWarning("QDBusMarshaller: type '%s' (%d) is not registered with D-Bus. "
|
||||
"Use qDBusRegisterMetaType to register it",
|
||||
name ? name : "", id.id());
|
||||
error("Unregistered type %1 passed in arguments"_L1
|
||||
@ -237,7 +237,7 @@ inline QDBusMarshaller *QDBusMarshaller::beginMap(QMetaType kid, QMetaType vid)
|
||||
if (ksignature[1] != 0 || !QDBusUtil::isValidBasicType(*ksignature)) {
|
||||
QT_WARNING_PUSH
|
||||
QT_WARNING_DISABLE_GCC("-Wformat-overflow")
|
||||
qWarning("QDBusMarshaller: type '%s' (%d) cannot be used as the key type in a D-BUS map.",
|
||||
qWarning("QDBusMarshaller: type '%s' (%d) cannot be used as the key type in a D-Bus map.",
|
||||
kid.name(), kid.id());
|
||||
QT_WARNING_POP
|
||||
error("Type %1 passed in arguments cannot be used as a key in a map"_L1
|
||||
@ -472,7 +472,7 @@ bool QDBusMarshaller::appendVariantInternal(const QVariant &arg)
|
||||
Q_FALLTHROUGH();
|
||||
|
||||
default:
|
||||
qWarning("QDBusMarshaller::appendVariantInternal: Found unknown D-BUS type '%s'",
|
||||
qWarning("QDBusMarshaller::appendVariantInternal: Found unknown D-Bus type '%s'",
|
||||
signature);
|
||||
return false;
|
||||
}
|
||||
@ -492,7 +492,7 @@ bool QDBusMarshaller::appendCrossMarshalling(QDBusDemarshaller *demarshaller)
|
||||
int code = q_dbus_message_iter_get_arg_type(&demarshaller->iterator);
|
||||
if (QDBusUtil::isValidBasicType(code)) {
|
||||
// easy: just append
|
||||
// do exactly like the D-BUS docs suggest
|
||||
// do exactly like the D-Bus docs suggest
|
||||
// (see apidocs for q_dbus_message_iter_get_basic)
|
||||
|
||||
qlonglong value;
|
||||
|
@ -962,7 +962,7 @@ void tst_QDBusMarshall::sendCallErrors_data()
|
||||
<< (QVariantList() << QLocale::c())
|
||||
<< "org.freedesktop.DBus.Error.Failed"
|
||||
<< "Marshalling failed: Unregistered type QLocale passed in arguments"
|
||||
<< "QDBusMarshaller: type 'QLocale' (18) is not registered with D-BUS. Use qDBusRegisterMetaType to register it";
|
||||
<< "QDBusMarshaller: type 'QLocale' (18) is not registered with D-Bus. Use qDBusRegisterMetaType to register it";
|
||||
|
||||
// this type is known to the meta type system, but not registered with D-Bus
|
||||
qRegisterMetaType<UnregisteredType>();
|
||||
@ -970,7 +970,7 @@ void tst_QDBusMarshall::sendCallErrors_data()
|
||||
<< (QVariantList() << QVariant::fromValue(UnregisteredType()))
|
||||
<< "org.freedesktop.DBus.Error.Failed"
|
||||
<< "Marshalling failed: Unregistered type UnregisteredType passed in arguments"
|
||||
<< QString("QDBusMarshaller: type 'UnregisteredType' (%1) is not registered with D-BUS. Use qDBusRegisterMetaType to register it")
|
||||
<< QString("QDBusMarshaller: type 'UnregisteredType' (%1) is not registered with D-Bus. Use qDBusRegisterMetaType to register it")
|
||||
.arg(qMetaTypeId<UnregisteredType>());
|
||||
|
||||
QTest::newRow("invalid-object-path-arg") << serviceName << objectPath << interfaceName << "ping"
|
||||
|
@ -374,21 +374,21 @@ void tst_QDBusMetaType::invalidTypes()
|
||||
{
|
||||
// same test
|
||||
if (qstrcmp(QTest::currentDataTag(), "Invalid0") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid0' produces invalid D-BUS signature '<empty>' (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid0' produces invalid D-Bus signature '<empty>' (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid1") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid1' attempts to redefine basic D-BUS type 's' (QString) (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid1' attempts to redefine basic D-Bus type 's' (QString) (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid2") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid2' attempts to redefine basic D-BUS type 'o' (QDBusObjectPath) (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid2' attempts to redefine basic D-Bus type 'o' (QDBusObjectPath) (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid3") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid3' attempts to redefine basic D-BUS type 'as' (QStringList) (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid3' attempts to redefine basic D-Bus type 'as' (QStringList) (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid4") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid4' attempts to redefine basic D-BUS type 'ay' (QByteArray) (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid4' attempts to redefine basic D-Bus type 'ay' (QByteArray) (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid5") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid5' produces invalid D-BUS signature 'ii' (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid5' produces invalid D-Bus signature 'ii' (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "Invalid7") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid7' produces invalid D-BUS signature '()' (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'Invalid7' produces invalid D-Bus signature '()' (Did you forget to call beginStructure() ?)");
|
||||
else if (qstrcmp(QTest::currentDataTag(), "QList<Invalid0>") == 0)
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'QList<Invalid0>' produces invalid D-BUS signature 'a' (Did you forget to call beginStructure() ?)");
|
||||
QTest::ignoreMessage(QtWarningMsg, "QDBusMarshaller: type 'QList<Invalid0>' produces invalid D-Bus signature 'a' (Did you forget to call beginStructure() ?)");
|
||||
|
||||
staticTypes();
|
||||
staticTypes(); // run twice: the error messages should be printed once only
|
||||
|
Loading…
x
Reference in New Issue
Block a user