5 #include <Quotient/csapi/definitions/auth_data.h>
6 #include <Quotient/csapi/definitions/cross_signing_key.h>
8 #include <Quotient/jobs/basejob.h>
51 explicit UploadCrossSigningKeysJob(
52 const std::optional<CrossSigningKey>& masterKey = std::nullopt,
53 const std::optional<CrossSigningKey>& selfSigningKey = std::nullopt,
54 const std::optional<CrossSigningKey>& userSigningKey = std::nullopt,
55 const std::optional<AuthenticationData>& auth = std::nullopt);
65 class QUOTIENT_API UploadCrossSigningSignaturesJob :
public BaseJob {
70 explicit UploadCrossSigningSignaturesJob(
71 const QHash<UserId, QHash<QString, QJsonObject>>& signatures);
78 QHash<UserId, QHash<QString, QJsonObject>> failures()
const
80 return loadFromJson<QHash<UserId, QHash<QString, QJsonObject>>>(
"failures"_L1);
84 inline auto collectResponse(
const UploadCrossSigningSignaturesJob* job) {
return job->failures(); }