aboutsummaryrefslogtreecommitdiff
path: root/tests/qxmppstanza/tst_qxmppstanza.cpp
Commit message (Collapse)AuthorAgeFilesLines
* StanzaError: Remove optional getter/settters for type/conditionLinus Jahn2022-12-291-6/+5
| | | | | | | The whole QXmppStanza::Error is now used optionally in QXmppStanza, so type and condition of the error don't need to be optionals as well. Part of #512.
* Disable Qt keywords completelyLinus Jahn2022-12-261-13/+13
| | | | | | | | | | | | | | | Previously we had the policy that no qt keywords were allowed in headers that may be included by users. However since there was no automatic test verifying that in some places keywords were still used. This now disables qt keywords completely, also in tests and examples. Qt keywords are in general no good or really good idea as they even conflict with the standard library (`emit` at least). In some cases in the examples I just removed the slot tag if the functions didn't need to be slots (anymore). Closes #503.
* Stanza: Move E2eeMetadata into own header fileLinus Jahn2022-07-111-0/+2
|
* E2eeMetadata: Add enum and attribute for the used encryptionMelvin Keskin2022-04-061-0/+11
|
* tests: stanza: Fix unused parameter warningLinus Jahn2022-03-171-1/+1
|
* Stanza::Error: Add optional overloads for Condition/TypeLinus Jahn2022-03-121-0/+18
| | | | | | Currently Condition(-1)/Type(-1) is used for an unset error. This should be deprecated and replaced by the new optional<Condition/Type> functions.
* tests: E2eeMetadata: Workaround compile error with clang 13Linus Jahn2022-03-121-14/+10
|
* Stanza: Make E2eeMetadata optional to avoid allocationLinus Jahn2022-03-031-6/+10
| | | | | | | | | | | Avoids an allocation of the E2eeMetadataPrivate object when it's not used. It doesn't use optional<E2eeMetadata> directly because that wouldn't avoid the allocation and takes up 16 bytes instead of 8. This concept could be generalized and used elsewhere in the code (e.g. extended addresses in the stanza are unused 99% of the time).
* Add QXmppE2eeMetadata used by QXmppStanzaMelvin Keskin2022-03-031-0/+32
| | | | | | That class contains addtional data needed for end-to-end encryption purposes. 'senderKey' is moved from QXmppMessage to QXmppE2eeMetadata. 'sceTimestamp' is introduced.
* Run 'clang-format' on all filesMelvin Keskin2022-01-151-12/+12
|
* Convert copyright headers to REUSELinus Jahn2022-01-141-22/+3
|
* Update copyright years (2022 edition)Linus Jahn2022-01-091-1/+1
|
* Update copyright headers to 2021Linus Jahn2021-02-191-1/+1
|
* QXmppStanza::Error: Add 'by' attribute from RFC6120Linus Jahn2020-04-041-8/+34
| | | | | This adds parsing and serialization and unit tests for the by attribute for QXmppStanza::Errors. The protocol is defined in RFC6120.
* QXmppStanza::Error: Add redirection URI from RFC6120Linus Jahn2020-04-011-8/+63
| | | | | The error conditions <gone/> and <redirect/> can contain an XMPP URI to redirect to as defined in RFC6120.
* Add tests for QXmppStanza::Error parsingLinus Jahn2020-03-311-0/+169
|
* Run clang-format also on all cpp filesLinus Jahn2020-02-031-22/+19
|
* clang-format: Enable regrouping and sorting of includesLinus Jahn2020-02-031-1/+2
|
* Bump copyright year to 2020Linus Jahn2020-01-061-1/+1
|
* Use raw literals, range based loops and autoJonah Brüchert2019-10-221-2/+2
|
* Implement XEP-0363: HTTP File Upload: Error casesLinus Jahn2019-10-201-0/+69
| | | | | This extends the QXmppStanza::Error by the error cases defined in XEP-0363: HTTP File Upload in version 0.9.0.
* Bump copyright year to 2019Jeremy Lainé2019-01-081-1/+1
|
* update project homepageJeremy Lainé2014-03-281-1/+1
|
* update project homepageJeremy Lainé2014-03-271-1/+1
|
* update copyright notice to 2008-2014Jeremy Lainé2014-03-261-1/+1
|
* split QXmppStanza tests outJeremy Lainé2012-09-271-0/+78