diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-11 21:07:21 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-11 21:07:21 +0900 |
commit | 63e2c0338e07cbc1939a5ad0f8047a9edab9b97c (patch) | |
tree | b34779450d848ad431f1c82f50df77c38e37b56a /lib/csapi/presence.h | |
parent | e98ec84ab31b2dc656597ac5c87a8299b6c8aed8 (diff) | |
parent | 7337876aac42552da6d926b38d7466cf2e51b7d8 (diff) | |
download | libquotient-63e2c0338e07cbc1939a5ad0f8047a9edab9b97c.tar.gz libquotient-63e2c0338e07cbc1939a5ad0f8047a9edab9b97c.zip |
Merge branch 'kitsune-update-matrix-api'
Diffstat (limited to 'lib/csapi/presence.h')
-rw-r--r-- | lib/csapi/presence.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/csapi/presence.h b/lib/csapi/presence.h index c8f80357..5e132d24 100644 --- a/lib/csapi/presence.h +++ b/lib/csapi/presence.h @@ -6,7 +6,6 @@ #include "jobs/basejob.h" -#include "events/eventloader.h" #include "converters.h" namespace QMatrixClient @@ -74,56 +73,4 @@ namespace QMatrixClient class Private; QScopedPointer<Private> d; }; - - /// Add or remove users from this presence list. - /// - /// Adds or removes users from this presence list. - class ModifyPresenceListJob : public BaseJob - { - public: - /*! Add or remove users from this presence list. - * \param userId - * The user whose presence list is being modified. - * \param invite - * A list of user IDs to add to the list. - * \param drop - * A list of user IDs to remove from the list. - */ - explicit ModifyPresenceListJob(const QString& userId, const QStringList& invite = {}, const QStringList& drop = {}); - }; - - /// Get presence events for this presence list. - /// - /// Retrieve a list of presence events for every user on this list. - class GetPresenceForListJob : public BaseJob - { - public: - /*! Get presence events for this presence list. - * \param userId - * The user whose presence list should be retrieved. - */ - explicit GetPresenceForListJob(const QString& userId); - - /*! Construct a URL without creating a full-fledged job object - * - * This function can be used when a URL for - * GetPresenceForListJob is necessary but the job - * itself isn't. - */ - static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId); - - ~GetPresenceForListJob() override; - - // Result properties - - /// A list of presence events for this list. - Events&& data(); - - protected: - Status parseJson(const QJsonDocument& data) override; - - private: - class Private; - QScopedPointer<Private> d; - }; } // namespace QMatrixClient |