diff options
Diffstat (limited to 'jobs/generated')
-rw-r--r-- | jobs/generated/inviting.cpp | 26 | ||||
-rw-r--r-- | jobs/generated/inviting.h | 21 | ||||
-rw-r--r-- | jobs/generated/kicking.cpp | 31 | ||||
-rw-r--r-- | jobs/generated/kicking.h | 24 |
4 files changed, 21 insertions, 81 deletions
diff --git a/jobs/generated/inviting.cpp b/jobs/generated/inviting.cpp index e5e7f410..164a2b2b 100644 --- a/jobs/generated/inviting.cpp +++ b/jobs/generated/inviting.cpp @@ -5,33 +5,23 @@ #include "inviting.h" - #include "../converters.h" #include <QtCore/QStringBuilder> using namespace QMatrixClient; - - static const auto basePath = QStringLiteral("/_matrix/client/r0"); - -InviteUserJob::InviteUserJob(const ConnectionData* connection, - QString roomId - , - QString user_id - ) - : BaseJob(connection, HttpVerb::Post, "InviteUserJob" - , basePath % "/rooms/" % roomId % "/invite" - , Query { } - , Data { - { "user_id", toJson(user_id) } - } - +InviteUserJob::InviteUserJob(QString roomId, QString user_id) + : BaseJob(HttpVerb::Post, "InviteUserJob", + basePath % "/rooms/" % roomId % "/invite", + Query { }, + Data { + { "user_id", toJson(user_id) } + } ) { } - - + diff --git a/jobs/generated/inviting.h b/jobs/generated/inviting.h index af5a426d..8cfc9118 100644 --- a/jobs/generated/inviting.h +++ b/jobs/generated/inviting.h @@ -5,38 +5,21 @@ #pragma once - #include "../basejob.h" - - #include <QtCore/QString> - - namespace QMatrixClient { - // Operations - /** - - */ class InviteUserJob : public BaseJob { public: - InviteUserJob(const ConnectionData* connection - - , - QString roomId - - , - QString user_id - ); - + InviteUserJob(QString roomId, QString user_id); + }; - } // namespace QMatrixClient diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp index 726f6fb0..3e2ef5be 100644 --- a/jobs/generated/kicking.cpp +++ b/jobs/generated/kicking.cpp @@ -5,37 +5,24 @@ #include "kicking.h" - #include "../converters.h" #include <QtCore/QStringBuilder> using namespace QMatrixClient; - - static const auto basePath = QStringLiteral("/_matrix/client/r0"); - -KickJob::KickJob(const ConnectionData* connection, - QString roomId - , - QString user_id - , - QString reason - ) - : BaseJob(connection, HttpVerb::Post, "KickJob" - , basePath % "/rooms/" % roomId % "/kick" - , Query { } - , Data { - { "user_id", toJson(user_id) }, - - { "reason", toJson(reason) } - } - +KickJob::KickJob(QString roomId, QString user_id, QString reason) + : BaseJob(HttpVerb::Post, "KickJob", + basePath % "/rooms/" % roomId % "/kick", + Query { }, + Data { + { "user_id", toJson(user_id) }, + { "reason", toJson(reason) } + } ) { } - - + diff --git a/jobs/generated/kicking.h b/jobs/generated/kicking.h index 7b183b08..6ef19fcd 100644 --- a/jobs/generated/kicking.h +++ b/jobs/generated/kicking.h @@ -5,41 +5,21 @@ #pragma once - #include "../basejob.h" - - #include <QtCore/QString> - - namespace QMatrixClient { - // Operations - /** - - */ class KickJob : public BaseJob { public: - KickJob(const ConnectionData* connection - - , - QString roomId - - , - QString user_id - - , - QString reason - ); - + KickJob(QString roomId, QString user_id, QString reason); + }; - } // namespace QMatrixClient |