|
| static bool | fileok (const QString &filename) |
| static QByteArray | actualMd5Sum (const QString &filename, bool &ok) |
Definition at line 21 of file VP1MD5Sum.cxx.
◆ actualMd5Sum()
| QByteArray VP1MD5Sum::Imp::actualMd5Sum |
( |
const QString & | filename, |
|
|
bool & | ok ) |
|
static |
Definition at line 60 of file VP1MD5Sum.cxx.
61{
62 ok = false;
64 QCryptographicHash md5Hash(QCryptographicHash::Md5);
65
66 if (
file.open(QIODevice::ReadOnly | QIODevice::Unbuffered)) {
67 ok = true;
69 md5Hash.addData(
file.read(10485760));
70 }
72 return md5Hash.result();
73}
◆ fileok()
| bool VP1MD5Sum::Imp::fileok |
( |
const QString & | filename | ) |
|
|
static |
Definition at line 53 of file VP1MD5Sum.cxx.
54{
55 QFileInfo fi(filename);
56 return fi.exists() && fi.isReadable();
57}
The documentation for this class was generated from the following file: