mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
[CSE] Update the finished signal
This commit is contained in:
parent
d87648c99a
commit
7be5f0a736
4 changed files with 8 additions and 6 deletions
|
@ -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()
|
||||||
|
|
|
@ -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(); }
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue