Sophie

Sophie

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

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: statusWidget.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>statusWidget.h</h1><a href="statusWidget_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 GUI_STATUSWIDGET_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_STATUSWIDGET_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="comment">//--------------------</span>
<a name="l00015"></a>00015 <span class="comment">//forward declarations</span>
<a name="l00016"></a>00016 <span class="keyword">class </span>QGridLayout;
<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="classQLabel.html">QLabel</a>;
<a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classQFrame.html">QFrame</a>;
<a name="l00019"></a>00019 <span class="keyword">class </span>QProgressBar;
<a name="l00020"></a>00020 <span class="keyword">class </span>QTimer;
<a name="l00021"></a>00021 <span class="keyword">class </span><a class="code" href="classClickableLabel.html" title="A clickable label.">ClickableLabel</a>;
<a name="l00022"></a>00022 <span class="comment">//--------------------</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;qwidget.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;qhttp.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">//=====================================</span>
<a name="l00028"></a><a class="code" href="classStatusWidget.html">00028</a> <span class="keyword">class </span><a class="code" href="classStatusWidget.html">StatusWidget</a> : <span class="keyword">public</span> <a class="code" href="classQWidget.html">QWidget</a>
<a name="l00029"></a>00029 {
<a name="l00030"></a>00030 Q_OBJECT
<a name="l00031"></a>00031 <span class="comment">//----------------------</span>
<a name="l00032"></a>00032 <span class="keyword">public</span>:
<a name="l00034"></a>00034   <a class="code" href="classStatusWidget.html#d86d9791b8d93c175275269f8a19a13a" title="Creates layout.">StatusWidget</a>(<a class="code" href="classQWidget.html">QWidget</a> *parent=0, <span class="keyword">const</span> <span class="keywordtype">char</span>* name=0);
<a name="l00035"></a>00035 
<a name="l00037"></a>00037   <a class="code" href="classStatusWidget.html#0991157916d0e53285dd00ff27f4a1c5" title="Deletes all objects.">~StatusWidget</a>();
<a name="l00038"></a>00038 
<a name="l00040"></a>00040   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#57d461014070b9d651c36bd157cab9c1" title="Initializes the progress bar.">showProgressBar</a>(QString <a class="code" href="classStatusWidget.html#2dec5d4cb267fba6a94bfc58abbcb2ce">message</a>, <span class="keywordtype">int</span> numSteps);
<a name="l00041"></a>00041 
<a name="l00043"></a>00043   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#b3e94c61124e13cfa1d3465bd0018076" title="Updates the progress bar.">updateProgress</a>(<span class="keywordtype">int</span> progress, 
<a name="l00044"></a>00044                       QString newMessage=QString::null);
<a name="l00045"></a>00045 
<a name="l00047"></a>00047   <span class="keywordtype">int</span> <a class="code" href="classStatusWidget.html#d6f09469554ece6887b68267927b6bb7" title="Returns current progress in steps.">currentProgress</a>();
<a name="l00048"></a>00048   
<a name="l00050"></a>00050   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#de18735223ae40506c32c96b9c9c5476" title="Updates the progress bar by one step.">incrementProgress</a>();
<a name="l00051"></a>00051 
<a name="l00053"></a>00053   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#02084869ff1c15dab4bc922a49b31808" title="Update message.">setStatus</a>( QString message );
<a name="l00054"></a>00054 
<a name="l00056"></a>00056   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#006dd272317ce936bfd1748ed02ba081" title="Check for updates.">checkForUpdates</a>();
<a name="l00057"></a>00057 
<a name="l00059"></a>00059   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#946425f382015f9f3e371666dfc1aea2" title="Remove program updates icon.">removeUpdatesIcon</a>();
<a name="l00060"></a>00060   
<a name="l00061"></a>00061   <span class="comment">//grab user input</span>
<a name="l00062"></a>00062   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#b9b7a539b643bbd3efade444a9f63b58">grabInput</a>();
<a name="l00063"></a>00063   
<a name="l00064"></a>00064   <span class="comment">//release user input</span>
<a name="l00065"></a>00065   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#286c1c7b47ba6b0727f5480bb47275bb">releaseInput</a>();
<a name="l00066"></a>00066 <span class="comment">//----------------------</span>
<a name="l00067"></a>00067 <span class="keyword">private</span> slots:
<a name="l00069"></a>00069   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#80e418a800324a24b6e4c447a3178576" title="called once a file is fetched from the network">fileFetched</a>(<span class="keywordtype">bool</span> error);
<a name="l00070"></a>00070 
<a name="l00072"></a>00072   <span class="keywordtype">void</span> <a class="code" href="classStatusWidget.html#dad879b5dc3cc0395b956b348f9f2495" title="Unset message.">removeStatus</a>();
<a name="l00073"></a>00073 <span class="comment">//----------------------</span>
<a name="l00074"></a>00074 <span class="keyword">private</span>:
<a name="l00076"></a><a class="code" href="classStatusWidget.html#c57c152e8b66c13fc8a25cf86688ce35">00076</a>   QGridLayout* <a class="code" href="classStatusWidget.html#c57c152e8b66c13fc8a25cf86688ce35" title="Layout widgets placed in.">grid</a>;
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="classStatusWidget.html#2dec5d4cb267fba6a94bfc58abbcb2ce">00078</a>   <a class="code" href="classQLabel.html">QLabel</a>* message;
<a name="l00079"></a><a class="code" href="classStatusWidget.html#d11bc9fe92d21e73f912d8d1d0f9a3c7">00079</a>   QProgressBar* <a class="code" href="classStatusWidget.html#d11bc9fe92d21e73f912d8d1d0f9a3c7">progressBar</a>;
<a name="l00080"></a><a class="code" href="classStatusWidget.html#e44ccc58975325fdc62596ff4718a2f9">00080</a>   <span class="keywordtype">int</span> <a class="code" href="classStatusWidget.html#e44ccc58975325fdc62596ff4718a2f9">curStep</a>;
<a name="l00081"></a>00081 
<a name="l00082"></a><a class="code" href="classStatusWidget.html#b0efda9970f9b25ef14351f60409816d">00082</a>   QTimer* <a class="code" href="classStatusWidget.html#b0efda9970f9b25ef14351f60409816d">timer</a>;
<a name="l00083"></a>00083 <span class="comment">//----------------------</span>
<a name="l00085"></a><a class="code" href="classStatusWidget.html#ca83dff6acb221e6094aac82be41c401">00085</a> <span class="comment"></span>QHttp <a class="code" href="classStatusWidget.html#ca83dff6acb221e6094aac82be41c401" title="http object for fetching releases file, used to check to see if installed copy is...">http</a>;
<a name="l00086"></a>00086 
<a name="l00088"></a><a class="code" href="classStatusWidget.html#3508a3c0d24b2f3787e41e0921e750fb">00088</a> <a class="code" href="classClickableLabel.html" title="A clickable label.">ClickableLabel</a>* <a class="code" href="classStatusWidget.html#3508a3c0d24b2f3787e41e0921e750fb" title="Update available label.">updateAvailable</a>;
<a name="l00089"></a>00089 <span class="comment">//----------------------</span>
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 };
<a name="l00092"></a>00092 <span class="comment">//======================</span>
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="preprocessor">#endif //GUI_STATUSWIDGET_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>