Age | Commit message (Collapse) | Author | |
---|---|---|---|
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. | |||
2018-01-03 | jobs/generated: Polish formatting; other minor cleanup | Kitsune Ral | |
2017-12-31 | Merge branch 'master' into kitsune-gtad | Kitsune Ral | |
2017-12-30 | BaseJob: do not suppress SSL errors | Kitsune Ral | |
It is the application's responsibility to properly display the error and get confirmation from the user about it. | |||
2017-12-30 | QMatrixClient::NetworkAccessManager (singleton Qt NAM that remembers ignored ↵ | Kitsune Ral | |
SSL errors) Closes #145. | |||
2017-12-29 | Don't use generic lambdas in initialisers | Kitsune Ral | |
This seems to upset MSVC. | |||
2017-12-29 | Fix building with Microsoft's standard library | Kitsune Ral | |
2017-12-29 | Allow to customize and connect to the used QNetworkAccessManager from clients | Kitsune Ral | |
We don't really want to let the world know that we use the only instance of NAM; instead, we provide a point of customisation to whatever NAM is created in ConnectionData, in the form of a static customizeNetworkAccess() method that gets a function to run on a/the created NAM. This function can do additional configuration on NAM (such as setting a proxy factory, network configuration, or caching) and/or connect to its signals, such as sslErrors() and proxyAuthenticationRequired(). Closes #143. | |||
2017-12-29 | Use std::unique_ptr instead of bare pointers; cleanup stale declarations | Kitsune Ral | |
2017-12-28 | NetworkSettings: add setupApplicationProxy() accessible from QML; proxyPort ↵ | Kitsune Ral | |
is quint16 now setupApplicationProxy(), so that clients in QML could apply changes in proxy settings without going down to C++. quint16, because this is a type actually used by QNetworkProxy. | |||
2017-12-28 | Switch from QPixmap to QImage; add convenience avatar() overloads to Room ↵ | Kitsune Ral | |
and User The switch is necessary because MediaThumbnailJob is supposed to return something that can be worked on in non-GUI threads (as is the case of QML image providers), and QPixmap is not supposed for usage out of the main thread. | |||
2017-12-27 | Introduce StateEventBase - a non-template base for StateEvent<> | Kitsune Ral | |
This will hold common logic for all state events, including the newly introduced repeatsState() that returns true when prev_content repeats content. This will be used to address QMatrixClient/Quaternion#245. | |||
2017-12-27 | StateEvent<>: Look for prev_content in unsigned, not top-level | Kitsune Ral | |
2017-12-26 | NetworkSettings: store proxy configuration | Kitsune Ral | |
No credentials, just type, host, and port. | |||
2017-12-26 | Settings: factored out common declarations/definitions to macros | Kitsune Ral | |
It cannot be made in templates because property and methods names are involved. | |||
2017-12-25 | CMakeLists: Add -W to the mix | Kitsune Ral | |
2017-12-25 | qmake: Use QMAKE_CXX_FLAGS_WARN_ON rather than QMAKE_CXX_FLAGS | Kitsune Ral | |
Because the damn thing puts QMAKE_CXX_FLAGS before what's put by CONFIG, and CONFIG injects -W -Wall that cancels -Wno-unused-parameter. | |||
2017-12-25 | Connection: change the attempt number propagated from BaseJob | Kitsune Ral | |
2017-12-25 | BaseJob: further minor code cleanup | Kitsune Ral | |
2017-12-25 | qmake: Use the compiler specified in the environment; revert to CONFIG += c++14 | Kitsune Ral | |
qmake doesn't follow standard CC and CXX environment variables and its CONFIG produces CXX_FLAGS added after QMAKE_CXX_FLAGS. Big thank you to The Qt Company :-| | |||
2017-12-25 | qmake: Use -std=C++14, not -std=gnu++1y substituted for CONFIG += c++14 | Kitsune Ral | |
2017-12-25 | Polished warnings configuration | Kitsune Ral | |
The whole thing should go without or almost without warnings with GCC and with Clang (MSVC is another story and I don't care about it much). | |||
2017-12-25 | Room: Remove C++14 code from the header file | Kitsune Ral | |
This will provide some backwards-compatibility to clients that are not ready to move _their_ code to C++14 (at least, it will allow them to not add C++14 requirement to their makefiles as of yet). | |||
2017-12-25 | BaseJob: consolidate job timeout configuration | Kitsune Ral | |
This prepares the backend to enable timeouts/retry intervals configurable from clients. | |||
2017-12-25 | Connection: Be more accurate with lambda captures | Kitsune Ral | |
2017-12-25 | Fix CI | Kitsune Ral | |
Old GCC was still invoked; qmake-based builds weren't switched to C++14. | |||
2017-12-25 | Now really switching to the new toolchain: C++14, GCC/Clang 5, Qt 5.6 | Kitsune Ral | |
Also a bit of code tightening with some C++14 (but not only) things. | |||
2017-12-25 | Merge branch 'master' into kitsune-gtad | Kitsune Ral | |
2017-12-25 | ReceiptEvent: use QVector instead of std::vector | Kitsune Ral | |
Because we should practice what we preach in CONTRIBUTING.md. | |||
2017-12-25 | CONTRIBUTING.md refreshed and slightly extended | Kitsune Ral | |
2017-12-25 | Use pimpl for Avatars | Kitsune Ral | |
2017-12-25 | Code cleanup | Kitsune Ral | |
2017-12-25 | Qt 5.6 or newer is required from now on | Kitsune Ral | |
2017-12-21 | Connection::logout: supply receiver to connect(job,...) | Kitsune Ral | |
2017-12-20 | Connection::accessToken - return QByteArray instead of QString | Kitsune Ral | |
Because that's what it really is. | |||
2017-12-20 | Clean away legacy settings when possible | Kitsune Ral | |
Otherwise they stick around when deleting actual settings (e.g. at logout). | |||
2017-12-19 | Don't use LoginJob::homeServer() anymore | Kitsune Ral | |
Because the respective parameter in /login result is deprecated. Closes #137. |