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
currentChunkSize = chunkSize();
}
if( !_item._checksum.isEmpty() ) {
- headers["OC-Checksum"] = _item._checksum;
+ headers[checkSumHeaderC] = _item._checksum;
}
}
}
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: