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()
|
||||
|
|
|
@ -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(); }
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue