Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-01-14 | DownloadFileJob | Kitsune Ral | |
Instead of exposing a QIODevice as GetContentJob does it gets a filename and saves the incoming payload into it. | |||
2018-01-14 | BaseJob: afterStart(), beforeAbandon(), up/downloadProgress() | Kitsune Ral | |
To support the upcoming DownloadFileJob | |||
2018-01-14 | Drop extraneous #include <QString> | Kitsune Ral | |
2018-01-14 | BaseJob::Data -> RequestData; support QIODevice* input/output | Kitsune Ral | |
2018-01-14 | Merge branch 'master' into kitsune-content-repo-create-room | Kitsune Ral | |
2018-01-13 | RoomEvent-aware file up/downloads along with status tracking | Kitsune Ral | |
2018-01-13 | Refactor EventContent; allow to easily check files out of message events | Kitsune Ral | |
The whole inheritance/templating structure has been considerably simplified by using a trick with mixin classes; thanks to that, *Info classes are no more templated, they are just mixed together by the almighty UrlBasedContent<> template (but the same can easily be done outside of it, as LocationContent implementation shows). RoomMessageEvent has gained hasFileContent(); it's also possible to easily get a FileInfo core object just by calling msgEvent->content()->fileInfo(). | |||
2018-01-13 | User: Q_PROPERTYs; setAvatar() | Kitsune Ral | |
2018-01-13 | Merge branch 'master' into kitsune-gtad | Kitsune Ral | |
2018-01-12 | Connection: files up/downloading support | Kitsune Ral | |
2018-01-12 | Connection::getThumbnail: Add an overload for QString | Kitsune Ral | |
Connection::getThumbnail(QString,...) is better fitting to retrieve images for QML image providers - one doesn't need to create a QUrl (which if made naively ends up being incorrect) and also doesn't need to stack up "mxc://" before the mediaId. Just call Connection::getThumbnail with the id the QML engine gives you. | |||
2018-01-12 | DownloadFileJob | Kitsune Ral | |
Instead of exposing a QIODevice as GetContentJob does it gets a filename and saves the incoming payload into it. | |||
2018-01-12 | BaseJob: afterStart(), beforeAbandon(), up/downloadProgress() | Kitsune Ral | |
To support the upcoming DownloadFileJob | |||
2018-01-12 | Drop extraneous #include <QString> | Kitsune Ral | |
2018-01-12 | BaseJob::Data -> RequestData; support QIODevice* input/output | Kitsune Ral | |
2018-01-12 | BaseJob::maxRetries: Align the type with that of JobTimeoutConfig | Kitsune Ral | |
Fixes some signedness warnings | |||
2018-01-12 | Event/RoomEvent: use Q_DECLARE_METATYPE properly | Kitsune Ral | |
2018-01-12 | Qualify a bind() invocation with 'std::'; use an actual value instead of a ↵ | Kitsune Ral | |
placeholder An unqualified bind() seems to upset some build environments; also, use a User* value at hand instead of binding it at the moment of signal-slot triggering. | |||
2018-01-09 | MediaThumbnailJob: Rewire to GetContentThumbnailJob; decommission ThumbnailType | Kitsune 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-09 | jobs/generated: content-repo.*, create_room.* | Kitsune Ral | |
2018-01-09 | jobs: 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-09 | jobs/generated: Use BaseJob::addExpectedContentType() | Kitsune Ral | |
2018-01-09 | BaseJob: Provide a simplified constructor | Kitsune Ral | |
2018-01-09 | BaseJob, MediaThumbnailJob: Support request and response headers | Kitsune Ral | |
Enable specifying headers in the request and checking/using headers in the response. | |||
2018-01-09 | jobs/generated: Polish formatting; other minor cleanup | Kitsune Ral | |
2018-01-09 | Job template: Use QIODevice instead of QByteArray to store byte streams | Kitsune Ral | |
This allows smooth pipelining of files to and from the network. | |||
2018-01-09 | Merge branch 'master' into kitsune-gtad | Kitsune Ral | |
2018-01-09 | BaseJob: change initial job status from NoError to Pending | Kitsune Ral | |
Otherwise isJobRunning() is of no great use. | |||
2018-01-09 | Fix an occasional crash when resolving a server name | Kitsune Ral | |
Closes #149. | |||
2018-01-09 | Avatar: Use QPointer<> and isJobRunning() | Kitsune Ral | |
2018-01-09 | Avatar: Mark get() as const operation | Kitsune Ral | |
With all the liberty that pimpl idiom gives it's easy to get away without proper const's; but let's be consistent :) | |||
2018-01-09 | isJobRunning() facility function | Kitsune Ral | |
2018-01-09 | Avatar: Use Connection::getThumbnail instead of callApi<> | Kitsune Ral | |
2018-01-06 | Add a missing #include | Kitsune Ral | |
std::bind belongs to <functional>, don't rely on implicitly including it from other standard headers. | |||
2018-01-05 | MediaThumbnailJob: Rewire to GetContentThumbnailJob; decommission ThumbnailType | Kitsune 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-05 | jobs/generated: content-repo.*, create_room.* | Kitsune Ral | |
2018-01-05 | jobs: 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-05 | jobs/generated: Convert numbers to string in a way that actually works | Kitsune Ral | |
Plus a bit of fooling around with linebreaks. | |||
2018-01-05 | BaseJob: Provide a simplified constructor | Kitsune Ral | |
2018-01-05 | jobs/generated: Make default values propagate properly | Kitsune 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-05 | CMakeLists.txt: Exclude more API files from generation | Kitsune Ral | |
All of these new exclusions have parameters named 'signed', 'unsigned' and 'default' which are C++ reserverd words. GTAD does not give a proper workaround for these yet (see #24) so exclude them for now. | |||
2018-01-05 | Avatar: Use Connection::getThumbnail instead of callApi<> | Kitsune Ral | |
2018-01-05 | jobs/generated: Use BaseJob::addExpectedContentType() | Kitsune Ral | |
2018-01-05 | {{base}}.cpp.mustache: Fix addExpectedContentType() invocation code | Kitsune Ral | |
2018-01-04 | gtad.yaml: Cleanup | Kitsune Ral | |
2018-01-04 | Updated generated jobs | Kitsune Ral | |
Just one file, the rest are the same. | |||
2018-01-04 | Disable generation of jobs that stand in the way | Kitsune Ral | |
We have a better SyncJob and SetRoomStateJob yet. | |||
2018-01-04 | gtad.yaml: Update to the most recent GTAD | Kitsune Ral | |
Use _scopeRenderer (instead of _typeRenderer) and _literalQuote. | |||
2018-01-03 | Fully support content-repo API | Kitsune Ral | |
That includes dealing with headers and raw (non-JSON) responses. | |||
2018-01-03 | Support request and response headers | Kitsune Ral | |
Enable specifying headers in the request and checking/using headers in the response. |