diff options
Diffstat (limited to 'jobs/generated/profile.cpp')
-rw-r--r-- | jobs/generated/profile.cpp | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/jobs/generated/profile.cpp b/jobs/generated/profile.cpp index 6ec566f7..9523ca96 100644 --- a/jobs/generated/profile.cpp +++ b/jobs/generated/profile.cpp @@ -2,7 +2,6 @@ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ - #include "profile.h" #include "converters.h" @@ -15,9 +14,7 @@ static const auto basePath = QStringLiteral("/_matrix/client/r0"); SetDisplayNameJob::SetDisplayNameJob(const QString& userId, const QString& displayname) : BaseJob(HttpVerb::Put, "SetDisplayNameJob", - basePath % "/profile/" % userId % "/displayname", - Query { } - ) + basePath % "/profile/" % userId % "/displayname") { QJsonObject _data; if (!displayname.isEmpty()) @@ -33,16 +30,13 @@ class GetDisplayNameJob::Private GetDisplayNameJob::GetDisplayNameJob(const QString& userId) : BaseJob(HttpVerb::Get, "GetDisplayNameJob", - basePath % "/profile/" % userId % "/displayname", - Query { }, Data { }, false - ), d(new Private) -{ } - -GetDisplayNameJob::~GetDisplayNameJob() + basePath % "/profile/" % userId % "/displayname", false) + , d(new Private) { - delete d; } +GetDisplayNameJob::~GetDisplayNameJob() = default; + const QString& GetDisplayNameJob::displayname() const { return d->displayname; @@ -57,9 +51,7 @@ BaseJob::Status GetDisplayNameJob::parseJson(const QJsonDocument& data) SetAvatarUrlJob::SetAvatarUrlJob(const QString& userId, const QString& avatarUrl) : BaseJob(HttpVerb::Put, "SetAvatarUrlJob", - basePath % "/profile/" % userId % "/avatar_url", - Query { } - ) + basePath % "/profile/" % userId % "/avatar_url") { QJsonObject _data; if (!avatarUrl.isEmpty()) @@ -75,16 +67,13 @@ class GetAvatarUrlJob::Private GetAvatarUrlJob::GetAvatarUrlJob(const QString& userId) : BaseJob(HttpVerb::Get, "GetAvatarUrlJob", - basePath % "/profile/" % userId % "/avatar_url", - Query { }, Data { }, false - ), d(new Private) -{ } - -GetAvatarUrlJob::~GetAvatarUrlJob() + basePath % "/profile/" % userId % "/avatar_url", false) + , d(new Private) { - delete d; } +GetAvatarUrlJob::~GetAvatarUrlJob() = default; + const QString& GetAvatarUrlJob::avatarUrl() const { return d->avatarUrl; @@ -106,16 +95,13 @@ class GetUserProfileJob::Private GetUserProfileJob::GetUserProfileJob(const QString& userId) : BaseJob(HttpVerb::Get, "GetUserProfileJob", - basePath % "/profile/" % userId, - Query { }, Data { }, false - ), d(new Private) -{ } - -GetUserProfileJob::~GetUserProfileJob() + basePath % "/profile/" % userId, false) + , d(new Private) { - delete d; } +GetUserProfileJob::~GetUserProfileJob() = default; + const QString& GetUserProfileJob::avatarUrl() const { return d->avatarUrl; |