aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-02BaseJob::Private: experiment with [[nodiscard]]Kitsune Ral
2019-10-02More fixes for Apple not having deduction guides in stdlibKitsune Ral
2019-10-02wrap_in_function()Kitsune Ral
Because Apple stdlib doesn't have std::function deduction guides.
2019-10-01Merge pull request #356 from m-rey/patch-1Black Hat
Fix openSUSE misspelling
2019-10-01Fix openSUSE misspellingMartin Rey
Fix #355 The correct spelling of openSUSE can be checked on https://en.opensuse.org/Portal:Distribution
2019-09-30Merge pull request #342 from quotient-im/bhat-libqtolm-updateBlack Hat
Update libQtOlm
2019-09-30Update libQtOlmBlack Hat
2019-09-30Merge branch 'master' of https://github.com/quotient-im/libQuotient into ↵Black Hat
bhat-libqtolm-update
2019-10-01Room::getCurrentState()Kitsune Ral
2019-09-30Move C++ standard requirement to target_compile_featuresKitsune Ral
...so that users of the library wouldn't need to redefine that they need C++17.
2019-09-29Connection: allRooms(), rooms(), roomsCount(); deprecate roomMap()Kitsune Ral
Closes #354.
2019-09-29BaseJob, urlForLog() -> dumpRequest(): include HTTP verb into log linesKitsune Ral
2019-09-29Rename pieces with qmc/qmatrixclientKitsune Ral
2019-09-29function_traits: drop unused piecesKitsune Ral
is_callable won't ever be needed because std::is_invokable is here; arg_number and returns() didn't find its users; and function_type has been just broken all along for member functions.
2019-09-29Simplify visit() signatureKitsune Ral
Checking that BaseEventT descends from Event is really extraneous.
2019-09-29Make connectSingleShot work wherever QObject::connect worksKitsune Ral
Also: doc-comment connectUntil and unify implementation of both functions.
2019-09-29.clang-format: don't add a whitespace before a colon in range-forKitsune Ral
2019-09-29Settings: childGroups() should merge legacy and current groups; QMC->QTNT in ↵Kitsune Ral
macros Because otherwise migrating one group to the current location leads to all other groups suddenly disappearing from Settings view.
2019-09-29Fix formatting weirdnessKitsune Ral
Alas, clang-format is not terrifically good around [[attributes]]
2019-09-28Set CXX_STANDARD by target propertyBlack Hat
2019-09-28Enable QMake for AppVeyorBlack Hat
2019-09-27Fix QMake travis ciBlack Hat
2019-09-27Fix Travis CI QMakeBlack Hat
2019-09-27Fix travis ciBlack Hat
2019-09-27Fix Travis CI.Black Hat
2019-09-27Olm relwithdebuginfo buildBlack Hat
2019-09-27Force C++17Black Hat
2019-09-27try to fix AppVeyorBlack Hat
2019-09-26update libQtOlmBlack Hat
2019-09-26Fix AppVeyor #2.Black Hat
2019-09-26Fix appveyor build #1.Black Hat
2019-09-26Merge branch 'master' of https://github.com/quotient-im/libQuotient intoBlack Hat
bhat-libqtolm-update
2019-09-24Room: cleanupKitsune Ral
2019-09-12Introduce HashQ<> and UnorderedMap<>Kitsune Ral
Invading into std:: is frowned upon, even though legitimate from the C++ standard perspective. Given that it's possible to pass a hash object to unordered_map, it only takes an alias for std::unordered_map to avoid having to specialize std::hash. And besides, a generic compatibility bridge between qHash and std::hash has been long needed. std::hash<QString> in converters.h remains for now; it will be dropped separately when the API files get regenerated to use UnorderedMap.
2019-09-11CMakeLists.txt: use set_target_properties(); specify C++ std per-targetKitsune Ral
2019-08-29Merge pull request #348 from quotient-im/kitsune-better-basejobKitsune Ral
Better BaseJob
2019-08-27libquotient.pri: use c++1z to help older qmakeKitsune Ral
CONFIG *= c++17 is available from Qt 5.12 only.
2019-08-27More compliant 'using' for chrono_literalsKitsune Ral
Compilers warn on using 'using ...::operator""s' because they think we're redefining the reserved suffix.
2019-08-27Don't use enumerator attributesKitsune Ral
Anything after enumerators is a problem for moc before Qt 5.12; so we can't use enumerator attributes before then.
2019-08-27Tighten the code; add a missing #includeKitsune Ral
MSVC warns on class/struct mismatch and errors on std::array because `<array>` is not indirectly included on that platform.
2019-08-26Room::calculateDisplayname: use local aliases for room namingKitsune Ral
The Spec now allows it, even if with a disclaimer that it's subject for further removal.
2019-08-26setAvatarForRoom: try recover from otherAvatars inconsistencyKitsune Ral
Hopefully manages cases like #347 in a better way.
2019-08-25RoomMessageEvent::content(): constify event contentKitsune Ral
2019-08-20BaseJob/ConnectionData: connection-wide rate-limitingKitsune Ral
As before, completely transparent for clients, driven by 529 errors from the server (but cases of rate limiting are signalled by BaseJob::rateLimited). That brings changes to BaseJob API: timeouts now use int64_t and also can be handled in std::chrono terms; aboutToStart() -> aboutToSendRequest(); started() -> sentRequest(). Closes #292.
2019-08-20BaseJob: Status/StatusCode tweaks, cleanup, mo' commentsKitsune Ral
Notably, recovered Status::fromHttpCode() that was introduced in 5722ceaf4bd10c29f1091e3dc5a87f5650ea8c71 but fell victim of a careless merge (so much for introducing non-topical changes in feature branches).
2019-08-20Connection::run()Kitsune Ral
Finally, clients can pre-create job objects and then separately submit them for execution on a given connection - previously such separation was a privilege of Connection (others had to use Connection::callApi<>, which invoked jobs right away).
2019-08-20Store userId in ConnectionData instead of ConnectionKitsune Ral
To collect all connection-identifying information in a single place.
2019-08-19Room::Private::doSendEvent: fix too early change in BaseJob signalsKitsune Ral
That's a matter of another upcoming commit.
2019-08-18room.cpp: applied clang-format with updated penalty valuesKitsune Ral
2019-08-18Room: use new logging categoriesKitsune Ral