[CSE] Update the finished signal

This commit is contained in:
Tomaz Canabrava 2017-12-20 23:36:49 +01:00
parent d87648c99a
commit 7be5f0a736
4 changed files with 8 additions and 6 deletions

View file

@ -185,9 +185,11 @@ void PropagateUploadFileCommon::start()
}
}
void PropagateUploadFileCommon::setupEncryptedFile()
void PropagateUploadFileCommon::setupEncryptedFile(const QString& path, const QString& filename, quint64 size)
{
_fileToUpload._path = path;
_fileToUpload._file = filename;
_fileToUpload._size = size;
}
void PropagateUploadFileCommon::setupUnencryptedFile()

View file

@ -252,7 +252,7 @@ public:
/* start should setup the file, path and size that will be send to the server */
void start() Q_DECL_OVERRIDE;
void setupEncryptedFile();
void setupEncryptedFile(const QString& path, const QString& filename, quint64 size);
void setupUnencryptedFile();
void startUploadFile();
bool isLikelyFinishedQuickly() Q_DECL_OVERRIDE { return _item->_size < propagator()->smallFileSize(); }

View file

@ -143,8 +143,8 @@ void PropagateUploadEncrypted::slotFolderEncriptedMetadataReceived(const QJsonDo
input, output);
qDebug() << "Removing Temporary File Temporarely";
output->remove();
// File is Encrypted, Upload it.
emit finalized("","",0);
input->deleteLater();
output->deleteLater();

View file

@ -48,7 +48,7 @@ private slots:
signals:
// Emmited after the file is encrypted and everythign is setup.
void finalized();
void finalized(const QString& path, const QString& filename, quint64 size);
void error();
// Emited if the file is not in a encrypted folder.