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

View file

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

View file

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