aboutsummaryrefslogtreecommitdiff
path: root/libcontextprovider/doc/html/class_context_provider_1_1_queued_invoker.html
blob: 6bc16a33001820183a1cdc2cf98326282176d420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libcontextprovider: ContextProvider::QueuedInvoker 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.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</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="namespace_context_provider.html">ContextProvider</a>::<a class="el" href="class_context_provider_1_1_queued_invoker.html">QueuedInvoker</a>
  </div>
</div>
<div class="contents">
<h1>ContextProvider::QueuedInvoker Class Reference</h1><!-- doxytag: class="ContextProvider::QueuedInvoker" -->A class that can invoke its own methods in a delayed way.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="queuedinvoker_8h-source.html">queuedinvoker.h</a>&gt;</code>
<p>

<p>
<a href="class_context_provider_1_1_queued_invoker-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Signals</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_queued_invoker.html#bf3792e97a37ae6b620cc03cad3fd6c3">queuedCall</a> (const char *method)</td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_queued_invoker.html#ff9aa4633138af31f3009ebf7b99f5b8">QueuedInvoker</a> (QObject *parent=0)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_queued_invoker.html#6b26e01ea4e92ca556e9d7ddedbe8881">queueOnce</a> (const char *method)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the method <em>method</em> to be invoked when the event loop of this object runs next time.  <a href="#6b26e01ea4e92ca556e9d7ddedbe8881"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A class that can invoke its own methods in a delayed way. 
<p>
Via the method <a class="el" href="class_context_provider_1_1_queued_invoker.html#6b26e01ea4e92ca556e9d7ddedbe8881" title="Sets the method method to be invoked when the event loop of this object runs next...">QueuedInvoker::queueOnce</a>, the given method is set to be invoked when the event loop of the object is entered. Each method is queued at most once. <a class="el" href="class_context_provider_1_1_queued_invoker.html" title="A class that can invoke its own methods in a delayed way.">QueuedInvoker</a> sends a signal to itself, and when the signal is processed, the method is invoked.<p>
<a class="el" href="class_context_provider_1_1_queued_invoker.html" title="A class that can invoke its own methods in a delayed way.">QueuedInvoker</a> is normally used by subclassing it. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="ff9aa4633138af31f3009ebf7b99f5b8"></a><!-- doxytag: member="ContextProvider::QueuedInvoker::QueuedInvoker" ref="ff9aa4633138af31f3009ebf7b99f5b8" args="(QObject *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ContextProvider::QueuedInvoker::QueuedInvoker           </td>
          <td>(</td>
          <td class="paramtype">QObject *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="bf3792e97a37ae6b620cc03cad3fd6c3"></a><!-- doxytag: member="ContextProvider::QueuedInvoker::queuedCall" ref="bf3792e97a37ae6b620cc03cad3fd6c3" args="(const char *method)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::QueuedInvoker::queuedCall           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>method</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="6b26e01ea4e92ca556e9d7ddedbe8881"></a><!-- doxytag: member="ContextProvider::QueuedInvoker::queueOnce" ref="6b26e01ea4e92ca556e9d7ddedbe8881" args="(const char *method)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ContextProvider::QueuedInvoker::queueOnce           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>method</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the method <em>method</em> to be invoked when the event loop of this object runs next time. 
<p>
If the method was already in the queue, it won't be inserted again. 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="queuedinvoker_8h-source.html">queuedinvoker.h</a><li><a class="el" href="queuedinvoker_8cpp.html">queuedinvoker.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 23 08:58:39 2009 for libcontextprovider by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>