Move PropagateUpload ctor impl to the cpp file

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-07-01 13:19:08 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent 56a6fe4731
commit 5e20e2b46f
2 changed files with 10 additions and 8 deletions

View file

@ -164,6 +164,15 @@ bool PollJob::finished()
return true; return true;
} }
PropagateUploadFileCommon::PropagateUploadFileCommon(OwncloudPropagator *propagator, const SyncFileItemPtr &item)
: PropagateItemJob(propagator, item)
, _finished(false)
, _deleteExisting(false)
, _uploadEncryptedHelper(nullptr)
, _uploadingEncrypted(false)
{
}
void PropagateUploadFileCommon::setDeleteExisting(bool enabled) void PropagateUploadFileCommon::setDeleteExisting(bool enabled)
{ {
_deleteExisting = enabled; _deleteExisting = enabled;

View file

@ -228,14 +228,7 @@ protected:
QByteArray _transmissionChecksumHeader; QByteArray _transmissionChecksumHeader;
public: public:
PropagateUploadFileCommon(OwncloudPropagator *propagator, const SyncFileItemPtr &item) PropagateUploadFileCommon(OwncloudPropagator *propagator, const SyncFileItemPtr &item);
: PropagateItemJob(propagator, item)
, _finished(false)
, _deleteExisting(false)
, _uploadEncryptedHelper(nullptr)
, _uploadingEncrypted(false)
{
}
/** /**
* Whether an existing entity with the same name may be deleted before * Whether an existing entity with the same name may be deleted before