diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp index eb5346cb3..bdd6a4860 100644 --- a/src/libsync/propagateupload.cpp +++ b/src/libsync/propagateupload.cpp @@ -43,14 +43,6 @@ const char owncloudShouldSoftCancelPropertyName[] = "owncloud-should-soft-cancel namespace OCC { -/** - * Tags for checksum headers. - */ -static const char checkSumMD5C[] = "MD5"; -static const char checkSumSHA1C[] = "SHA1"; -static const char checkSumAdlerC[] = "Adler32"; -static const char checkSumAdlerUpperC[] = "ADLER32"; - /** * We do not want to upload files that are currently being modified. * To avoid that, we don't upload files that have a modification time @@ -503,7 +495,7 @@ void PropagateUploadFileQNAM::startNextChunk() currentChunkSize = chunkSize(); } if( !_item._checksum.isEmpty() ) { - headers["OC-Checksum"] = _item._checksum; + headers[checkSumHeaderC] = _item._checksum; } } } diff --git a/src/libsync/propagatorjobs.h b/src/libsync/propagatorjobs.h index 99343fe9b..463cb07b6 100644 --- a/src/libsync/propagatorjobs.h +++ b/src/libsync/propagatorjobs.h @@ -21,6 +21,22 @@ namespace OCC { +/** + * Tags for checksum headers. + * They are here for being shared between Upload- and Download Job + */ + +// the header itself +static const char checkSumHeaderC[] = "OC-Checksum"; +// ...and it's values +static const char checkSumMD5C[] = "MD5"; +static const char checkSumSHA1C[] = "SHA1"; +static const char checkSumAdlerC[] = "Adler32"; +static const char checkSumAdlerUpperC[] = "ADLER32"; + +/** + * Declaration of the other propation jobs + */ class PropagateLocalRemove : public PropagateItemJob { Q_OBJECT public: