aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 14:31:51 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 14:31:51 +0900
commitab33516eb9aed5db5decb572cb30a83971f4c51e (patch)
treeb126c3b8338eefe8530a285703f350ffe0924a7a /jobs/generated
parentb2c9daabc2e8b89e1108211d8c9badf1bac66640 (diff)
downloadlibquotient-ab33516eb9aed5db5decb572cb30a83971f4c51e.tar.gz
libquotient-ab33516eb9aed5db5decb572cb30a83971f4c51e.zip
Drop ConnectionData parameter from {{template}} files too; less blanks
Diffstat (limited to 'jobs/generated')
-rw-r--r--jobs/generated/inviting.cpp14
-rw-r--r--jobs/generated/inviting.h11
-rw-r--r--jobs/generated/kicking.cpp20
-rw-r--r--jobs/generated/kicking.h12
4 files changed, 16 insertions, 41 deletions
diff --git a/jobs/generated/inviting.cpp b/jobs/generated/inviting.cpp
index 1e0c29a3..164a2b2b 100644
--- a/jobs/generated/inviting.cpp
+++ b/jobs/generated/inviting.cpp
@@ -5,25 +5,23 @@
#include "inviting.h"
-
#include "../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..8cfc9118 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);
+
};
-
} // namespace QMatrixClient
diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp
index 4f9d6580..3e2ef5be 100644
--- a/jobs/generated/kicking.cpp
+++ b/jobs/generated/kicking.cpp
@@ -5,28 +5,24 @@
#include "kicking.h"
-
#include "../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..6ef19fcd 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);
-
+
};
-
} // namespace QMatrixClient