aboutsummaryrefslogtreecommitdiff
path: root/src/base
Commit message (Collapse)AuthorAgeFilesLines
...
* | Utils_p: Add functions to generate random QByteArrayLinus Jahn2022-08-132-0/+89
| | | | | | | | Co-authored-by: Melvin Keskin <melvo@olomono.de>
* | FutureUtils: Add mapSuccess() to map success type of variantsLinus Jahn2022-08-131-0/+15
| |
* | FutureUtils: chain: Pass future as const&Linus Jahn2022-08-081-1/+1
| | | | | | | | | | The move overload hasn't any advantages here as the QFutureWatcher also takes QFuture const &.
* | Stanza: Move E2eeMetadata into own header fileLinus Jahn2022-07-113-32/+47
| |
* | Rename Encryption::Omemo to Omemo0 to allow namespace OmemoLinus Jahn2022-07-102-4/+4
| | | | | | | | Allows it to create a namespace QXmpp::Omemo.
* | ByteStreamIq: Fix uninitialized enum valueLinus Jahn2022-07-101-1/+1
| |
* | Add move constructors and move assignment operators everywhereLinus Jahn2022-06-1864-237/+318
| | | | | | | | | | This is so std::move() on implicitly-shared types actually moves the content and doesn't call the copy ctor/assignment operator.
* | StreamFeatures: Fix rosterVersioning not initializedLinus Jahn2022-06-171-1/+2
| |
* | Adapt clang-formatLinus Jahn2022-06-176-6/+6
| |
* | Add QXmppOmemoDeviceBundleItem and QXmppOmemoDeviceListItemMelvin Keskin2022-06-142-0/+95
| |
* | Message: Add parseExtensions() for parsing additional extensionsMelvin Keskin2022-06-142-14/+26
| | | | | | | | Useful for encryption when parsing decrypted elements.
* | Iq: Make de- / serialization methods public to allow encryptionMelvin Keskin2022-06-141-1/+0
| | | | | | | | | | This is required for allowing arbitrary managers to only serialize the inner element for encryption.
* | 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>
* | Add generic QXmppExtensionLinus Jahn2022-05-201-0/+14
| |
* | Stanza: Refactor storage of optional e2ee metadataLinus Jahn2022-05-132-27/+20
| |
* | Message: Do not allow XEP-0184 request and received element togetherMelvin Keskin2022-05-121-2/+4
| |
* | Message: Apply clang-formatMelvin Keskin2022-04-202-3/+3
| |
* | Constants: Add more PubSub namespacesMelvin Keskin2022-04-092-0/+18
| |
* | Global: Fix undocumented warning on private functionsLinus Jahn2022-04-081-0/+2
| |
* | OmemoData: Apply consistent 'const' usageMelvin Keskin2022-04-071-7/+7
| |
* | Make OMEMO data classes privateMelvin Keskin2022-04-078-284/+83
| |
* | doc: OmemoData: Replace '2^32-1' with std::numeric_limitsMelvin Keskin2022-04-071-5/+10
| |
* | OmemoDeviceBundle: Use methods for adding / removing public pre keysMelvin Keskin2022-04-072-14/+19
| |
* | OmemoDeviceBundle: Use QHash instead of QMap for public pre keysMelvin Keskin2022-04-072-4/+4
| |
* | Add QXmppOmemoIqMelvin Keskin2022-04-072-0/+87
| | | | | | | | The IQ is only used internally and is private.
* | Message: Move encryption namespace parsing into Global privateLinus Jahn2022-04-064-30/+78
| |
* | Message: Replace QXmppMessage::EncryptionMethod with QXmpp::EncryptionMelvin Keskin2022-04-062-25/+20
| |
* | E2eeMetadata: Add enum and attribute for the used encryptionMelvin Keskin2022-04-063-0/+69
| |
* | 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.
* | BuildConstants: Move non-build dependant constants into Global.hLinus Jahn2022-04-052-76/+76
| | | | | | | | Co-authored-by: Melvin Keskin <melvo@olomono.de>
* | Rename QXmppGlobal to QXmppBuildConstantsLinus Jahn2022-04-052-3/+15
| | | | | | | | | | | | | | | | Plan is to split up Global into build constants and other globals. This avoids hassle when editing QXmppGlobal. With IDEs it can easily happen that you edit the wrong file from the build dir instead the `.h.in`. Co-authored-by: Melvin Keskin <melvo@olomono.de>
* | Message: Add end-to-end encryption fallback bodyMelvin Keskin2022-03-172-0/+43
| |
* | Merge branch '1.4'Linus Jahn2022-03-164-7/+18
|\|
| * StartTlsPacket: Fix UB when parsing invalid typeLinus Jahn2022-03-162-5/+12
| |
| * Message: Processing Hints: Fix UB when parsing unknown hintLinus Jahn2022-03-161-1/+3
| |
| * MixIq: Fix UB when parsing invalid action typeLinus Jahn2022-03-161-1/+3
| |
* | Use qDeleteAll()Linus Jahn2022-03-131-2/+1
| |
* | Stun: Use QString multi-argLinus Jahn2022-03-131-2/+1
| |
* | Message: Use null string instead of empty QStringLiteral("")Linus Jahn2022-03-131-1/+1
| |
* | Avoid creating temporary containers with keys()/values()Linus Jahn2022-03-133-14/+14
| |
* | JingleIq: Reuse QRegularExpressionLinus Jahn2022-03-131-1/+3
| | | | | | | | It's thread_local because QRegularExpression is not thread-safe.
* | Split with char instead of string when possibleLinus Jahn2022-03-132-3/+3
| | | | | | | | Saves constructing the QString and makes the splitting faster.
* | Remove unused non-trivial variablesLinus Jahn2022-03-132-3/+0
| | | | | | | | | | Many unused QString/QByteArray not recognized as such by normal compiler warnings.
* | Fix possibly detaching containersLinus Jahn2022-03-134-31/+52
| |
* | Stanza::Error: Add optional overloads for Condition/TypeLinus Jahn2022-03-122-2/+60
| | | | | | | | | | | | 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: Use more QStringLiteral()Linus Jahn2022-03-121-23/+23
| |
* | Stanza_p.h: Move function definitions into Stanza.cppLinus Jahn2022-03-123-138/+156
| | | | | | | | | | This way the function definition is shared and it avoids unused function warnings in QXmppStreamManagement.cpp.
* | Rename MixItem.h to MixItems.hLinus Jahn2022-03-101-0/+0
| |
* | Split up MixItem.h into Mix{Info,Participant}Item.hLinus Jahn2022-03-103-33/+44
| |
* | QXmppDataFormBase: Use serializeNullable in toDataForm()Linus Jahn2022-03-101-5/+1
| |