[CSE] Fetch the metadata for the upload.

This commit is contained in:
Tomaz Canabrava 2017-12-08 10:32:05 +01:00
parent 6745777ca3
commit a08a32ceca
2 changed files with 11 additions and 0 deletions

View file

@ -280,6 +280,16 @@ void PropagateUploadFileCommon::slotFolderLockedSuccessfully(const QByteArray& f
_currentLockingInProgress = true;
_folderToken = token;
_folderId = fileId;
auto job = new GetMetadataApiJob(propagator()->account(), _folderId);
connect(job, &GetMetadataApiJob::jsonReceived,
this, &PropagateUploadFileCommon::slotFolderEncriptedMetadataReceived);
job->start();
}
void PropagateUploadFileCommon::slotFolderEncriptedMetadataReceived(const QJsonDocument &json, int statusCode)
{
qDebug() << "Metadata Received" << json.toVariant();
}
void PropagateUploadFileCommon::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode)

View file

@ -286,6 +286,7 @@ private slots:
void slotFolderLockedSuccessfully(const QByteArray& fileId, const QByteArray& token);
void slotFolderLockedError(const QByteArray& fileId, int httpErrorCode);
void slotTryLock(const QByteArray& fileId);
void slotFolderEncriptedMetadataReceived(const QJsonDocument &json, int statusCode);
// Private Encryption Stuff
private: