summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update dependencies on 'dev' in qt/qtopcuaHEADdevQt Submodule Update Bot2 days1-2/+2
| | | | | Change-Id: Idc5c0c2d57269ed579f1a9c7aae5dbab59c80f97 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot3 days1-2/+2
| | | | | Change-Id: I815c1b645c95cb8dcc4de99f15d01775f46818c4 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot6 days1-2/+2
| | | | | Change-Id: Ia5457fb8e26ab04f3c2ba4b7de4b9073b1c2cc03 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot10 days1-2/+2
| | | | | Change-Id: Ie1a73f2a017b800c89de8ac61f9f28c027065830 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-04-191-2/+2
| | | | | Change-Id: Id162a6e4d968962cd5cf4dda7d8718e9565488ba Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-04-171-2/+2
| | | | | Change-Id: I5977cd9a1407ded24d669052c434beeaaca9797c Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Fix status code handling for monitored itemsJannis Voelker2024-04-085-1/+67
| | | | | | | | | | | | | The DataValue delivered by a data change notification may have a status code. Such a status code should be reported to the node object instead of setting it to Good. [ChangeLog][QOpcUaNode] Report the right status code for monitored item updates Change-Id: I2a62a475fca51eb0a95faef9bcc94037a58277c6 Pick-to: 6.7 6.6 6.5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix ByteString handling in the generic struct handlerJannis Voelker2024-04-081-0/+6
| | | | | | | | | | ByteString fields were not handled correctly and structured types containing such a field failed to encode and decode. Pick-to: 6.7 6.7.0 6.5 Change-Id: I72a9dd0cbabd61930a08826a373fc65956cb7d2d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-04-051-2/+2
| | | | | Change-Id: I2591607e4e0fa9ba9869d01e8c15deb6d17e8830 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Correct license for examples filesLucie Gérard2024-03-268-8/+8
| | | | | | | | | | | | | Example takes precedence over build system file type. According to QUIP-18 [1], all examples file should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Ic439d142d95f673f83d9f8ab2e1564db2aa3fbae Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Correct license for test filesLucie Gérard2024-03-2634-34/+34
| | | | | | | | | | | | According to QUIP-18 [1], all test files should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Ie471cddda8cdb714640c4cbd15ac39c6911280c4 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Add a licenseRule.json file for checking of SPDX license identifiersLucie Gérard2024-03-261-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The license test in qtqa reads this file in order to check the validity of the license used. This file reproduce the QUIP-18 [1] rules, with some exceptions. Each entry in the file corresponds to a set of licensing rules. A set of licensing rules can depend on the file ending, registered in "file_pattern_ending". The last entry in the file has no "file_pattern_ending", it sets the rules for the files whose licensing does not depend on their ending. The license to be used depends on the location of the file within the Qt module repository. Let's call this "<true_location>". The "<true_location>" can also correspond to a file name, offering flexibility for exceptions to the rule. The "<true_location>" are registered in "location". For each "<true_location>" there is a "file type" entry and a "spdx" entry. The "spdx" entry gives the rule: the expected license tag(s) in SPDX format for the file ending (if applicable) and "<true_location>". The "file type" informs on the QUIP-18 type the tested file corresponds to. It is purely informational for the reader. The set of rules are tested in order of appearance in the json file. For this reason, a more constraining ending (like "special.txt") needs to appear in a "file_pattern_ending" located before the "file_pattern_ending" of a less constraining ending (like ".txt"). Also, a file ending cannot be present in two "file_pattern_ending". "file_pattern_ending" and "spdx" should list strings. "<true_location>" can be regular expressions. During the test the deeper "<true_location>" are checked first. The order is which they appear in the json file does not matter. To test this file, run QT_MODULE_TO_TEST=../qtopcua perl tests/prebuild/license/tst_licenses.pl [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121039 Change-Id: I09ba69a01fa59d4ae45eb082dc4875c11564bbe4 Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-03-251-2/+2
| | | | | Change-Id: I258e0b61585ce5f31700c24bd36ec9fb2eb565c6 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Use NO_GENERATE_CPP_EXPORTS explicitlyAlexey Edelev2024-03-251-0/+1
| | | | | | | | | | Use NO_GENERATE_CPP_EXPORTS explicitly for modules that don't need the autogenerated exports header file. Task-number: QTBUG-90492 Change-Id: Ifb79ec05764ebed91e28819f0793eaded5b79a3b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix darwin build with deprecations disabledKai Uwe Broulik2024-03-211-1/+1
| | | | | | | | | QString::SkipEmptyParts has been deprecated in Qt 5.14. Pick-to: 6.7 6.6 6.5 6.2 5.15 Change-Id: I59a46931c241fb05d350f2e83abb96a5a611ecec Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-03-171-2/+2
| | | | | Change-Id: I0296a28252eb0c00852924886814295d520cd1b6 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-03-161-2/+2
| | | | | Change-Id: I58911445ab8060b85b68a0635b5918d9bd4ccc06 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-03-141-2/+2
| | | | | Change-Id: Ib80177ba09943c3dabc3157feeb4bd8bb0bd19f9 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-03-101-2/+2
| | | | | Change-Id: Ia28a2a62eaddd833d5ee15ca9b52348535585629 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Remove convenience and bool traps from the new APIJannis Voelker2024-03-0416-69/+142
| | | | | | | | | The removal of default parameters now permits forward declarations for some of the includes. Pick-to: 6.7 Change-Id: Ie1e2392b7398a628454dead5630ec2505d0d2c6d Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Move BinaryDataEncoding template specializations to source fileJannis Voelker2024-03-048-1458/+1676
| | | | | | | | | | Add forward declarations in qopcuabinarydataencoding.h where applicable. Pick-to: 6.7 Change-Id: Iafb1b00a1434338a55fb54cfa527f52df241a4d3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-03-021-2/+2
| | | | | Change-Id: Iff96953b35e0bc333324d427a95ef5a777696ae5 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Name QOpcUaStructureField SMF parameter to 'other'Juha Vuolle2024-03-012-5/+5
| | | | | | | | | | For consistency, a prevailing convention. Found in API-review. Pick-to: 6.7 Change-Id: I17b6070dba36e487db8ade3f9425591a43e879fd Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Rework newly-added relational operatorsIvan Solovev2024-03-0126-73/+134
| | | | | | | | | | | | | | | Do not export the hidden friend operator==(). Instead create a helper comparesEqual() hidden friend function and export it. This prepares for use of the comparison helper macros. As a drive-by: move the relational operators to the private section. Found in 6.7 API review. Pick-to: 6.7 Change-Id: Id1a813f08bacdcf36417442f0a95774b0a9f7bdb Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Use forward declarations in new headersJannis Voelker2024-02-2926-23/+92
| | | | | | Pick-to: 6.7 Change-Id: I1a433385e19723f34a1e16fe733528ff53bfc98e Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Use QT_OPCUA_REMOVED_SINCE to get rid of the member operator==()Ivan Solovev2024-02-298-29/+94
| | | | | | | | | | | | | | | | | | | And replace them with hidden friends instead. Rather than replacing with a hidden friend operator==(), that would need to be exported as the class (hence its prior operator==() member) is, export a hidden friend comparesEqual() and use this to implement the old member operator. This also simplifies the future migration to using comparison helper macros. As a drive-by: move the friend operators into the private section. Found in 6.7 API review Pick-to: 6.7 Change-Id: Idb0cc0f9b3a240f33e6a6c5844a09386c590276e Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Add QT_NO_DEBUG_STREAM to QOpcUaGenericStructValueJannis Voelker2024-02-292-0/+10
| | | | | | Pick-to: 6.7 Change-Id: I616084d01be173b4bef61eb77d6650953647f8e0 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Swap type and value arguments for QOpcUaVariantJannis Voelker2024-02-294-11/+11
| | | | | | Pick-to: 6.7 Change-Id: I28b720d97e21dbf441f699a1ee716e11ef05281b Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Always add a comma to the last entry of an enumJannis Voelker2024-02-2923-37/+37
| | | | | | Pick-to: 6.7 Change-Id: I17ed482908d50b0f16f695b0b6a61d744f21fd0a Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Fix constructor and destructor for GenericStructHandler and GenericStructValueJannis Voelker2024-02-293-2/+5
| | | | | | Pick-to: 6.7 Change-Id: Id231778d20a5ac034bb6ae8dcd3184c3cc283a11 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Rename QOpcUaGenericStructHandler::initializeFinished to initializedChanged()Jannis Voelker2024-02-296-15/+40
| | | | | | Pick-to: 6.7 Change-Id: I05e5e143eb74b7cd51dcbd6498af5a194ca296c0 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Pass QString, QStringList and QVariant by cref in new signalsJannis Voelker2024-02-294-6/+6
| | | | | | Pick-to: 6.7 Change-Id: I8ceafdbd479519d6e10d69c986d6b0b1918ea4c9 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* tools: silence -Wimplicit-fallthroughTim Blechmann2024-02-291-0/+1
| | | | | | | Pick-to: 6.7 Change-Id: Ie2d797fccd6f6360268943c3aad453fd5b91499a Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* Replace #pragma once with traditional header guardsMarc Mutz2024-02-281-2/+0
| | | | | | | | | | | | | | | | | #pragma once was never allowed for installed headers¹ and syncqt.cpp will now start to enforce this, so port the existing users in this module to traditional header guards. In qopcuagenericstructhandler_p.h, the #pragma was placed alongside a traditional header guard, so just remove it. ¹ https://lists.qt-project.org/pipermail/development/2022-October/043121.html Amends 4992ea8df08b045607e7d502cbcaeee2eb454280. Pick-to: 6.7 Change-Id: I2da5f67795f7f540bdca89e886e406450d1831b5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* DeclarativeOpcUA: Prefix header guards with module nameMarc Mutz2024-02-2813-39/+39
| | | | | | | | | | | We should not export names that are not Q-prefixed. E.g. OPCUANODE_P_H could be in use by any other OpcUA library, too. Amends 6b7950698afa85e76bfe10a36829ec137faa300d. Pick-to: 6.7 6.6 Change-Id: I903c6f434a9c6410abf92406d2b47ee7e9c7dc85 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-02-271-2/+2
| | | | | Change-Id: I6886e328e6fb415c80879219d93a2c2c10a352ce Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-02-231-2/+2
| | | | | Change-Id: Ie604f21e625bd157300c7e8e7bad714560f60795 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Fix compiler warnings from signed/unsigned mismatchesVolker Hilsheimer2024-02-201-2/+2
| | | | | | Pick-to: 6.7 Change-Id: I835488b964142f24e509ed8010fb23e7a53c67f1 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Use std::optional instead of bool to indicate success of de/encodingVolker Hilsheimer2024-02-204-146/+140
| | | | | | | | | | | | | | | QOpcUaGenericStructHandler is a new class in Qt 6.7, and has two functions that return values but might fail. The modern C++ way of doing this is to return a std::optional, rather than return a bool with the value returned through an out-parameter (or a default- constructed value with a boolean out-parameter to indicate success). Found during API review. Pick-to: 6.7 Change-Id: Ib2ba6098f53eccab73beace6844028d0b674ca65 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-02-191-2/+2
| | | | | Change-Id: I5ecf32a29ab628ec629a2ba479001884ca17511f Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Replace "#pragma once" with proper include guardFrank Su2024-02-1613-13/+52
| | | | | | | Fixes: QTBUG-122277 Pick-to: 6.7 6.6 Change-Id: I831401cd63ac564139a4f3c6579dd5a4b3a1efdc Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update bundled open62541 to 1.3.9Jannis Voelker2024-02-134-150/+330
| | | | | | Change-Id: I837c6df6a83cc47442ff62559a9e2b2f1ea0e5f8 Task-number: QTBUG-121342 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-02-111-2/+2
| | | | | Change-Id: I7edb5c68f31d9345945dd41778a19da31e41d9e9 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-02-091-2/+2
| | | | | Change-Id: I98d942225360fbc9cc9f09c11e35a684650e8b18 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-02-071-2/+2
| | | | | Change-Id: Ie33037c7db2ef8f79075a99052d06af5959b6451 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Apply missing changes from the API review 6.6 => 6.7 in qtopcuaRym Bouabid2024-01-311-0/+1
| | | | | | | | | | Explicitly detach() whenever mutating the data. Amends 925ea2eda7778d5e7766e19e6c39a034f436b873 Pick-to: 6.7 Change-Id: I8c40f5b6d3b15e6241d29c1ec7d9b6e842be3fec Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Apply missing changes from the API review 6.6 => 6.7 in qtopcuaRym Bouabid2024-01-314-31/+56
| | | | | | | | | | | | | | Use QExplicitlySharedDataPointer instead of QSharedDataPointer. Explicitly detach() when mutating the data in setters. Add Q_DECLARE_SHARED. Remove Q_DECLARE_METATYPE. Amends 925ea2eda7778d5e7766e19e6c39a034f436b873 and 699de8e31b42f6e009a880bbde79de46ef8e381c Pick-to: 6.7 Change-Id: Ie6344280afb1e42e1ec18b9451b911b5f6e448de Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* Fix race condition in tst_clientSetupInCppJannis Voelker2024-01-301-0/+5
| | | | | | | | | | If the client is not deleted before the destructor of the class registered for QML returns, a qDebug call from inside the client causes a segfault. Pick-to: 6.7 6.6 Change-Id: Idf26d0127103e9a30773bcbca3bddc4755b57cfa Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix segfault during connect test shutdownJannis Voelker2024-01-302-0/+11
| | | | | | | | | This change ensures that all asynchronous backend activity is stopped before the destructor returns. Change-Id: I16d34027e41e5658a771ae099c9a7b027d765e86 Pick-to: 6.7 6.6 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update dependencies on 'dev' in qt/qtopcuaQt Submodule Update Bot2024-01-261-1/+1
| | | | | Change-Id: Ic4564d4af85ac612af5f15f3b6e765bf145a69d3 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>