aboutsummaryrefslogtreecommitdiff
path: root/src/base
Commit message (Collapse)AuthorAgeFilesLines
* JingleData: Fix doxygen warningsLinus Jahn2023-05-142-8/+3
|
* Jingle: Remove namespaceUri attributeLinus Jahn2023-05-142-32/+1
|
* Code review fixesTibor Csötönyi2023-05-143-11/+84
|
* Rename QXmppJingleIq.cpp/h to QXmppJingleData.cpp/h and testTibor Csötönyi2023-05-142-1/+1
|
* Add XEP-0353: Jingle Message Initiation data classesTibor Csötönyi2023-05-146-1/+370
|
* Extract JingleIq::Reason to own class and add serialization for JMITibor Csötönyi2023-05-142-92/+142
| | | | Reason class will be used by JingleMessageInitiationElement as well
* Extract JingleIq::Description to own classTibor Csötönyi2023-05-142-67/+191
| | | | Description will be used by JingleMessageInitiationElement as well
* Replace some while loops over QDomElementsLinus Jahn2023-05-136-30/+32
|
* Merge branch '1.5'Linus Jahn2023-04-072-3/+3
|\
| * Fix missing exports with MSVC 2019Jonah Brüchert2023-03-182-3/+3
| | | | | | | | | | | | | | Fixes the Kaidan build with MSVC. Weirdly enough, MSVC got confused on finding the matching overload for <<, so I replaced it with push_back().
* | Merge branch '1.5'Linus Jahn2023-03-173-7/+15
|\|
| * Stream: IQ handling: Accept responses without 'from' attribute (#556)Melvin Keskin2023-03-171-3/+11
| | | | | | | | See https://xmpp.org/rfcs/rfc6120.html#stanzas-attributes-from-c2s point 3
| * Client: Don't fill empty 'to' attributes of outgoing IQsLinus Jahn2023-03-142-3/+3
| |
| * 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.
* | Merge branch '1.5'Linus Jahn2023-03-112-3/+5
|\|
| * Run clang-formatLinus Jahn2023-03-112-3/+5
| |
* | Merge branch '1.5'Linus Jahn2023-03-1119-68/+468
|\|
| * PubSubIq_p: Rename Private class to avoid conflictsLinus Jahn2023-03-092-4/+9
| |
| * Readd old PubSubIq and PubSubItem for compatibilityLinus Jahn2023-03-094-0/+394
| | | | | | | | | | There is at least one package that actually uses this API and this way QXmpp 1.5 can be easily adopted.
| * Rename PubSubItem -> PubSubBaseItem to be able to include old PubSubItemLinus Jahn2023-03-0911-59/+56
| |
| * SaslDigestMd5: Fix UB when at the end of input byte array [Qt6 only]Linus Jahn2023-03-091-2/+6
| | | | | | | | | | | | Also adds a unit test. Fixes #541.
| * Organize OMEMO includesMelvin Keskin2023-03-091-1/+1
| |
| * Fix compilation on MSVC 2019Jonah Brüchert2023-03-091-2/+2
| |
* | Implement XEP-0215: External Service Discovery (#542)taiBsu2023-03-095-0/+576
| | | | | | Implements https://xmpp.org/extensions/xep-0215.html in version 1.0.
* | Merge branch '1.5'Linus Jahn2023-02-231-0/+4
|\|
| * According to RFC 5389, nonce (STUN attribute) should be paddedVladimir Pankratov2023-02-211-0/+4
| |
* | Remove Qt < 5.15 compat codeLinus Jahn2023-01-316-78/+2
|/
* IqHandling: Don't accept IQ results/errorsLinus Jahn2023-01-281-0/+1
|
* Task/Promise: Don't allow abstract typesLinus Jahn2023-01-282-10/+4
| | | | | Supporting abstract types only has little advantages and we might want to store the result by value later.
* Stream: Fix use of moved valueLinus Jahn2023-01-281-2/+2
|
* Use QXmppError in all IQ results instead of StanzaErrorLinus Jahn2023-01-222-10/+8
| | | | | | | | This allows us to report different error types with more information and makes it possible to distinguish stanza errors and errors generated locally. Part of #501.
* Task: Add static assert for then functionLinus Jahn2023-01-221-4/+5
|
* Rename TuneItem to UserTuneItemLinus Jahn2023-01-032-4/+4
| | | | Closes #524.
* Introduce QXmppTask & QXmppPromiseLinus Jahn2023-01-039-66/+504
| | | | | | Closes #502. Co-authored-by: Jonah Brüchert <jbb@kaidan.im>
* Stanza: Fix unhandled case in switch warningsLinus Jahn2023-01-011-0/+4
|
* Replace QXmpp::SendError with QXmppError everywhereLinus Jahn2022-12-305-29/+25
| | | | Part of #501.
* StanzaError: Remove optional getter/settters for type/conditionLinus Jahn2022-12-292-84/+13
| | | | | | | 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-292-4/+51
| | | | Closes #512.
* cmake: Use generate_export_header() instead of doing manuallyLinus Jahn2022-12-292-43/+22
| | | | | | | | | This is going to make it easier for us to maintain things. It's also consistent with the new QXmppOmemo module. This requires CMake 3.7 now. Closes #523.
* Stream: Add IQ response sender checkLinus Jahn2022-12-282-13/+31
| | | | | | | Verifies that the sender of the response is correct, so no evil entity can inject responses. Fixes #510.
* PubSubEvent: Split up Items type into Items and virtual Retract typeLinus Jahn2022-12-282-2/+22
| | | | | | | | | This makes the handling much easier because you don't have to manually check whether the set 'Items' type means items have been published or retracted. There is no retract type in the XML representation, but that doesn't mean that we cannot distinguish both cases. Closes #521.
* StanzaError: Add NoType and NoCondition for -1 valuesLinus Jahn2022-12-282-7/+8
| | | | | | | | 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.
* Disable Qt keywords completelyLinus Jahn2022-12-264-24/+24
| | | | | | | | | | | | | | | 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.
* Move PubSubIq into QXmpp::Private namespaceLinus Jahn2022-12-262-46/+54
| | | | This way users won't use it accidentally.
* Make PubSubIq header privateLinus Jahn2022-12-262-2/+1
| | | | | | | Users should only need to use the PubSubManager. The PubSubIq does not need to have a stable API this way and this gives us more flexibility. Closes #509.
* Add checkIqType() function to IQsLinus Jahn2022-10-178-5/+29
| | | | This is required so they can be parsed just be specifying the type.
* Implement XEP-0444: Message Reactions (#492)Melvin Keskin2022-10-166-0/+223
| | | https://xmpp.org/extensions/xep-0444.html
* Implement XEP-0167: Jingle RTP Sessions SRTP negotiation (#487)Melvin Keskin2022-10-032-0/+361
|
* FileUpload/Download: Use result() getter instead of signal parameterLinus Jahn2022-10-021-0/+1
| | | | | | The signal parameter does not work with immediately finishing uploads/downloads (i.e. when an error happened while starting). The user can't handle the result in that case.
* Error: Add fromFileDevice()Linus Jahn2022-10-022-1/+16
|