aboutsummaryrefslogtreecommitdiff
path: root/jobs
AgeCommit message (Collapse)Author
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
2018-01-12BaseJob::maxRetries: Align the type with that of JobTimeoutConfigKitsune Ral
Fixes some signedness warnings
2018-01-09MediaThumbnailJob: Rewire to GetContentThumbnailJob; decommission ThumbnailTypeKitsune Ral
"crop" thumbnail type didn't seem to be ever used. Once GTAD is able to generate enums, the respective code will show up in GetContentThumbnailJob and this parameter can be reintroduced in MediaThumbnailJob. As of now, just rely on the default "scale" value.
2018-01-09jobs/generated: content-repo.*, create_room.*Kitsune Ral
2018-01-09jobs: expect application/json by default; set query in constructor body; ↵Kitsune Ral
properly convert numbers to strings in query The query should be set in constructor body because there's no reason to pass non-required parameters into the query. As for numbers to strings conversion - there was an attempt to use QJsonValue(a).toString() for that. That doesn't work; QJsonValue does not turn numbers to strings.
2018-01-09jobs/generated: Use BaseJob::addExpectedContentType()Kitsune Ral
2018-01-09BaseJob: Provide a simplified constructorKitsune Ral
2018-01-09BaseJob, MediaThumbnailJob: Support request and response headersKitsune Ral
Enable specifying headers in the request and checking/using headers in the response.
2018-01-09jobs/generated: Polish formatting; other minor cleanupKitsune Ral
2018-01-09Job template: Use QIODevice instead of QByteArray to store byte streamsKitsune Ral
This allows smooth pipelining of files to and from the network.
2018-01-09Merge branch 'master' into kitsune-gtadKitsune Ral
2018-01-09BaseJob: change initial job status from NoError to PendingKitsune Ral
Otherwise isJobRunning() is of no great use.
2018-01-09isJobRunning() facility functionKitsune Ral
2018-01-05MediaThumbnailJob: Rewire to GetContentThumbnailJob; decommission ThumbnailTypeKitsune Ral
"crop" thumbnail type didn't seem to be ever used. Once GTAD is able to generate enums, the respective code will show up in GetContentThumbnailJob and this parameter can be reintroduced in MediaThumbnailJob. As of now, just rely on the default "scale" value.
2018-01-05jobs/generated: content-repo.*, create_room.*Kitsune Ral
2018-01-05jobs: expect application/json by default; set query in constructor body; ↵Kitsune Ral
properly convert numbers to strings in query The query should be set in constructor body because there's no reason to pass non-required parameters into the query. As for numbers to strings conversion - there was an attempt to use QJsonValue(a).toString() for that. That doesn't work; QJsonValue does not turn numbers to strings.
2018-01-05jobs/generated: Convert numbers to string in a way that actually worksKitsune Ral
Plus a bit of fooling around with linebreaks.
2018-01-05BaseJob: Provide a simplified constructorKitsune Ral
2018-01-05jobs/generated: Make default values propagate properlyKitsune Ral
Thanks to the latest GTAD. initializeDefaultValue is a partial that in turn inserts a type-specific {{>initializer}} if there is a non-trivial default value.
2018-01-05jobs/generated: Use BaseJob::addExpectedContentType()Kitsune Ral
2018-01-05{{base}}.cpp.mustache: Fix addExpectedContentType() invocation codeKitsune Ral