aboutsummaryrefslogtreecommitdiff
path: root/jobs
AgeCommit message (Collapse)Author
2018-03-31Merge branch 'master' into kitsune-gtadKitsune Ral
2018-03-28BaseJob: Dump error body (if there's any) to logs; detect error 429 more ↵Kitsune Ral
reliably
2018-03-28BaseJob: more improvements in logging and errors detectionKitsune Ral
2018-03-28BaseJob: Process error 429 (Too Many Requests)Kitsune Ral
The job will retry after the period either advised by the server or the default retry period. Closes #186.
2018-03-28BaseJob: small refactoring and cleanup in logging codeKitsune Ral
2018-03-27Rework unread messages counting logicKitsune Ral
The previous one didn't cover all the cases; the current one seems to do. Closes #192. Accompanied by the developer's notes at: https://github.com/QMatrixClient/libqmatrixclient/wiki/unread_count
2018-03-26Introduce JoinStates (QFlags<JoinState>)Kitsune Ral
This required to change numeric values for JoinState enum; so anybody who relied on them being 0-based and/or contiguous, beware.
2018-03-23DownloadFileJob::beforeStart(): make sure to immediately return in case of errorKitsune Ral
2018-03-23BaseJob::start(): self-destruct if not succesfully startedKitsune Ral
Closes #193.
2018-03-20ignore possible appendixes from content typeKrombel
Currently libqmatrixclient fails checking the `Content-Type` header when there is an appendix like "charset". That is allowed e.g. in [rfc7231](https://tools.ietf.org/html/rfc7231#section-3.1.1.5)) One example is a Content-Type `application/json` vs `application/json;charset=UTF-8` Setting of the charset appendis is currently not supported. It fails with libqmatrixclient.jobs: "LoginJob" status 106 : "Incorrect content type of the response" This PR aims to just drop that appendix as it is currently not handled somewhere else.
2018-03-05Support server-side read marker (m.full_read)Kitsune Ral
Closes #183. There's also the m.read part but it can be done sometime later, as it's pure optimisation.
2018-03-05jobs/generated: SetAccountDataJob, SetAccountDataPerRoomJobKitsune Ral
2018-03-03Improve compatibility with gcc 4.9 to be able to build for Android with ↵Roman Plášil
QtCreator
2018-02-28Skip retry interval if the last job attempt timed outKitsune Ral
Closes #175.
2018-02-28Profiling logs: added µs, less empty profiling log linesKitsune Ral
Closes #177.
2018-02-27jobs/generated: SendToDeviceJobKitsune Ral
2018-02-27jobs/generated: SearchUserDirectoryJobKitsune Ral
2018-02-27jobs/generated: GetRoomTagsJob, SetRoomTagJob, DeleteRoomTagJobKitsune Ral
2018-02-27jobs/generated: SendMessageJob (might or might not preempt non-generated ↵Kitsune Ral
SendEventJob)
2018-02-27jobs/generated: GetPushersJob, PostPusherJobKitsune Ral
2018-02-27jobs/generated: GetJoinedRoomsJobKitsune Ral
2018-02-27jobs/generated: SetAccountDataJob, SetAccountDataPerRoomJobKitsune Ral
2018-02-27Merge branch 'master' into kitsune-gtadKitsune Ral
2018-02-26SyncJob: parse events from global account data tooKitsune Ral
Closes #123 (room account data were parsed even before). No specific event classes for account data yet, though.
2018-02-23BaseJob: In case of 4xx errors, fill the status with the message from the ↵Kitsune Ral
response
2018-02-20BaseJob: added Abandoned statusKitsune Ral
For a very brief period between calling BaseJob::abandon() and deletion of the job object.
2018-02-07MediaThumbnailJob::parseReply: Do not ignore underlying errorsKitsune Ral
2018-02-03Merge branch 'kitsune-expose-download-urls' into kitsune-gtadKitsune Ral
2018-02-03DownloadFileJob, MediaThumbnailJob: augment generated makeRequestUrl() methodsKitsune Ral
2018-02-03jobs/generated: Generate job-specific makeRequestUrl() methodsKitsune Ral
2018-02-03BaseJob::makeRequestUrlKitsune Ral
A static method that constructs a request URL for this job and the passed set of parameters.
2018-02-03GTAD: Generate job-specific makeRequestUrl() methodsKitsune Ral
2018-02-03BaseJob::makeRequestUrlKitsune Ral
A static method that constructs a request URL for this job and the passed set of parameters.
2018-02-03Merge branch 'master' into kitsune-gtadKitsune Ral
2018-01-30CreateRoomJob: Update to the latest Spec versionKitsune Ral
2018-01-30RequestData: use autoKitsune Ral
Should improve compatibility with compilers that don't like conversions between different std::unique_ptr<> types.
2018-01-26CreateRoomJob: Update to the latest Spec versionKitsune Ral
2018-01-26Merge branch 'master' into kitsune-gtadKitsune Ral
2018-01-25BaseJob::checkReply: log job returned status more explicitlyKitsune Ral
2018-01-15DownloadFileJob: Be tolerant to request retriesKitsune Ral
2018-01-14DownloadFileJobKitsune Ral
Instead of exposing a QIODevice as GetContentJob does it gets a filename and saves the incoming payload into it.
2018-01-14BaseJob: afterStart(), beforeAbandon(), up/downloadProgress()Kitsune Ral
To support the upcoming DownloadFileJob
2018-01-14Drop extraneous #include <QString>Kitsune Ral
2018-01-14BaseJob::Data -> RequestData; support QIODevice* input/outputKitsune Ral
2018-01-14Merge branch 'master' into kitsune-content-repo-create-roomKitsune Ral
2018-01-13Merge branch 'master' into kitsune-gtadKitsune Ral
2018-01-12DownloadFileJobKitsune Ral
Instead of exposing a QIODevice as GetContentJob does it gets a filename and saves the incoming payload into it.
2018-01-12BaseJob: afterStart(), beforeAbandon(), up/downloadProgress()Kitsune Ral
To support the upcoming DownloadFileJob
2018-01-12Drop extraneous #include <QString>Kitsune Ral
2018-01-12BaseJob::Data -> RequestData; support QIODevice* input/outputKitsune Ral