diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-03 22:41:12 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-03 22:48:00 +0900 |
commit | a5b6d786878ab5c67a7b436ba475e8ac4d22f1f0 (patch) | |
tree | db185f684477a0f627d167c4fb58afc4941ce2bc /lib/jobs/generated/joining.h | |
parent | f3927ca0c16a61fcb0933333ecff8095917a5b47 (diff) | |
download | libquotient-a5b6d786878ab5c67a7b436ba475e8ac4d22f1f0.tar.gz libquotient-a5b6d786878ab5c67a7b436ba475e8ac4d22f1f0.zip |
Preempt jobs/joinroomjob.* with jobs/generated/joining.*
Enables responding to third-party invites.
Diffstat (limited to 'lib/jobs/generated/joining.h')
-rw-r--r-- | lib/jobs/generated/joining.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/lib/jobs/generated/joining.h b/lib/jobs/generated/joining.h new file mode 100644 index 00000000..76edb339 --- /dev/null +++ b/lib/jobs/generated/joining.h @@ -0,0 +1,77 @@ +/****************************************************************************** + * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN + */ + +#pragma once + +#include "../basejob.h" + +#include <QtCore/QJsonObject> + +#include "converters.h" + +namespace QMatrixClient +{ + // Operations + + class JoinRoomByIdJob : public BaseJob + { + public: + // Inner data structures + + struct ThirdPartySigned + { + QString sender; + QString mxid; + QString token; + QJsonObject signatures; + }; + + // End of inner data structures + + explicit JoinRoomByIdJob(const QString& roomId, const ThirdPartySigned& thirdPartySigned = {}); + ~JoinRoomByIdJob() override; + + const QString& roomId() const; + + protected: + Status parseJson(const QJsonDocument& data) override; + + private: + class Private; + QScopedPointer<Private> d; + }; + + class JoinRoomJob : public BaseJob + { + public: + // Inner data structures + + struct Signed + { + QString sender; + QString mxid; + QString token; + QJsonObject signatures; + }; + + struct ThirdPartySigned + { + Signed signedData; + }; + + // End of inner data structures + + explicit JoinRoomJob(const QString& roomIdOrAlias, const ThirdPartySigned& thirdPartySigned = {}); + ~JoinRoomJob() override; + + const QString& roomId() const; + + protected: + Status parseJson(const QJsonDocument& data) override; + + private: + class Private; + QScopedPointer<Private> d; + }; +} // namespace QMatrixClient |