aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-10 16:35:00 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-10 16:35:00 +0900
commit13d1943710025d6a9dd6011b67c083ac9b00aa75 (patch)
tree432244caf7205a49c6bc97e1b2305d8aba0f3d6d /jobs/generated
parent7726249de84b829bf066638ab96c2785f3a32427 (diff)
downloadlibquotient-13d1943710025d6a9dd6011b67c083ac9b00aa75.tar.gz
libquotient-13d1943710025d6a9dd6011b67c083ac9b00aa75.zip
Jobs with non-trivial results are generated properly
This addresses the last bullet in KitsuneRal/gtad#10, completing the implementation.
Diffstat (limited to 'jobs/generated')
-rw-r--r--jobs/generated/inviting.cpp5
-rw-r--r--jobs/generated/inviting.h6
-rw-r--r--jobs/generated/kicking.cpp5
-rw-r--r--jobs/generated/kicking.h6
4 files changed, 8 insertions, 14 deletions
diff --git a/jobs/generated/inviting.cpp b/jobs/generated/inviting.cpp
index 164a2b2b..95ba658d 100644
--- a/jobs/generated/inviting.cpp
+++ b/jobs/generated/inviting.cpp
@@ -5,8 +5,7 @@
#include "inviting.h"
-#include "../converters.h"
-
+#include "jobs/converters.h"
#include <QtCore/QStringBuilder>
using namespace QMatrixClient;
@@ -23,5 +22,3 @@ InviteUserJob::InviteUserJob(QString roomId, QString user_id)
)
{ }
-
-
diff --git a/jobs/generated/inviting.h b/jobs/generated/inviting.h
index 8cfc9118..ac0fd5fa 100644
--- a/jobs/generated/inviting.h
+++ b/jobs/generated/inviting.h
@@ -14,12 +14,12 @@ 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 3e2ef5be..2e6797d6 100644
--- a/jobs/generated/kicking.cpp
+++ b/jobs/generated/kicking.cpp
@@ -5,8 +5,7 @@
#include "kicking.h"
-#include "../converters.h"
-
+#include "jobs/converters.h"
#include <QtCore/QStringBuilder>
using namespace QMatrixClient;
@@ -24,5 +23,3 @@ KickJob::KickJob(QString roomId, QString user_id, QString reason)
)
{ }
-
-
diff --git a/jobs/generated/kicking.h b/jobs/generated/kicking.h
index 6ef19fcd..658193d5 100644
--- a/jobs/generated/kicking.h
+++ b/jobs/generated/kicking.h
@@ -14,12 +14,12 @@ 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