[Pkg-owncloud-commits] [owncloud-client] 84/175: TransmissonChecksumValidator: Add documentation.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Aug 8 10:36:29 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 c33d9627121399649c284d987647b92d8fe6552d
Author: Klaas Freitag <freitag at owncloud.com>
Date: Thu May 21 14:32:08 2015 +0200
TransmissonChecksumValidator: Add documentation.
---
src/libsync/transmissionchecksumvalidator.h | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/src/libsync/transmissionchecksumvalidator.h b/src/libsync/transmissionchecksumvalidator.h
index dc9f7ef..81f2727 100644
--- a/src/libsync/transmissionchecksumvalidator.h
+++ b/src/libsync/transmissionchecksumvalidator.h
@@ -27,11 +27,31 @@ class TransmissionChecksumValidator : public QObject
public:
explicit TransmissionChecksumValidator(const QString& filePath, QObject *parent = 0);
+ /**
+ * method to prepare a checksum for transmission and save it to the _checksum
+ * member of the SyncFileItem *item.
+ * The kind of requested checksum is taken from config. No need to set from outside.
+ *
+ * In any case of processing (checksum set, no checksum required and also unusual error)
+ * the object will emit the signal validated(). The item->_checksum is than either
+ * set to a proper value or empty.
+ */
void uploadValidation( SyncFileItem *item );
+
+ /**
+ * method to verify the checksum coming with requests in a checksum header. The required
+ * checksum method is read from config.
+ *
+ * If no checksum is there, or if a correct checksum is there, the signal validated()
+ * will be emitted. In case of any kind of error, the signal validationFailed() will
+ * be emitted.
+ */
void downloadValidation( const QByteArray& checksumHeader );
+ // This is only used in test cases (by now). This class reads the required
+ // test case from the config file.
void setChecksumType(const QByteArray &type );
- QString checksumType();
+ QString checksumType() const;
signals:
void validated();
--
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