aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add XEP-0353: Jingle Message Initiation data classesTibor Csötönyi2023-05-141-0/+35
|
* EME: Always send encryption name as fallbackMelvin Keskin2023-03-131-1/+1
| | | | | | | Since QXmpp does not differentiate between different EME versions receiving clients support, it is better to always send the encryption name. It ensures that a name is displayed by the receiving client even if it does not support the latest EME version introducing a new encryption.
* Implement XEP-0444: Message Reactions (#492)Melvin Keskin2022-10-161-0/+42
| | | https://xmpp.org/extensions/xep-0444.html
* Rename Encryption to EncryptionMethod to avoid conflicts with namespaceLinus Jahn2022-09-291-2/+2
| | | | | There's QXmpp::Private::Encryption. This renames QXmpp::Encryption to QXmpp::EncryptionMethod to avoid conflicts.
* Allow adding multiple oob urls and a descriptionJonah Brüchert2022-09-281-9/+37
|
* Implement XEP-0447: Stateless file sharing: File sharing element (#448)Linus Jahn2022-09-131-0/+37
| | | | | | | | Implements parsing for the file sharing element from XEP-0447: Stateless files sharing version 0.2. https://xmpp.org/extensions/xep-0447.html Co-authored-by: Jonah Brüchert <jbb@kaidan.im>
* Reformat codeLinus Jahn2022-09-061-12/+23
|
* Message: Add isCarbonForwarded attributeLinus Jahn2022-08-141-0/+24
| | | | | It's now also possible to see which messages were carbon forwarded when using the CarbonManagerV2.
* Implement XEP-0384: OMEMO Encryption v0.8Melvin Keskin2022-08-131-2/+12
| | | | | | | | | | | | | | | This implements XEP-0384 in version v0.8 with a manager and storage classes to be user-implemented for persistant storage. The license of the code is LGPL-2.1-or-later as usual. However since libomemo-c (libsignal-protocol-c) is GPL-3.0, the built binary is always licensed under GPL-3.0. Having our code LGPL licensed will make it avoids relicensing in the future in case we port it to an LGPL compatible omemo library. Closes #133. Co-authored-by: Linus Jahn <lnj@kaidan.im>
* Add move constructors and move assignment operators everywhereLinus Jahn2022-06-181-5/+5
| | | | | This is so std::move() on implicitly-shared types actually moves the content and doesn't call the copy ctor/assignment operator.
* Message: Add parseExtensions() for parsing additional extensionsMelvin Keskin2022-06-141-14/+25
| | | | Useful for encryption when parsing decrypted elements.
* Message: Initialize message type directly as 'chat'Melvin Keskin2022-06-141-2/+1
| | | | | | | | Previously the type had been set to Normal first and then to Chat. There's no change in behviour. The changes to the unit test qxmppomemodata are just for consistency. Signed-off-by: Linus Jahn <lnj@kaidan.im>
* Message: Do not allow XEP-0184 request and received element togetherMelvin Keskin2022-05-121-2/+4
|
* Message: Apply clang-formatMelvin Keskin2022-04-201-1/+1
|
* Make OMEMO data classes privateMelvin Keskin2022-04-071-1/+2
|
* Message: Move encryption namespace parsing into Global privateLinus Jahn2022-04-061-30/+6
|
* Message: Replace QXmppMessage::EncryptionMethod with QXmpp::EncryptionMelvin Keskin2022-04-061-5/+5
|
* Message: Add end-to-end encryption fallback bodyMelvin Keskin2022-03-171-0/+40
|
* Merge branch '1.4'Linus Jahn2022-03-161-1/+3
|\
| * Message: Processing Hints: Fix UB when parsing unknown hintLinus Jahn2022-03-161-1/+3
| |
* | Message: Use null string instead of empty QStringLiteral("")Linus Jahn2022-03-131-1/+1
| |
* | Add QXmppE2eeMetadata used by QXmppStanzaMelvin Keskin2022-03-031-41/+0
| | | | | | | | | | | | 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-25/+6
| |
* | Update copyright years (2022 edition)Linus Jahn2022-01-091-1/+1
| |
* | XEP-0380: Add new encryptions (#384)Melvin Keskin2021-12-191-2/+6
| | | | | | Updates to version 0.4.
* | Update to OMEMO 0.8, TM 0.6 and ATM 0.4Melvin Keskin2021-10-101-3/+4
| | | | | | | | | | | | * OMEMO has namespace 'urn:xmpp:omemo:2' and uses SCE 0.4 now * TM has namespace 'urn:xmpp:tm:1' and uses Base64 for key identifiers * ATM uses Base64 for key identifiers
* | Implement stanza parsing for Stanza Content EncryptionLinus Jahn2021-09-281-317/+404
| |
* | Add QXmppAtmManagerMelvin Keskin2021-09-161-0/+39
| |
* | Add QXmppOmemoElementMelvin Keskin2021-09-031-0/+34
| | | | | | | | Co-authored-by: Germán Márquez Mejía <mancho@olomono.de>
* | Add QXmppTrustMessageElementMelvin Keskin2021-07-061-0/+35
| |
* | Refactor QXmppMessage to support parsing with inheritanceLinus Jahn2021-07-011-149/+157
|/ | | | Required for PubSub event notifications with templates.
* Replace qAsConst by std::as_constLinus Jahn2021-03-171-1/+1
|
* Implement MIX-MISC XEP-0407: Invitation message extension (#329)Melvin Keskin2021-03-081-0/+40
| | | | | | | This implements the message extension for MIX invitations from XEP-0407: Mediated Information eXchange (MIX): Miscellaneous Capabilities in version 0.1.2. https://xmpp.org/extensions/xep-0407.html#usecase-user-invite
* Update copyright headers to 2021Linus Jahn2021-02-191-1/+1
|
* Add \since tags for QXmpp 1.0 everywhereLinus Jahn2020-04-061-1/+4
|
* Clean up QXmppMessageLinus Jahn2020-04-061-292/+410
|
* QXmppMessage: Add parent thread attribute from RFC6121Linus Jahn2020-04-051-3/+34
| | | | | | The 'parent' attribute for <thread/> element in messages has been introduced in RFC6121. This commit adds parsing and serialization for it, including unit tests.
* Implement XEP-0245: The /me CommandLinus Jahn2020-03-311-0/+60
| | | | | | | This adds parsing for recognizing /me commands in message bodies. It complies with version 1.0 of XEP-0245: The /me Command. https://xmpp.org/extensions/xep-0245.html
* Expand QSL and QBLJonah Brüchert2020-03-291-112/+112
| | | | So they don't leak into the public API
* Reformat codeJonah Brüchert2020-03-281-1/+1
|
* base: Convert to QStringLiteralJonah Brüchert2020-03-281-112/+112
| | | | | | Two new macros were added: * QBL (short alias for QByteArrayLiteral) * QSL (short alias for QStringLiteral)
* doc: Use XEP links everywhereLinus Jahn2020-02-111-47/+47
|
* Implement XEP-0359: Unique and Stable Stanza IDsLinus Jahn2020-02-111-1/+95
| | | | | This adds support of XEP-0359: Unique and Stable Stanza IDs in version 0.6.0.
* Implement XEP-0428: Fallback IndicationLinus Jahn2020-02-101-1/+43
| | | | | | This adds support of XEP-0428: Fallback Indication in version 0.1.0. https://xmpp.org/extensions/xep-0428.html
* Run clang-format also on all cpp filesLinus Jahn2020-02-031-34/+28
|
* clang-format: Enable regrouping and sorting of includesLinus Jahn2020-02-031-5/+6
|
* Replace manual xmlns writing by writeDefaultNamespace()Linus Jahn2020-01-291-19/+19
| | | | | | | This is the result of: sed -i 's/writeAttribute("xmlns", /writeDefaultNamespace(/g' \ $(find . -iname "*.cpp" -or -iname "*.h")
* Bump copyright year to 2020Linus Jahn2020-01-061-1/+1
|
* Implement XEP-0231: Bits of Binary: message extensionLinus Jahn2019-12-061-0/+44
| | | | This adds support for XEP-0231: Bits of Binary attachments in messages.
* Add \since QXmpp 1.1 to all new methods and classesLinus Jahn2019-10-231-0/+40
| | | | Methods of new classes have no \since tag.