#include <VP1MD5Sum.h>
Definition at line 24 of file VP1MD5Sum.h.
◆ VP1MD5Sum()
◆ ~VP1MD5Sum()
| VP1MD5Sum::~VP1MD5Sum |
( |
| ) |
|
|
private |
◆ sum()
| QByteArray VP1MD5Sum::sum |
( |
const QString & | filename | ) |
|
|
static |
Definition at line 28 of file VP1MD5Sum.cxx.
29{
31 return QByteArray();
32 bool ok;
34 return ok ? arr : QByteArray();
35}
static bool fileok(const QString &filename)
static QByteArray actualMd5Sum(const QString &filename, bool &ok)
◆ sumMatches() [1/2]
| bool VP1MD5Sum::sumMatches |
( |
const QString & | filename, |
|
|
const QByteArray & | md5sum ) |
|
static |
Definition at line 38 of file VP1MD5Sum.cxx.
39{
41 return false;
42 bool ok;
44}
◆ sumMatches() [2/2]
| bool VP1MD5Sum::sumMatches |
( |
const QString & | filename, |
|
|
const QString & | md5sum ) |
|
static |
Definition at line 47 of file VP1MD5Sum.cxx.
48{
50}
static QByteArray sumToByteArray(const QString &)
static bool sumMatches(const QString &filename, const QByteArray &md5sum)
◆ sumToByteArray()
| QByteArray VP1MD5Sum::sumToByteArray |
( |
const QString & | str | ) |
|
|
static |
Definition at line 82 of file VP1MD5Sum.cxx.
83{
84 return QByteArray::fromHex(
str.toUtf8());
85}
◆ sumToStandardFormat()
| QString VP1MD5Sum::sumToStandardFormat |
( |
const QString & | sum | ) |
|
|
static |
Definition at line 96 of file VP1MD5Sum.cxx.
97{
98 return sum.simplified().toLower();
99}
static QByteArray sum(const QString &filename)
◆ sumToString()
| QString VP1MD5Sum::sumToString |
( |
const QByteArray & | ba | ) |
|
|
static |
◆ validMD5Sum()
| bool VP1MD5Sum::validMD5Sum |
( |
const QString & | sum | ) |
|
|
static |
Definition at line 88 of file VP1MD5Sum.cxx.
89{
91 return false;
92 return QRegExp(
"[0-9a-z]*").exactMatch(
sum.toLower());
93}
The documentation for this class was generated from the following files: