aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/leaving.cpp
blob: e443612ef2b02c972833c41a8f9038ae05cdd04e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */


#include "leaving.h"

#include "converters.h"
#include <QtCore/QStringBuilder>

using namespace QMatrixClient;

static const auto basePath = QStringLiteral("/_matrix/client/r0");

LeaveRoomJob::LeaveRoomJob(QString roomId)
    : BaseJob(HttpVerb::Post, "LeaveRoomJob",
        basePath % "/rooms/" % roomId % "/leave",
        Query { },
        Data { }
    )
{ }

ForgetRoomJob::ForgetRoomJob(QString roomId)
    : BaseJob(HttpVerb::Post, "ForgetRoomJob",
        basePath % "/rooms/" % roomId % "/forget",
        Query { },
        Data { }
    )
{ }
id. * \param filter * Uploads a new filter definition to the homeserver. * Returns a filter ID that may be used in future requests to * restrict which events are returned to the client. */ explicit DefineFilterJob(const QString& userId, const Filter& filter); ~DefineFilterJob() override; // Result properties /// The ID of the filter that was created. Cannot start /// with a ``{`` as this character is used to determine /// if the filter provided is inline JSON or a previously /// declared filter by homeservers on some APIs. const QString& filterId() const; protected: Status parseJson(const QJsonDocument& data) override; private: class Private; QScopedPointer<Private> d; }; /// Download a filter class GetFilterJob : public BaseJob { public: /*! Download a filter * \param userId * The user ID to download a filter for. * \param filterId * The filter ID to download. */ explicit GetFilterJob(const QString& userId, const QString& filterId); /*! Construct a URL without creating a full-fledged job object * * This function can be used when a URL for * GetFilterJob is necessary but the job * itself isn't. */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId, const QString& filterId); ~GetFilterJob() override; // Result properties /// "The filter defintion" const Filter& data() const; protected: Status parseJson(const QJsonDocument& data) override; private: class Private; QScopedPointer<Private> d; }; } // namespace QMatrixClient