Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-28 | Move out prettyPrint() from Room to util.h | Kitsune Ral | |
So that it could be used outside of room context. | |||
2018-05-28 | BaseJob: support status tracking | Kitsune Ral | |
The newly introduced statusChanged() signal allows clients to be notified about the job state transitions. | |||
2018-05-28 | BaseJob: refresh rotten comments about kill() | Kitsune Ral | |
There is no more BaseJob::kill() for a very long time; we have abandon() instead, with a bit different meaning. Which, by the way, now emits finished() because that's what finished() has been for. | |||
2018-05-28 | qmc-example: Updates to Valgrind suppressions | Kitsune Ral | |
2018-05-26 | lib/csapi/: regenerate job classes from the most recent templates | Kitsune Ral | |
The second part to close #208. | |||
2018-05-26 | lib/csapi/: Don't send parameters that were omitted | Kitsune Ral | |
This is important because payloads that include omitted parameters may be malformed. Closes #208 (an example of such malformed payload). | |||
2018-05-24 | Room: Make isFavourite/LowPriority/DirectChat accessible from QML | Kitsune Ral | |
The first two as Q_PROPERTYs, the last one as Q_INVOKABLE. | |||
2018-05-23 | BaseJob: more careful error handling; unify and extend error signals in ↵ | Kitsune Ral | |
Connection (Note: this commit breaks back-compatibility.) BaseJob::gotReply() had a bold assumption that whenever there's no reasonable JSON body in case of error, that meant IncorrectRequestError (which of course was incorrect). This led to syncs dying in Quaternion because it (correctly) considered IncorrectRequestError to be grave enough to not retry. Closes #206. Also: don't dump the whole payload to logs, limit with initial 500 characters (closes #205) | |||
2018-05-06 | Remove unused job classes. | Kitsune Ral | |
2018-05-06 | converters.h: Fix CI | Kitsune Ral | |
2018-05-06 | Optimise #includes, eliminate some excess blank lines in lib/csapi | Kitsune Ral | |
2018-05-06 | lib/csapi/*.mustache: Optimise #includes, eliminate some blank lines | Kitsune Ral | |
2018-05-06 | lib/csapi: SearchJob | Kitsune Ral | |
2018-05-06 | Room::calculateDisplayname: fix a misleading room name after leaving a ↵ | Kitsune Ral | |
one-on-one | |||
2018-05-06 | CMakeLists.txt: Bump API version | Kitsune Ral | |
2018-05-05 | Merge branch 'kitsune-gtad' | Kitsune Ral | |
2018-05-05 | CONTRIBUTING.md: add a section about using GTAD | Kitsune Ral | |
[skip ci] | |||
2018-05-05 | README.md: cleaning up captions | Kitsune Ral | |
[skip ci] | |||
2018-05-04 | New home for the generated code - lib/csapi | Kitsune Ral | |
2018-05-04 | Fix building on OSX | Kitsune Ral | |
2018-05-04 | gtad.yaml: Cleanup | Kitsune Ral | |
2018-05-04 | gtad.yaml: Even more concise type stubbing | Kitsune Ral | |
With most recent GTAD. | |||
2018-05-04 | Connection, jobs/generated: Use QStringList instead of QVector<QString> | Kitsune Ral | |
QStringList's API is richer, after all. | |||
2018-05-04 | gtad.yaml: Use QStringList instead of QVector<QString> | Kitsune Ral | |
QStringList's API is richer, after all. | |||
2018-05-04 | jobs/generated: code ordering, more comments | Kitsune Ral | |
2018-05-04 | gtad.yaml: Support maps of events | Kitsune Ral | |
Use std::unordered_map<> (now supported by GTAD and converters.h) for that. | |||
2018-05-04 | {{base}}.h.mustache: better code ordering, more comments | Kitsune Ral | |
2018-05-04 | converters.h: support std::unordered_map<QString, T> | Kitsune Ral | |
2018-05-04 | SendToDeviceJob: use a map-of-maps for messages instead of an opaque QJsonObject | Kitsune Ral | |
2018-05-04 | gtad.yaml: Support OpenAPI value maps (aka additionalProperties) | Kitsune Ral | |
This is useful for things like tags map in m.tags event, or the map-of-maps-of-messages in SendToDeviceJob (coming in the next commit). Requires GTAD 0.4.9 or later. | |||
2018-05-04 | Ignore non-shadow qmake builds | Kitsune Ral | |
2018-05-04 | Preempt job/setroomstatejob.* with jobs/generated/room_state.* | Kitsune Ral | |
The template part (not exposed in the auto-generated class) goes to Room::Private::requestSetState(). Also, Room::setMemberState() to interface with User class. | |||
2018-05-04 | EvT::TypeId: Use a member function instead of a variable | Kitsune Ral | |
The latter one causes linkage errors when used from a template method (but not from a template class, puzzlingly). | |||
2018-05-03 | .travis.yml: Use newer Qt | Kitsune Ral | |
Because GTAD needs it. | |||
2018-05-03 | gtad.yaml: Update regexes to match string parts | Kitsune Ral | |
According to KitsuneRal/gtad#31. | |||
2018-05-03 | Preempt jobs/joinroomjob.* with jobs/generated/joining.* | Kitsune Ral | |
Enables responding to third-party invites. | |||
2018-05-03 | jobs/generated: Drop unused code | Kitsune Ral | |
2018-05-03 | GetRoomEventsJob (replaces RoomMessagesJob) + refactoring | Kitsune Ral | |
1. Updates in this commit (see further) allow to generate and build GetRoomEventsJob from message_pagination.yaml; this job completely preempts RoomMessagesJob. 2. EventsBatch<> is no more a thing; there's EventsArray<> to replace it but it's loaded from a JSON array rather than an event batch (a JSON array inside another JSON object). SyncJob that used it extensively has been moved to "conventional" containers (Events, RoomEvents and the newly introduced StateEvents). RoomMessagesJob that also used EventsBatch<> is decommissioned (see above). 3. RoomEventsRange is now an alias for Range<RoomEvents>, defined in util.h (otherwise almost the same). 4. Connection::getMessages() is no more. Use Room::getPreviousContent() and Connection::callApi<GetRooMEventsJob>() instead. 5. Moving things around in Room, since SyncJob now supplies state events in more specific StateEvents, rather than RoomEvents. | |||
2018-05-03 | Room::Private::processRedaction: minor refactoring | Kitsune Ral | |
2018-05-03 | Cleanup | Kitsune Ral | |
2018-05-03 | GTAD: Use QMatrixClient::Event-derived classes in generated jobs + Mustache ↵ | Kitsune Ral | |
cleanup This should make generated jobs buildable across the whole CS API (sync.yaml is disabled as the manual implementation is still considerably better). | |||
2018-05-01 | Fix building on OSX | Kitsune Ral | |
2018-05-01 | Merge branch 'master' into kitsune-gtad | Kitsune Ral | |
2018-05-01 | jobs/generated: use std::move in baseURL; type updates from the API files | Kitsune Ral | |
The type updates are a matter of pending PR to matrix-doc yet. | |||
2018-05-01 | gtad.yaml: Use EventPtr for Notifications.Event; add variant type to the map | Kitsune Ral | |
Variants are not yet supported but just in case, let's have the line, it's very obvious. | |||
2018-05-01 | GetNotificationsJob: don't alias EventPtr with Event | Kitsune Ral | |
It's useless and misleading. | |||
2018-05-01 | jobs/generated: use std::move in baseURL; type updates from the API files | Kitsune Ral | |
The type updates are a matter of pending PR to matrix-doc yet. | |||
2018-05-01 | Event and Room: further abstract event pointers | Kitsune Ral | |
So that eventual switch from std::unique_ptr to some other pointer (as a case - QSharedPointer) would be as painless as possible. | |||
2018-05-01 | Room: endorse std::move | Kitsune Ral | |
That is, add "using std::move" and strip std:: from actual usages. | |||
2018-05-01 | converters.h: Support std::vector<> | Kitsune Ral | |