aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppStanza.h
Commit message (Collapse)AuthorAgeFilesLines
* StanzaError: Remove optional getter/settters for type/conditionLinus Jahn2022-12-291-4/+0
| | | | | | | 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.
* Stanza: Make error optionalLinus Jahn2022-12-291-0/+7
| | | | Closes #512.
* StanzaError: Add NoType and NoCondition for -1 valuesLinus Jahn2022-12-281-0/+2
| | | | | | | | Previsously static_cast<QXmppStanza::Error::Condition>(-1) was used when no condition was set (or type). This adds real enum values with that integer value to avoid undefined behaviour. Fixes #495.
* Stanza: Move E2eeMetadata into own header fileLinus Jahn2022-07-111-32/+1
|
* Add move constructors and move assignment operators everywhereLinus Jahn2022-06-181-0/+8
| | | | | This is so std::move() on implicitly-shared types actually moves the content and doesn't call the copy ctor/assignment operator.
* Stanza: Refactor storage of optional e2ee metadataLinus Jahn2022-05-131-6/+3
|
* E2eeMetadata: Add enum and attribute for the used encryptionMelvin Keskin2022-04-061-0/+3
|
* Stanza: Remove unused include (#416)Melvin Keskin2022-04-051-1/+0
| | | This can only be done since QString is already included through other header files.
* Stanza::Error: Add optional overloads for Condition/TypeLinus Jahn2022-03-121-2/+7
| | | | | | Currently Condition(-1)/Type(-1) is used for an unset error. This should be deprecated and replaced by the new optional<Condition/Type> functions.
* Stanza: Make E2eeMetadata optional to avoid allocationLinus Jahn2022-03-031-2/+12
| | | | | | | | | | | 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/+26
| | | | | | That class contains addtional data needed for end-to-end encryption purposes. 'senderKey' is moved from QXmppMessage to QXmppE2eeMetadata. 'sceTimestamp' is introduced.
* Convert copyright headers to REUSELinus Jahn2022-01-141-24/+5
|
* Update copyright years (2022 edition)Linus Jahn2022-01-091-1/+1
|
* Implement stanza parsing for Stanza Content EncryptionLinus Jahn2021-09-281-1/+1
|
* Make QXmppStanza inherit from QXmppNonzaLinus Jahn2021-08-261-5/+3
| | | | | QXmppNonzas are basic elements which can be sent over XMPP streams. QXmppStanza is a specialization of that (IQ, message or presence).
* tests: Add TestClient class for client testing with QFuturesLinus Jahn2021-07-061-0/+1
|
* Update copyright headers to 2021Linus Jahn2021-02-191-1/+1
|
* QXmppStanza::Error: Use std::optional<> internallyLinus Jahn2020-07-121-6/+0
| | | | | | | | | This makes the variables for the error type and condition an std::optional<> as this makes the meaning clearer than hidden -1 values created by dubious casts. For now, the API is not changed, because we can't replace the getter easily. We could do something like type() and optionalType().
* QXmppStanza::Error: Add 'by' attribute from RFC6120Linus Jahn2020-04-041-0/+3
| | | | | This adds parsing and serialization and unit tests for the by attribute for QXmppStanza::Errors. The protocol is defined in RFC6120.
* Fix build with Qt 5.14Linus Jahn2020-04-011-1/+1
| | | | | | | Q_DEPRECATED_X() can't be used on enum values anymore. The new Q_DECL_ENUMERATOR_DEPRECATED_X() can be uesd instead, this is only available since Qt 5.12, so I needed to define an empty fallback for it.
* Add missing optional exclude to deprecated PaymentRequiredLinus Jahn2020-04-011-13/+14
|
* QXmppStanza::Error: Add redirection URI from RFC6120Linus Jahn2020-04-011-2/+5
| | | | | The error conditions <gone/> and <redirect/> can contain an XMPP URI to redirect to as defined in RFC6120.
* QXmppStanza: Add PolicyViolation error conditionLinus Jahn2020-03-311-1/+5
| | | | The error condition as stanza error was added in RFC6120.
* Deprecate PaymentRequired error conditionLinus Jahn2020-03-311-1/+4
| | | | | The <payment-required/> error condition was not adopted in RFC6120 as it was unused.
* Reformat codeJonah Brüchert2020-03-281-27/+27
|
* doc: Use XEP links everywhereLinus Jahn2020-02-111-5/+8
|
* Fix missing documentation for for QXmppStanza::ErrorLinus Jahn2020-02-041-27/+32
|
* Fix doxygen warnings about missing titles for \defgroupLinus Jahn2020-02-041-2/+8
|
* clang-format: Enable regrouping and sorting of includesLinus Jahn2020-02-031-3/+3
|
* Fix that no documentation is generated for QXmppStanza::ErrorLinus Jahn2020-02-021-0/+3
|
* Bump copyright year to 2020Linus Jahn2020-01-061-1/+1
|
* Add a .clang-format somewhat close to the current style0xd34df00d2019-12-231-21/+18
|
* Implement XEP-0363: HTTP File Upload: Error casesLinus Jahn2019-10-201-0/+10
| | | | | This extends the QXmppStanza::Error by the error cases defined in XEP-0363: HTTP File Upload in version 0.9.0.
* QXmppStanza::Error: Use d-pointer to maintain binary compat in futureLinus Jahn2019-10-201-4/+6
|
* Bump copyright year to 2019Jeremy Lainé2019-01-081-1/+1
|
* Implement XEP-0198: Stream Management (client only) (#99)Niels Ole Salscheider2017-02-121-0/+2
| | | | | | | | | | | | | | * Some features can be available with different namespaces (e.g. SM) * Provide static functions to convert between strings and stream errors Stream management will reuse this for <failed />. * [travis] test builds using clang * Implement XEP-0198: Stream Management (client only) * QXmppOutgoingClient: Move private methods to QXmppOutgoingClientPrivate
* clean up support for 'bad-auth' replies, see #36Jeremy Lainé2015-02-251-2/+1
|
* Handle `bad-auth` auth replies, closes #36.0xd34df00d2015-01-281-1/+2
|
* Use QString() instead of "" for default methods argumentsJeremy Lainé2014-03-281-2/+2
|
* 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
|
* add extended addresses to QXmppMessage and QXmppPresenceJeremy Lainé2012-09-031-1/+1
|
* make QXmppStanza::toXmlElementFromChild protectedJeremy Lainé2012-09-031-1/+1
|
* add "extendedAddresses" to QXmppStanzaJeremy Lainé2012-09-031-0/+4
|
* improve docsJeremy Lainé2012-09-031-5/+4
|
* make QXmppExtendedAddress::toXml constJeremy Lainé2012-09-031-1/+1
|
* add QXmppExtendedAddressJeremy Lainé2012-09-031-1/+44
|
* make QXmppStanza use implicit data sharingJeremy Lainé2012-07-211-6/+7
|
* update copyright yearJeremy Lainé2012-07-181-1/+1
|