Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 4f45e7bdfd4a5ff17f5f8eaab90d017f > files > 1671

albumshaper-2.1-6mdv2010.0.i586.rpm

<!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: subalbum.h Source File</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&nbsp;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&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>subalbum.h</h1><a href="subalbum_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==============================================</span>
<a name="l00002"></a>00002 <span class="comment">//  copyright            : (C) 2003-2005 by Will Stokes</span>
<a name="l00003"></a>00003 <span class="comment">//==============================================</span>
<a name="l00004"></a>00004 <span class="comment">//  This program is free software; you can redistribute it</span>
<a name="l00005"></a>00005 <span class="comment">//  and/or modify it under the terms of the GNU General</span>
<a name="l00006"></a>00006 <span class="comment">//  Public License as published by the Free Software</span>
<a name="l00007"></a>00007 <span class="comment">//  Foundation; either version 2 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">//  (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">//==============================================</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef BACKEND_SUBALBUM_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define BACKEND_SUBALBUM_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="comment">//define representative image sizes</span>
<a name="l00015"></a><a class="code" href="subalbum_8h.html#09c78d2f8feb311dd9fc969a0bf84979">00015</a> <span class="preprocessor">#define SMALL 1</span>
<a name="l00016"></a><a class="code" href="subalbum_8h.html#455b219d48b21108576f53129be38c32">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define MEDIUM 2</span>
<a name="l00017"></a><a class="code" href="subalbum_8h.html#c27c2124ca2aed651e06aba3a1468ecb">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define LARGE 3</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="comment">//--------------------</span>
<a name="l00020"></a>00020 <span class="comment">//forward declarations</span>
<a name="l00021"></a>00021 <span class="keyword">class </span>QString;
<a name="l00022"></a>00022 <span class="keyword">class </span>QPixmap;
<a name="l00023"></a>00023 <span class="keyword">class </span>QDomNode;
<a name="l00024"></a>00024 <span class="keyword">class </span><a class="code" href="classAlbum.html" title="An album contains Subalbums.">Album</a>;
<a name="l00025"></a>00025 <span class="keyword">class </span><a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>;
<a name="l00026"></a>00026 <span class="keyword">class </span><a class="code" href="classStatusWidget.html">StatusWidget</a>;
<a name="l00027"></a>00027 <span class="keyword">class </span><a class="code" href="classPhotoPreviewWidget.html" title="Displays photo thumbnail and description.">PhotoPreviewWidget</a>;
<a name="l00028"></a>00028 <span class="comment">//--------------------</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">//=====================================</span>
<a name="l00043"></a>00043 <span class="comment"></span><span class="comment">//=====================================</span>
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="classSubalbum.html">00045</a> <span class="keyword">class </span><a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 <span class="comment">//------------------------------------------------------</span>
<a name="l00048"></a>00048 <span class="keyword">public</span>:
<a name="l00049"></a>00049 
<a name="l00052"></a>00052   <a class="code" href="classSubalbum.html#f4bc559914c481772894e3090aeee7ab" title="Sets default information  is the Subalbum number.">Subalbum</a>(<a class="code" href="classAlbum.html" title="An album contains Subalbums.">Album</a>* <a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3" title="Pointer to album subalbum is in.">albm</a>, <span class="keywordtype">int</span> <a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79" title="Subalbum Number.">number</a>);
<a name="l00053"></a>00053 
<a name="l00055"></a>00055   <a class="code" href="classSubalbum.html#e607191111f464b613c9369f78a57624" title="Frees photos.">~Subalbum</a>();
<a name="l00056"></a>00056 
<a name="l00058"></a>00058   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#8735ad9f854b8019e4351c1536576eb1" title="Sets the Subalbum Name.">setName</a>(QString val);
<a name="l00059"></a>00059 
<a name="l00061"></a>00061   QString <a class="code" href="classSubalbum.html#9d735164fdf19535c1dce8ba995c8a48" title="Gets the Subalbum Name.">getName</a>();
<a name="l00062"></a>00062 
<a name="l00064"></a>00064   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#c8e40e8b636ab289956b5a0568cd296b" title="Sets the Subalbum description.">setDescription</a>(QString val);
<a name="l00065"></a>00065 
<a name="l00067"></a>00067   QString <a class="code" href="classSubalbum.html#82c1c3df230784af3b52016f05f2d284" title="Gets the Subalbum description.">getDescription</a>();
<a name="l00068"></a>00068 
<a name="l00070"></a>00070   QPixmap* <a class="code" href="classSubalbum.html#9bd87802ff9f634579c35d4a399c1227" title="gets a sized representative image">getRepresentativeImage</a>(<span class="keywordtype">int</span> size);
<a name="l00071"></a>00071 
<a name="l00073"></a>00073   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#61c23c492eef5def5d3aefa85e785433" title="sets a sized representative image">setRepresentativeImage</a>(QString imageFilename);
<a name="l00074"></a>00074 
<a name="l00077"></a>00077   <span class="keywordtype">bool</span> <a class="code" href="classSubalbum.html#12db5ef063152af51a8ded94d7bee730" title="Adds a new photo to the Subalbum and appends it to the end, returns TRUE if successful...">addPhoto</a>(QString fileName, <span class="keywordtype">bool</span> replaceDescription = <span class="keyword">false</span>, <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* newPhoto = NULL);
<a name="l00078"></a>00078 
<a name="l00080"></a>00080   <span class="keywordtype">bool</span> <a class="code" href="classSubalbum.html#4380016d07f980852e03ccf18ef65dff" title="Lazily adds a new photo to the subalbum without rescaling from scrath, returns TRUE...">lazyAddPhoto</a>(QString imageName,
<a name="l00081"></a>00081                              QString slideshowName,
<a name="l00082"></a>00082                              QString thumbnailName,
<a name="l00083"></a>00083                              <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* newPhoto);
<a name="l00084"></a>00084 
<a name="l00086"></a>00086   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#12db5ef063152af51a8ded94d7bee730" title="Adds a new photo to the Subalbum and appends it to the end, returns TRUE if successful...">addPhoto</a>(<a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* newPhoto);
<a name="l00087"></a>00087 
<a name="l00089"></a>00089   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#77b6f10b6c8e2230185ae9a5c30c8300" title="Removes a specified photo without deleting the object.">photoMoved</a>(<a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* val);
<a name="l00090"></a>00090 
<a name="l00092"></a>00092   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#4ca46c83f9d143f34bb898f6c0c0fd90" title="Removes a specified photo.">removePhoto</a>(<a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* val);
<a name="l00093"></a>00093 
<a name="l00095"></a>00095   <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* <a class="code" href="classSubalbum.html#08c5cb587f5faa8b18a96ee04af8dc56" title="Returns pointer to prev subalbum.">getPrev</a>();
<a name="l00096"></a>00096   
<a name="l00098"></a>00098   <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* <a class="code" href="classSubalbum.html#510a01088f04712e93ae202cc758065f" title="Returns pointer to next subalbum.">getNext</a>();
<a name="l00099"></a>00099 
<a name="l00101"></a>00101   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#976c57e474987e1c54a6921c1f9d079c" title="Sets pointer of prev subalbum.">setPrev</a>(<a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* val);
<a name="l00102"></a>00102   
<a name="l00104"></a>00104   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#b44668ea110a4ee38fb27e9fcb4b39f6" title="Sets pointer of next subalbum.">setNext</a>(<a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* val);
<a name="l00105"></a>00105 
<a name="l00107"></a>00107   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* <a class="code" href="classSubalbum.html#a38b7736f58738d25426bf0cd93fc28a" title="Returns first photo in subalbum.">getFirst</a>();
<a name="l00108"></a>00108 
<a name="l00110"></a>00110   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* <a class="code" href="classSubalbum.html#22578a064d4c60f3bba4b0e8d314ce42" title="Returns last photo in subalbum.">getLast</a>();
<a name="l00111"></a>00111 
<a name="l00113"></a>00113   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#4b739ddec9d2b6421357a56553d91c82" title="Exports subalbum to xml.">exportToXML</a>(<a class="code" href="classStatusWidget.html">StatusWidget</a>* <a class="code" href="redEye__internal_8h.html#65b682074aef9e63bb1dad48c3e9e9df">status</a>, QTextStream&amp; stream);
<a name="l00114"></a>00114 
<a name="l00116"></a>00116   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#c006384e8c28addecc09c23a591ea884" title="Builds subalbum from XML DOM node.">importFromDisk</a>(QDomNode* root, <span class="keywordtype">int</span> subalbumNum,
<a name="l00117"></a>00117                                      <a class="code" href="classStatusWidget.html">StatusWidget</a>* status, QString dirName, <span class="keywordtype">bool</span> disableCheckPhotoMods);
<a name="l00118"></a>00118 
<a name="l00120"></a>00120   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#f491dd129feb2e0713c3cc943e3d3fed" title="Syncs photo ordering with front end gui ordering.">syncPhotoList</a>(<a class="code" href="classPhotoPreviewWidget.html" title="Displays photo thumbnail and description.">PhotoPreviewWidget</a>* item);
<a name="l00121"></a>00121 
<a name="l00123"></a>00123   <span class="keywordtype">int</span> <a class="code" href="classSubalbum.html#421e48eea5937cd4718a34410bdc29cb" title="Returns subalbum number.">getSubalbumNumber</a>();
<a name="l00124"></a>00124 
<a name="l00126"></a>00126   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#4f43f5424c1400ce2ddad3a143db5418" title="Sets the subalbum number to newVal.">setSubalbumNumber</a>(<span class="keywordtype">int</span> newVal);
<a name="l00127"></a>00127 
<a name="l00129"></a>00129   <span class="keywordtype">int</span> <a class="code" href="classSubalbum.html#1a55114adae96d7c2a87e37f6a40fe2d" title="Returns the number of photos in the subalbum.">getNumPhotos</a>();
<a name="l00130"></a>00130 
<a name="l00132"></a>00132   <span class="keywordtype">int</span> <a class="code" href="classSubalbum.html#dd5b24cedda52cf2c7527603097b1dd4" title="Returns the number of loaded photos in subalbum.">getNumLoadedPhotos</a>();
<a name="l00133"></a>00133 
<a name="l00134"></a>00134   <span class="comment">//Resets the number of loaded photos in the subalbum to the number of photos in the subalbum</span>
<a name="l00135"></a>00135   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#a93dcf1d9ca349da4cbe39a0c569c37b">resetNumLoadedPhotos</a>();
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="comment">//Sets the subalbum as modified</span>
<a name="l00138"></a>00138   <span class="keywordtype">void</span> <a class="code" href="classSubalbum.html#a01ad19461ce049774595512960f73cb">setModified</a>();
<a name="l00139"></a>00139   
<a name="l00141"></a>00141   <a class="code" href="classAlbum.html" title="An album contains Subalbums.">Album</a>* <a class="code" href="classSubalbum.html#b42d5716bb7253d290302bd1d735d578" title="returns the album pointer">getAlbum</a>();
<a name="l00142"></a>00142 <span class="comment">//------------------------------------------------------</span>
<a name="l00143"></a>00143 <span class="keyword">private</span>:
<a name="l00145"></a><a class="code" href="classSubalbum.html#16e483535b3378a7e931f66d933d3e79">00145</a>   <span class="keywordtype">int</span> number;
<a name="l00146"></a>00146 
<a name="l00148"></a><a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e">00148</a>   <span class="keywordtype">int</span> <a class="code" href="classSubalbum.html#11f56eda8419db70fb88a15fbe46938e" title="Number of photos in subalbum.">numPhotos</a>;
<a name="l00149"></a>00149 
<a name="l00151"></a><a class="code" href="classSubalbum.html#b51f1d02adc4219864f39a02609d3e7c">00151</a>   <span class="keywordtype">int</span> <a class="code" href="classSubalbum.html#b51f1d02adc4219864f39a02609d3e7c" title="Number of photos in subalbum when last loaded.">loadedPhotos</a>;
<a name="l00152"></a>00152 
<a name="l00154"></a><a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d">00154</a>   QString <a class="code" href="classSubalbum.html#2728b6ac73fbf30ce1e494a64bb6186d" title="Short Name for subalbum.">name</a>;
<a name="l00155"></a>00155 
<a name="l00157"></a><a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c">00157</a>   QString <a class="code" href="classSubalbum.html#983620a2f934d2437314902a1782038c" title="Longer description of subalbum.">description</a>;
<a name="l00158"></a>00158 
<a name="l00159"></a>00159   <span class="comment">//Small, medium, and large representative images</span>
<a name="l00160"></a><a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">00160</a>   QPixmap* <a class="code" href="classSubalbum.html#f11a032922b53c12c5622b6fdd8545e4">smallRepresentativeImage</a>;
<a name="l00161"></a><a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">00161</a>   QPixmap* <a class="code" href="classSubalbum.html#ceef18d39657f0bb0e372a6c45005a01">mediumRepresentativeImage</a>;
<a name="l00162"></a><a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">00162</a>   QPixmap* <a class="code" href="classSubalbum.html#c288c750721a4dcdb77561ed9464fef0">largeRepresentativeImage</a>;
<a name="l00163"></a>00163 
<a name="l00165"></a><a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89">00165</a>   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* <a class="code" href="classSubalbum.html#9191766b1a9af28f332fac828a93cd89" title="Pointer to first photo.">firstPhoto</a>;
<a name="l00166"></a>00166 
<a name="l00168"></a><a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8">00168</a>   <a class="code" href="classPhoto.html" title="A photo consists of a full size image, a smaller slide show image, a very small thumbnail...">Photo</a>* <a class="code" href="classSubalbum.html#71607e559d5f71793ca8798d0737c7d8" title="Pointer to last photo.">lastPhoto</a>;
<a name="l00169"></a>00169 
<a name="l00171"></a><a class="code" href="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2">00171</a>   <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* <a class="code" href="classSubalbum.html#54c5ce9ad52359e1a6f26517328c0ee2" title="Pointer to prev subalbum.">prevSubalbum</a>;
<a name="l00172"></a>00172   
<a name="l00174"></a><a class="code" href="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc">00174</a>   <a class="code" href="classSubalbum.html" title="A subalbum contains photos.">Subalbum</a>* <a class="code" href="classSubalbum.html#6ac8347a1e335fcb4480fc63fdc8f9dc" title="Pointer to next subalbum.">nextSubalbum</a>;
<a name="l00175"></a>00175 
<a name="l00177"></a><a class="code" href="classSubalbum.html#662929e1d71c43a120bf59e04477f6b3">00177</a>   <a class="code" href="classAlbum.html" title="An album contains Subalbums.">Album</a>* albm;
<a name="l00178"></a>00178 <span class="comment">//------------------------------------------------------</span>
<a name="l00179"></a>00179 };
<a name="l00180"></a>00180 
<a name="l00181"></a>00181 <span class="preprocessor">#endif //BACKEND_SUBALBUM_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 23 02:34:27 2009 for AlbumShaper by&nbsp;
<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>