aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppFutureUtils_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Use QXmppError in all IQ results instead of StanzaErrorLinus Jahn2023-01-221-4/+5
| | | | | | | | 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.
* Introduce QXmppTask & QXmppPromiseLinus Jahn2023-01-031-13/+43
| | | | | | Closes #502. Co-authored-by: Jonah BrĂ¼chert <jbb@kaidan.im>
* Replace QXmpp::SendError with QXmppError everywhereLinus Jahn2022-12-301-2/+2
| | | | Part of #501.
* FutureUtils: Add visitForward() functionLinus Jahn2022-10-021-0/+15
|
* Fix makeReadyFuture() void overloadLinus Jahn2022-09-131-1/+1
|
* FutureUtils: Use QtFuture::makeReadyFuture on Qt >= 6.1Linus Jahn2022-09-121-0/+4
|
* 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 &.
* Adapt clang-formatLinus Jahn2022-06-171-1/+1
|
* FutureUtils: chain: Use future interface without shared_ptrLinus Jahn2022-03-031-5/+5
| | | | | Didn't work before because the lambdas weren't mutable and so the QFutureInterface was always const.
* FutureUtils: Make handler lambda mutableLinus Jahn2022-03-031-4/+4
|
* FutureUtils: Add method for reporting finished with resultMelvin Keskin2022-02-021-0/+7
| | | | | | QFutureInterface comes with a reportFinished(T *result = nullptr) function, but it only accepts the value by pointer which is inconvenient in some cases.
* Run 'clang-format' on all filesMelvin Keskin2022-01-151-12/+14
|
* Convert copyright headers to REUSELinus Jahn2022-01-141-22/+3
|
* Update copyright years (2022 edition)Linus Jahn2022-01-091-1/+1
|
* Adapt IQ parsing to new packet sendingLinus Jahn2021-09-031-3/+4
| | | | Remove now unused QXmpp::PacketState.
* FutureUtils: Add awaitLast using last future resultLinus Jahn2021-08-311-0/+13
|
* FutureUtils: Add await() functionLinus Jahn2021-08-261-0/+24
|
* FutureUtils: Add makeReadyFuture for voidLinus Jahn2021-08-261-0/+6
|
* More template magic for QFuturesLinus Jahn2021-07-051-13/+32
|
* Move QFuture utilities into new QXmppFutureUtils_p.hLinus Jahn2021-07-031-0/+128
Also ran clang-format on the file.