Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-07-04 | Event types system remade to be extensible | Kitsune Ral | |
There were two common points that had to be updated every time a new event is introduced: the EventType enumeration and one of 3 doMakeEvent<> specialisations. The new code has a template class, EventFactory<>, that uses a list of static factory methods to create events instead of typelists used in doMakeEvent<>(); the EventType enumeration is replaced with a namespace populated with constants as necessary. In general, EventType is considered a deprecated mechanism altogether; instead, a set of facilities is provided: is<>() to check if an event has a certain type (to replace comparison against an EventType value) and visit<>() to execute actions based on the event type (replacing switch statements over EventType values). Closes #129. | |||
2018-07-04 | Merge branch 'kitsune-raw-literal-qstringliteral' | Kitsune Ral | |
2018-07-04 | Connection: Trim raw data in emitted signals | Kitsune Ral | |
If the payload is too large, an attempt to allocate a QString out of QByteArray may end with qBadAlloc(). So by default the data emitted in case of error are trimmed to 64KiB, and this can be overridden to a different value (or switched off entirely with <n>=0) by adding - DTRIM_RAW_DATA=<n> to CPP_FLAGS. | |||
2018-07-04 | Experimental usage of QStringLiteral with a raw string literal | Kitsune Ral | |
2018-07-03 | Roll various switch case fallthrough markers into a macro | Kitsune Ral | |
2018-07-03 | Provide #include back-compatibility for REGISTER_ENUM | Kitsune Ral | |
2018-07-03 | SyncJob: log sync data statistics better | Kitsune Ral | |
2018-07-02 | Fix FTBFS | Kitsune Ral | |
2018-07-01 | weakPtr -> weakPtrCast | Kitsune Ral | |
2018-07-01 | More cleanup and minor tweaks | Kitsune Ral | |
2018-07-01 | Cleanup | Kitsune Ral | |
2018-06-30 | Try [[gnu::const]] | Kitsune Ral | |
2018-06-30 | Use C++14 [[deprecated]] attribute instead of doc-comment | Kitsune Ral | |
Testing the waters in one place to start with. | |||
2018-06-24 | converters.h: Support QSet<> | Kitsune Ral | |
Also: toJson<optional> is no more (was #if 0'd anyway). | |||
2018-06-16 | CMakeLists.txt: Don't build API files list if not needed | Kitsune Ral | |
2018-06-16 | Connection::doInDirectChat: "direct chat with self" feature | Kitsune Ral | |
Essentially - create/switch to the room with you as the only member instead of getting the first room where you happen to be flagged as a direct chat user (which is pretty unpredictable even if stable from the user point of view). | |||
2018-06-16 | Connection::createRoom: avoid inviting yourself to the created room | Kitsune Ral | |
2018-06-16 | Connection::doInDirectChat: be more careful with cleanup | Kitsune Ral | |
d->directChats was cleaned up while it was iterated upon, obviously leading to Undefined Behaviour. Closes #214. | |||
2018-06-16 | converters.h: Make it still compile with Qt older than 5.6 | Kitsune Ral | |
Some folks are still on Ubuntu vivid :( | |||
2018-06-16 | csapi: Use {{>cjoin}} instead of {{>join,}}; fix a typo breaking update-api | Kitsune Ral | |
2018-06-11 | Event::toJson(): Return an empty object instead of UB | Kitsune Ral | |
2018-06-11 | gtad.yaml: More concise list joining | Kitsune Ral | |
2018-06-11 | Update CONTRIBUTING.md | Kitsune Ral | |
[skip ci] | |||
2018-06-11 | Update README.md | Kitsune Ral | |
[skip ci] | |||
2018-06-11 | BaseJob: Drop 'error' from methods that work in normal job state too | Kitsune Ral | |
2018-06-11 | Connection: InFore/Background -> Fore/BackgroundRequest | Kitsune Ral | |
2018-06-09 | converters.h: drop unneeded template<> line | Kitsune Ral | |
2018-06-09 | csapi: Now really fix passing query parameters | Kitsune Ral | |
Also: GetContentThumbnailJob (again) requires width and height. | |||
2018-06-08 | csapi: Fix boolean query parameters incorrectly passed | Kitsune Ral | |
2018-06-08 | SyncJob: Support receiving to_device and presence events | Kitsune Ral | |
2018-06-08 | csapi: add jobs for keys management | Kitsune Ral | |
This concludes the Great Income of Jobs to libQMatrixClient - all CS API calls are now covered with job classes, yay! | |||
2018-06-08 | csapi: add jobs for device management | Kitsune Ral | |
Same as for account management jobs, auth objects are modeled as generic QJsonObjects for now. | |||
2018-06-08 | csapi: Added registration and account management jobs | Kitsune Ral | |
Regrettably had to cut corners and use QJsonObject for auth_data.yaml because GTAD 0.6 doesn't properly deal with a combination of properties and additionalProperties in the API description. | |||
2018-06-08 | csapi: add jobs from rooms.yaml | Kitsune Ral | |
Getting a single event (/events), getting the full room state as well as with a specific type/key (/state), getting the list of room members (/members and /joined_members). | |||
2018-06-08 | gtad.yaml: Update to the released GTAD 0.6 | Kitsune Ral | |
variant types now use comma (,) as a delimiter instead of | (because regexes). Also: moved around the `schema` section to be closer to `$ref`. | |||
2018-06-08 | csapi: added sync filter definitions and jobs | Kitsune Ral | |
2018-06-04 | CMakeLists: Fix build breakage if MATRIX_DOC_PATH is relative | Kitsune Ral | |
I should've guessed it at the previous commit, I know. | |||
2018-06-04 | CMakeLists: fix build breakage if GTAD path is relative | Kitsune Ral | |
2018-06-04 | Make libQMatrixClient buildable outside of Quaternion | Kitsune Ral | |
2018-06-04 | converters.*: Fixes | Kitsune Ral | |
Qualify functions properly; add converters.* to libqmatrixclient.pri | |||
2018-06-03 | csapi: jobs to setup push-rules | Kitsune Ral | |
2018-06-03 | csapi: PeekEventsJob, ReportContentJob, presence jobs | Kitsune Ral | |
2018-06-03 | csapi: No need to explicitly #include <QtCore/QStringList> | Kitsune Ral | |
2018-06-03 | csapi: GetTurnServerJob | Kitsune Ral | |
2018-06-03 | csapi/content-repo.*: jobs return results in data() instead of content() now | Kitsune Ral | |
Because GTAD has been updated to use a different default name for returned properties. | |||
2018-06-03 | csapi/notifications.*: Use QVariant instead of QJsonObject | Kitsune Ral | |
Thanks to the latest GTAD. QJsonObject wasn't quite correct there. | |||
2018-06-03 | csapi + converters: Support variant types (using QVariant) | Kitsune Ral | |
This mandated some rearrangement of toJson() overloads and FromJson<> specializations for QVariant* types - instead of variant_converters.h they are now in converters.cpp. | |||
2018-06-03 | csapi: Updated to the most recent API definitions | Kitsune Ral | |
2018-06-03 | gtad.yaml: Fixes around defaultValue | Kitsune Ral | |
1. defaultValue now preempts Omittable<> 2. Fixed the problem when defaultValue was provided but initializer was empty (a case for int's, bool's etc.) | |||
2018-06-03 | gtad.yaml: Fallback to QJsonArray no more needed | Kitsune Ral | |
...with the latest GTAD |