diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-10 16:35:00 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-10-13 10:38:27 +0200 |
commit | 360fa9c8a053d8b0888c5d2a8cda6c7672cdd5a1 (patch) | |
tree | 20ac33166ef77729f2539d2bbec2d9ab4225a64e | |
parent | 8207ef24c0e71133f3cfe115a4652767b4a63f9d (diff) | |
download | libquotient-360fa9c8a053d8b0888c5d2a8cda6c7672cdd5a1.tar.gz libquotient-360fa9c8a053d8b0888c5d2a8cda6c7672cdd5a1.zip |
Cleaner generated files
-rw-r--r-- | jobs/generated/inviting.cpp | 17 | ||||
-rw-r--r-- | jobs/generated/inviting.h | 15 | ||||
-rw-r--r-- | jobs/generated/kicking.cpp | 23 | ||||
-rw-r--r-- | jobs/generated/kicking.h | 16 |
4 files changed, 20 insertions, 51 deletions
diff --git a/jobs/generated/inviting.cpp b/jobs/generated/inviting.cpp index 1e0c29a3..95ba658d 100644 --- a/jobs/generated/inviting.cpp +++ b/jobs/generated/inviting.cpp @@ -5,25 +5,20 @@ #include "inviting.h" - -#include "../converters.h" - +#include "jobs/converters.h" #include <QtCore/QStringBuilder> using namespace QMatrixClient; - - static const auto basePath = QStringLiteral("/_matrix/client/r0"); InviteUserJob::InviteUserJob(QString roomId, QString user_id) : BaseJob(HttpVerb::Post, "InviteUserJob", - basePath % "/rooms/" % roomId % "/invite", - Query {}, - Data { { "user_id", toJson(user_id) } } + basePath % "/rooms/" % roomId % "/invite", + Query { }, + Data { + { "user_id", toJson(user_id) } + } ) { } - - - diff --git a/jobs/generated/inviting.h b/jobs/generated/inviting.h index 84cce06e..ac0fd5fa 100644 --- a/jobs/generated/inviting.h +++ b/jobs/generated/inviting.h @@ -5,30 +5,21 @@ #pragma once - #include "../basejob.h" - - #include <QtCore/QString> - - namespace QMatrixClient { - // Operations - - /** - - */ + class InviteUserJob : public BaseJob { public: - InviteUserJob(QString roomId, QString user_id); + explicit InviteUserJob(QString roomId, QString user_id); + }; - } // namespace QMatrixClient diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp index 4f9d6580..2e6797d6 100644 --- a/jobs/generated/kicking.cpp +++ b/jobs/generated/kicking.cpp @@ -5,28 +5,21 @@ #include "kicking.h" - -#include "../converters.h" - +#include "jobs/converters.h" #include <QtCore/QStringBuilder> using namespace QMatrixClient; - - static const auto basePath = QStringLiteral("/_matrix/client/r0"); 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) } - } + : 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 a746db8b..658193d5 100644 --- a/jobs/generated/kicking.h +++ b/jobs/generated/kicking.h @@ -5,31 +5,21 @@ #pragma once - #include "../basejob.h" - - #include <QtCore/QString> - - namespace QMatrixClient { - // Operations - - /** - - */ + class KickJob : public BaseJob { public: - KickJob(QString roomId, QString user_id, QString reason); - + explicit KickJob(QString roomId, QString user_id, QString reason = {}); + }; - } // namespace QMatrixClient |