qt6-bb10/src/dbus
Thiago Macieira ed6d1fa71a QDBusSignature: accept empty strings as valid
QDBusSignature holds a D-Bus value of type SIGNATURE, which is zero or
more signatures, not one or more. This changes the default constructor
to create a valid signature, which we denote by not being a null
QString. That means we need to use something other than the default
constructor in our tests for attempting to pass invalid signatures.

[ChangeLog][QtDBus][QDBusSignature] Fixed a bug that caused the class
not to accept an empty string as a valid D-Bus SIGNATURE value.

Fixes: QTBUG-124919
Pick-to: 6.5 6.7
Change-Id: I262c3499666e4f4fbcfbfffd17cb3793dcf2eae3
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2024-05-10 13:17:20 -07:00
..
doc Correct doc snippet license 2024-02-28 19:15:51 +01:00
CMakeLists.txt Long live [[nodiscard]] QFile::open 2024-04-17 20:07:47 +02:00
LIBDBUS-1-LICENSE.txt Document libdbus-1 code in Qt D-Bus 2018-04-20 06:45:12 +00:00
Qt6DBusMacros.cmake Remove the Unnecessary CMake Module, `include(CMakeParseArguments)` 2022-10-25 20:14:35 +02:00
dbus_minimal_p.h dbus_minimal_p.h: copy the libdbus-1 copyright to the top 2022-10-10 11:19:55 -07:00
qdbus_symbols.cpp qdbus_symbols: Make major version list contexpr 2023-09-12 16:21:20 +02:00
qdbus_symbols_p.h QtDBus: Resolve libdbus functions in a thread-safe way 2023-09-14 11:50:28 +02:00
qdbusabstractadaptor.cpp QDBusAbstractAdaptor: Assert that the parent is not null 2023-11-29 15:53:13 +01:00
qdbusabstractadaptor.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusabstractadaptor_p.h Remove more unused qreadwritelock.h includes 2022-05-17 18:49:31 +02:00
qdbusabstractinterface.cpp Doc: Resolve qdoc link warnings 2024-02-14 21:47:28 +01:00
qdbusabstractinterface.h Implement QDBusAbstractInterface::setInteractiveAuthorizationAllowed 2023-11-07 19:49:34 +00:00
qdbusabstractinterface_p.h Implement QDBusAbstractInterface::setInteractiveAuthorizationAllowed 2023-11-07 19:49:34 +00:00
qdbusargument.cpp QDBusArgumentPrivate: Specify direction as argument to constructor 2023-09-14 11:50:24 +02:00
qdbusargument.h QtDBus: port away from QPair 2023-12-14 20:29:45 +01:00
qdbusargument_p.h QDBusArgumentPrivate: Disable copy and move, make constructor protected 2023-09-14 11:50:46 +02:00
qdbusconnection.cpp QDBus: Document that calls to local objects are never asynchronous 2023-12-07 22:56:30 +01:00
qdbusconnection.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusconnection_p.h QDBusConnection: Print error from prepareHook 2023-09-17 23:39:04 +02:00
qdbusconnectioninterface.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusconnectioninterface.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusconnectionmanager.cpp QDBusConnectionPrivate: Close connection after failed q_dbus_bus_register() 2023-12-07 23:36:15 +01:00
qdbusconnectionmanager_p.h QtDBus: Use invokeMethod accepting member functions with arguments 2023-08-26 17:24:19 +02:00
qdbuscontext.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbuscontext.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbuscontext_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusdemarshaller.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbuserror.cpp QDBusError: don't refer to a QT_NAMESPACE'ed get() as ::get() 2023-03-05 21:57:21 +01:00
qdbuserror.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusextratypes.cpp QDBusSignature: accept empty strings as valid 2024-05-10 13:17:20 -07:00
qdbusextratypes.h QDBusSignature: accept empty strings as valid 2024-05-10 13:17:20 -07:00
qdbusintegrator.cpp QTimer/QObject::startTimer: improve the detection of overflow 2024-04-27 16:24:42 +00:00
qdbusintegrator_p.h QDBus: Use type-safe object tree node flags 2023-09-11 00:32:40 +02:00
qdbusinterface.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusinterface.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusinterface_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusinternalfilters.cpp QDBus: Make QObject * argument to generateSubObjectXml() const 2023-08-10 19:45:51 +02:00
qdbusintrospection.cpp QDBusIntrospection: make DiagnosticsReporter safe to use 2024-02-22 16:57:17 +01:00
qdbusintrospection_p.h QDBusIntrospection: make DiagnosticsReporter safe to use 2024-02-22 16:57:17 +01:00
qdbusmarshaller.cpp QDBusSignature: accept empty strings as valid 2024-05-10 13:17:20 -07:00
qdbusmessage.cpp Doc: Improve documentation around setting ALLOW_INTERACTIVE_AUTHORIZATION in D-Bus 2024-01-16 12:47:16 +01:00
qdbusmessage.h QDBusMessage: make private ctor explicit 2024-01-10 08:14:31 +01:00
qdbusmessage_p.h Remove the DBusMessage* members from QDBusMessagePrivate 2023-12-01 14:06:03 +01:00
qdbusmetaobject.cpp Revert "QDbus: Avoid memory leak in registerComplexDBusType" 2023-08-11 22:30:30 +02:00
qdbusmetaobject_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusmetatype.cpp Doc: Fix \fn template arguments for Qt DBus 2023-11-18 13:02:01 +01:00
qdbusmetatype.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusmetatype_p.h qdbuscpp2xml: Register QtDBus metatypes 2023-11-28 13:37:56 +01:00
qdbusmisc.cpp QtDBus: Use explicitly meta type name instead of method type 2023-10-23 21:58:23 +02:00
qdbuspendingcall.cpp QDBusConnectionPrivate: Fix race in sendWithReply() 2023-09-22 21:02:45 +02:00
qdbuspendingcall.h QDBusPendingCall: Remove private slot 2023-08-28 22:03:02 +02:00
qdbuspendingcall_p.h QDBusConnectionPrivate: Fix race in sendWithReply() 2023-09-22 21:02:45 +02:00
qdbuspendingreply.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbuspendingreply.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qdbusreply.cpp Doc: Add missing return type to QDBusReply::value 2023-10-13 18:00:37 +02:00
qdbusreply.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusserver.cpp QDBusServer: Remove private slot 2023-08-28 22:03:03 +02:00
qdbusserver.h QDBusServer: Remove private slot 2023-08-28 22:03:03 +02:00
qdbusservicewatcher.cpp QDBusServiceWatcher: fix binding loops 2023-09-03 18:21:18 +02:00
qdbusservicewatcher.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusthreaddebug_p.h Mark all remaining RAII/smart pointer class ctors [[nodiscard]] 2023-06-22 16:20:10 +00:00
qdbusunixfiledescriptor.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusunixfiledescriptor.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusutil.cpp QDBusSignature: accept empty strings as valid 2024-05-10 13:17:20 -07:00
qdbusutil_p.h Remove perl related functionality from CMake files 2022-11-29 12:35:47 +01:00
qdbusvirtualobject.cpp Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qdbusvirtualobject.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdbusxmlgenerator.cpp QDBus: Remove commented out code 2023-06-20 15:39:14 +02:00
qdbusxmlparser.cpp QDBusXmlParser: downgrade property name mismatches to warnings 2023-08-01 21:52:55 -07:00
qdbusxmlparser_p.h QDBus: Add diagnostics reporting interface 2023-07-06 21:51:08 +02:00
qt_attribution.json Modify copyright format in qt_attribution.json 2023-10-23 17:42:45 +00:00
qtdbusglobal.h Do not generate the deprecated 'QtDBus/qdbusmacros.h' 2023-07-06 21:22:43 +02:00
qtdbusglobal_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00