AlbumShaper  1.0a3
Classes | Functions
md5.h File Reference
#include <fstream>
#include <qstring.h>
Include dependency graph for md5.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MD5
 MD5 Support allows checksums to be computed for images, determing if they have changed since the album was saved out, and if so need to be loaded and rescaled. More...

Functions

QString getMD5 (std::ifstream &stream)
bool filesMatch (std::ifstream &stream, QString oldMD5)

Function Documentation

bool filesMatch ( std::ifstream &  stream,
QString  oldMD5 
)

Definition at line 549 of file md5.cpp.

References MD5::hex_digest().

{
  MD5 obj( stream );
  return (obj.hex_digest() == oldMD5);
}
QString getMD5 ( std::ifstream &  stream)

Definition at line 542 of file md5.cpp.

References MD5::hex_digest().

Referenced by Album::exportSubalbumImages(), and Subalbum::importFromDisk().

{
  MD5 obj( stream );
  return obj.hex_digest();
}