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

§ filesMatch()

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

Definition at line 549 of file md5.cpp.

References MD5::hex_digest().

550 {
551  MD5 obj( stream );
552  return (obj.hex_digest() == oldMD5);
553 }
MD5 Support allows checksums to be computed for images, determing if they have changed since the albu...
Definition: md5.h:65

§ getMD5()

QString getMD5 ( std::ifstream &  stream)

Definition at line 542 of file md5.cpp.

References MD5::hex_digest().

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

543 {
544  MD5 obj( stream );
545  return obj.hex_digest();
546 }
MD5 Support allows checksums to be computed for images, determing if they have changed since the albu...
Definition: md5.h:65