Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > os > by-pkgid > 9c481c872fb0ae0cbadccdc2f4a18ab6 > files > 221

libasync-devel-0.17.0-5.fc14.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Async: Async::QtApplication Class 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.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceAsync.html">Async</a>::<a class="el" href="classAsync_1_1QtApplication.html">QtApplication</a>
  </div>
</div>
<div class="contents">
<h1>Async::QtApplication Class Reference</h1><!-- doxytag: class="Async::QtApplication" --><!-- doxytag: inherits="Async::Application" -->
<p>An application class for writing GUI applications in Qt.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="AsyncQtApplication_8h_source.html">AsyncQtApplication.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Async::QtApplication:</div>
<div class="dynsection">
 <div class="center">
  <img src="classAsync_1_1QtApplication.png" usemap="#Async::QtApplication_map" alt=""/>
  <map id="Async::QtApplication_map" name="Async::QtApplication_map">
<area href="classAsync_1_1Application.html" alt="Async::Application" shape="rect" coords="0,0,130,24"/>
</map>
 </div>
</div>

<p><a href="classAsync_1_1QtApplication-members.html">List of all members.</a></p>
<h2>Public Member Functions</h2>
<ul>
<li><a class="el" href="classAsync_1_1QtApplication.html#a086b4d128771ea86bc9049311247583e">QtApplication</a> (int argc, char **argv)
<dl class="el"><dd class="mdescRight">Constructor.  <a href="#a086b4d128771ea86bc9049311247583e"></a><br/></dl><li>virtual <a class="el" href="classAsync_1_1QtApplication.html#a59bcae64f314c53ff83d562600aa23e9">~QtApplication</a> (void)
<dl class="el"><dd class="mdescRight">Destructor.  <a href="#a59bcae64f314c53ff83d562600aa23e9"></a><br/></dl><li>void <a class="el" href="classAsync_1_1QtApplication.html#a9c126053824af95e9cbd0860028b5806">exec</a> (void)
<dl class="el"><dd class="mdescRight">Execute the application main loop.  <a href="#a9c126053824af95e9cbd0860028b5806"></a><br/></dl><li>void <a class="el" href="classAsync_1_1QtApplication.html#a9fce02c06390d7bd6c4594bd3407c680">quit</a> (void)
<dl class="el"><dd class="mdescRight">Exit the application main loop.  <a href="#a9fce02c06390d7bd6c4594bd3407c680"></a><br/></dl></ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>An application class for writing GUI applications in Qt. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Tobias Blomberg </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>2003-03-16</dd></dl>
<p>This class is used when writing Qt applications. It should be one of the first things done in the <em>main</em> function of your application. Use the <a class="el" href="classAsync_1_1QtApplication.html" title="An application class for writing GUI applications in Qt.">Async::QtApplication</a> class in place of the QApplication class.</p>
<p>In the application you do not have to use the <a class="el" href="namespaceAsync.html" title="Namespace for the asynchronous programming classes.">Async</a> classes for timers and file descriptor watches. It is perfecly legal to use the Qt variants (QTimer and QSocketNotifier). You can mix them as much as you like.</p>
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include &lt;<a class="code" href="AsyncQtApplication_8h.html" title="The core class for writing asyncronous cpp applications.">AsyncQtApplication.h</a>&gt;</span>
<span class="preprocessor">#include &lt;qpushbutton.h&gt;</span>

<span class="keyword">using namespace </span>Async;

<span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv)
{
  <a class="code" href="classAsync_1_1QtApplication.html#a086b4d128771ea86bc9049311247583e" title="Constructor.">QtApplication</a> <a class="code" href="classAsync_1_1Application.html#aa6d446d6b333e0a1e5cc1400c07aa898" title="Get the one and only application instance.">app</a>(argc, argv);
  QPushButton hello(<span class="stringliteral">&quot;Hello, Async::QtApplication&quot;</span>, 0);
  QObject::connect(&amp;hello, SIGNAL(clicked()), &amp;app, SLOT(<a class="code" href="classAsync_1_1QtApplication.html#a9fce02c06390d7bd6c4594bd3407c680" title="Exit the application main loop.">quit</a>()));
  app.setMainWidget(&amp;hello);
  hello.show();
  app.exec();
}
</pre></div> <dl><dt><b>Examples: </b></dt><dd>
<p><a class="el" href="AsyncQtApplication__demo_8cpp-example.html#_a0">AsyncQtApplication_demo.cpp</a>.</p>
</dd>
</dl>
<p>Definition at line <a class="el" href="AsyncQtApplication_8h_source.html#l00152">152</a> of file <a class="el" href="AsyncQtApplication_8h_source.html">AsyncQtApplication.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a086b4d128771ea86bc9049311247583e"></a><!-- doxytag: member="Async::QtApplication::QtApplication" ref="a086b4d128771ea86bc9049311247583e" args="(int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Async::QtApplication::QtApplication </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&nbsp;</td>
          <td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor. </p>
<p>The two arguments typically are the arguments given to the <em>main</em> function. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>The number of command line arguments + 1 </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>An array containing the commandline arguments </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a59bcae64f314c53ff83d562600aa23e9"></a><!-- doxytag: member="Async::QtApplication::~QtApplication" ref="a59bcae64f314c53ff83d562600aa23e9" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Async::QtApplication::~QtApplication </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9c126053824af95e9cbd0860028b5806"></a><!-- doxytag: member="Async::QtApplication::exec" ref="a9c126053824af95e9cbd0860028b5806" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Async::QtApplication::exec </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Execute the application main loop. </p>
<p>When this member function is called the application core will enter the main loop. It will not exit from this loop until the <a class="el" href="classAsync_1_1Application.html#ac4b9e6a600d782f750992d86fee5cea3" title="Exit the application main loop.">Async::Application::quit</a> method is called. </p>

<p>Implements <a class="el" href="classAsync_1_1Application.html#a860cbc9a94794b734642743a2ce15843">Async::Application</a>.</p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="AsyncQtApplication__demo_8cpp-example.html#a1">AsyncQtApplication_demo.cpp</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9fce02c06390d7bd6c4594bd3407c680"></a><!-- doxytag: member="Async::QtApplication::quit" ref="a9fce02c06390d7bd6c4594bd3407c680" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Async::QtApplication::quit </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Exit the application main loop. </p>
<p>This function should be called to exit the application core main loop. </p>

<p>Implements <a class="el" href="classAsync_1_1Application.html#ac4b9e6a600d782f750992d86fee5cea3">Async::Application</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="AsyncQtApplication_8h_source.html">AsyncQtApplication.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>