[Pkg-owncloud-commits] [owncloud-client] 54/175: MirallConfigFile: Add an option of transmission checksumming.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit d0d8de9f2f134286569d7be7ba537e882d2256cc
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Thu Apr 9 18:00:41 2015 +0200

    MirallConfigFile: Add an option of transmission checksumming.
---
 src/libsync/configfile.cpp | 7 +++++++
 src/libsync/configfile.h   | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp
index d8a3bf3..62701af 100644
--- a/src/libsync/configfile.cpp
+++ b/src/libsync/configfile.cpp
@@ -49,6 +49,7 @@ static const char optionalDesktopNoficationsC[] = "optionalDesktopNotifications"
 static const char skipUpdateCheckC[] = "skipUpdateCheck";
 static const char geometryC[] = "geometry";
 static const char timeoutC[] = "timeout";
+static const char transmissionChecksumC[] = "transmissionChecksum";
 
 static const char proxyHostC[] = "Proxy/host";
 static const char proxyTypeC[] = "Proxy/type";
@@ -118,6 +119,12 @@ int ConfigFile::timeout() const
     return settings.value(QLatin1String(timeoutC), 300).toInt(); // default to 5 min
 }
 
+QString ConfigFile::transmissionChecksum() const
+{
+    QSettings settings(configFile(), QSettings::IniFormat);
+    return settings.value(QLatin1String(transmissionChecksumC), QString()).toString();
+}
+
 void ConfigFile::setOptionalDesktopNotifications(bool show)
 {
     QSettings settings(configFile(), QSettings::IniFormat);
diff --git a/src/libsync/configfile.h b/src/libsync/configfile.h
index 54652b6..d1af84c 100644
--- a/src/libsync/configfile.h
+++ b/src/libsync/configfile.h
@@ -103,6 +103,12 @@ public:
 
     int timeout() const;
 
+    // send a checksum as a header along with the transmission or not.
+    // possible values:
+    // empty: no checksum calculated or expected.
+    // or "Adler32", "MD5", "SHA1"
+    QString transmissionChecksum() const;
+
     void saveGeometry(QWidget *w);
     void restoreGeometry(QWidget *w);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list