<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>AlbumShaper: md5.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>md5.h File Reference</h1><code>#include <fstream></code><br> <code>#include <qstring.h></code><br> <p> <div class="dynheader"> Include dependency graph for md5.h:</div> <div class="dynsection"> </div> <p> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> </div> <p> <a href="md5_8h_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classMD5.html">MD5</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classMD5.html" title="MD5 Support allows checksums to be computed for images, determing if they have changed...">MD5</a> 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. <a href="classMD5.html#_details">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="md5_8h.html#899b2fb35bd6d33506dde3eb0d87a761">getMD5</a> (std::ifstream &stream)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="md5_8h.html#9c8a61273cce81d4035bd666ecb4ecc5">filesMatch</a> (std::ifstream &stream, QString oldMD5)</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="9c8a61273cce81d4035bd666ecb4ecc5"></a><!-- doxytag: member="md5.h::filesMatch" ref="9c8a61273cce81d4035bd666ecb4ecc5" args="(std::ifstream &stream, QString oldMD5)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool filesMatch </td> <td>(</td> <td class="paramtype">std::ifstream & </td> <td class="paramname"> <em>stream</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>oldMD5</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="md5_8cpp_source.html#l00549">549</a> of file <a class="el" href="md5_8cpp_source.html">md5.cpp</a>.</p> <p>References <a class="el" href="md5_8cpp_source.html#l00271">MD5::hex_digest()</a>.</p> <div class="fragment"><pre class="fragment"><a name="l00550"></a>00550 { <a name="l00551"></a>00551 <a class="code" href="classMD5.html" title="MD5 Support allows checksums to be computed for images, determing if they have changed...">MD5</a> obj( stream ); <a name="l00552"></a>00552 <span class="keywordflow">return</span> (obj.hex_digest() == oldMD5); <a name="l00553"></a>00553 } </pre></div> <p> </div> </div><p> <a class="anchor" name="899b2fb35bd6d33506dde3eb0d87a761"></a><!-- doxytag: member="md5.h::getMD5" ref="899b2fb35bd6d33506dde3eb0d87a761" args="(std::ifstream &stream)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString getMD5 </td> <td>(</td> <td class="paramtype">std::ifstream & </td> <td class="paramname"> <em>stream</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="md5_8cpp_source.html#l00542">542</a> of file <a class="el" href="md5_8cpp_source.html">md5.cpp</a>.</p> <p>References <a class="el" href="md5_8cpp_source.html#l00271">MD5::hex_digest()</a>.</p> <p>Referenced by <a class="el" href="album_8cpp_source.html#l00889">Album::exportSubalbumImages()</a>, and <a class="el" href="subalbum_8cpp_source.html#l00349">Subalbum::importFromDisk()</a>.</p> <div class="fragment"><pre class="fragment"><a name="l00543"></a>00543 { <a name="l00544"></a>00544 <a class="code" href="classMD5.html" title="MD5 Support allows checksums to be computed for images, determing if they have changed...">MD5</a> obj( stream ); <a name="l00545"></a>00545 <span class="keywordflow">return</span> obj.hex_digest(); <a name="l00546"></a>00546 } </pre></div> <p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:31 2009 for AlbumShaper by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>