~ubuntu-branches/ubuntu/trusty/glibmm2.4/trusty

« back to all changes in this revision

Viewing changes to docs/reference/html/classGlib_1_1SignalTimeout.html

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-06-18 12:13:18 UTC
  • mfrom: (1.2.73)
  • Revision ID: package-import@ubuntu.com-20120618121318-88t4ppyo8lq7s4ph
Tags: 2.33.1-0ubuntu1
* New upstream release
* debian/control:
  - Bump build-depends on libglib2.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
 
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6
5
<title>glibmm: Glib::SignalTimeout Class Reference</title>
7
6
 
8
7
<link href="tabs.css" rel="stylesheet" type="text/css"/>
23
22
  
24
23
  <td style="padding-left: 0.5em;">
25
24
   <div id="projectname">glibmm
26
 
   &#160;<span id="projectnumber">2.32.0</span>
 
25
   &#160;<span id="projectnumber">2.33.1</span>
27
26
   </div>
28
27
   
29
28
  </td>
35
34
</table>
36
35
</div>
37
36
 
38
 
<!-- Generated by Doxygen 1.7.6.1 -->
 
37
<!-- Generated by Doxygen 1.7.5 -->
39
38
  <div id="navrow1" class="tabs">
40
39
    <ul class="tablist">
41
40
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
66
65
<a href="#pub-methods">Public Member Functions</a> </div>
67
66
  <div class="headertitle">
68
67
<div class="title">Glib::SignalTimeout Class Reference<div class="ingroups"><a class="el" href="group__MainLoop.html">The Main Event Loop</a></div></div> </div>
69
 
</div><!--header-->
 
68
</div>
70
69
<div class="contents">
71
70
<!-- doxytag: class="Glib::SignalTimeout" -->
72
71
<p><code>#include &lt;glibmm/main.h&gt;</code></p>
75
74
<table class="memberdecls">
76
75
<tr><td colspan="2"><h2><a name="pub-methods"></a>
77
76
Public Member Functions</h2></td></tr>
78
 
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#a75b555ed13d91e6903e927f9e0d7afd2">connect</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; bool &gt;&amp; slot, unsigned int interval, int priority=<a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a>)</td></tr>
 
77
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#a75b555ed13d91e6903e927f9e0d7afd2">connect</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; bool &gt;&amp; slot, unsigned int interval, int priority=PRIORITY_DEFAULT)</td></tr>
79
78
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects a timeout handler. <a href="#a75b555ed13d91e6903e927f9e0d7afd2"></a><br/></td></tr>
80
 
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#a4ea8fdd120102d7963709916f28b2bcc">connect_once</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt;&amp; slot, unsigned int interval, int priority=<a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a>)</td></tr>
 
79
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#a4ea8fdd120102d7963709916f28b2bcc">connect_once</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt;&amp; slot, unsigned int interval, int priority=PRIORITY_DEFAULT)</td></tr>
81
80
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects a timeout handler that runs only once. <a href="#a4ea8fdd120102d7963709916f28b2bcc"></a><br/></td></tr>
82
 
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#a02ad93aa55aa48d48263df628b69fa95">connect_seconds</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; bool &gt;&amp; slot, unsigned int interval, int priority=<a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a>)</td></tr>
 
81
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#a02ad93aa55aa48d48263df628b69fa95">connect_seconds</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; bool &gt;&amp; slot, unsigned int interval, int priority=PRIORITY_DEFAULT)</td></tr>
83
82
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects a timeout handler with whole second granularity. <a href="#a02ad93aa55aa48d48263df628b69fa95"></a><br/></td></tr>
84
 
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#aebbfd6e94c3c04bfac53f89e53fafa93">connect_seconds_once</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt;&amp; slot, unsigned int interval, int priority=<a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a>)</td></tr>
 
83
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1SignalTimeout.html#aebbfd6e94c3c04bfac53f89e53fafa93">connect_seconds_once</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt;&amp; slot, unsigned int interval, int priority=PRIORITY_DEFAULT)</td></tr>
85
84
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connects a timeout handler that runs only once with whole second granularity. <a href="#aebbfd6e94c3c04bfac53f89e53fafa93"></a><br/></td></tr>
86
85
</table>
87
86
<hr/><h2>Member Function Documentation</h2>
90
89
<div class="memproto">
91
90
      <table class="memname">
92
91
        <tr>
93
 
          <td class="memname"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a> <a class="el" href="classGlib_1_1SignalTimeout.html#a75b555ed13d91e6903e927f9e0d7afd2">Glib::SignalTimeout::connect</a> </td>
 
92
          <td class="memname"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a> Glib::SignalTimeout::connect </td>
94
93
          <td>(</td>
95
94
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; bool &gt; &amp;&#160;</td>
96
95
          <td class="paramname"><em>slot</em>, </td>
105
104
          <td class="paramkey"></td>
106
105
          <td></td>
107
106
          <td class="paramtype">int&#160;</td>
108
 
          <td class="paramname"><em>priority</em> = <code><a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a></code>&#160;</td>
 
107
          <td class="paramname"><em>priority</em> = <code>PRIORITY_DEFAULT</code>&#160;</td>
109
108
        </tr>
110
109
        <tr>
111
110
          <td></td>
120
119
<p>Note that timeout functions may be delayed, due to the processing of other event sources. Thus they should not be relied on for precise timing. After each call to the timeout function, the time of the next timeout is recalculated based on the current time and the given interval (it does not try to 'catch up' time lost in delays).</p>
121
120
<p>If you want to have a timer in the "seconds" range and do not care about the exact time of the first call of the timer, use the <a class="el" href="classGlib_1_1SignalTimeout.html#a02ad93aa55aa48d48263df628b69fa95" title="Connects a timeout handler with whole second granularity.">connect_seconds()</a> function; this function allows for more optimizations and more efficient system power usage.</p>
122
121
<div class="fragment"><pre class="fragment"> <span class="keywordtype">bool</span> timeout_handler() { ... }
123
 
 <a class="code" href="group__MainLoop.html#gaadb206fcc112f086f9d47c016b1f2175" title="Convenience timeout signal.">Glib::signal_timeout</a>().<a class="code" href="classGlib_1_1SignalTimeout.html#a75b555ed13d91e6903e927f9e0d7afd2" title="Connects a timeout handler.">connect</a>(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler), 1000);
 
122
 <a class="code" href="group__MainLoop.html#gaadb206fcc112f086f9d47c016b1f2175" title="Convenience timeout signal.">Glib::signal_timeout</a>().connect(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler), 1000);
124
123
</pre></div><p> is equivalent to: </p>
125
124
<div class="fragment"><pre class="fragment"> <span class="keywordtype">bool</span> timeout_handler() { ... }
126
 
 <span class="keyword">const</span> <a class="code" href="classGlib_1_1RefPtr.html" title="RefPtr&lt;&gt; is a reference-counting shared smartpointer.">Glib::RefPtr&lt;Glib::TimeoutSource&gt;</a> timeout_source = <a class="code" href="classGlib_1_1Source.html#aeaffb039abf99982d7a89403bca71569">Glib::TimeoutSource::create</a>(1000);
127
 
 timeout_source-&gt;<a class="code" href="classGlib_1_1TimeoutSource.html#afd5504a056dbbf1c2aa38450c59c197d">connect</a>(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler));
128
 
 timeout_source-&gt;<a class="code" href="classGlib_1_1Source.html#aa61d28e643f2b286203b0d8e533b2c88" title="Adds a Source to a context so that it will be executed within that context.">attach</a>(<a class="code" href="classGlib_1_1MainContext.html#a1502cbed045a9fb27d18c6975e1d255d" title="Returns the default main context.">Glib::MainContext::get_default</a>());
129
 
</pre></div> <dl class="params"><dt><b>Parameters:</b></dt><dd>
 
125
 <span class="keyword">const</span> Glib::RefPtr&lt;Glib::TimeoutSource&gt; timeout_source = <a class="code" href="classGlib_1_1Source.html#aeaffb039abf99982d7a89403bca71569">Glib::TimeoutSource::create</a>(1000);
 
126
 timeout_source-&gt;connect(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler));
 
127
 timeout_source-&gt;attach(<a class="code" href="classGlib_1_1MainContext.html#a1502cbed045a9fb27d18c6975e1d255d" title="Returns the default main context.">Glib::MainContext::get_default</a>());
 
128
</pre></div> <dl><dt><b>Parameters:</b></dt><dd>
130
129
  <table class="params">
131
130
    <tr><td class="paramname">slot</td><td>A slot to call when <em>interval</em> has elapsed. If <code>timeout_handler()</code> returns <code>false</code> the handler is disconnected. </td></tr>
132
131
    <tr><td class="paramname">interval</td><td>The timeout in milliseconds. </td></tr>
143
142
<div class="memproto">
144
143
      <table class="memname">
145
144
        <tr>
146
 
          <td class="memname">void <a class="el" href="classGlib_1_1SignalTimeout.html#a4ea8fdd120102d7963709916f28b2bcc">Glib::SignalTimeout::connect_once</a> </td>
 
145
          <td class="memname">void Glib::SignalTimeout::connect_once </td>
147
146
          <td>(</td>
148
147
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt; &amp;&#160;</td>
149
148
          <td class="paramname"><em>slot</em>, </td>
158
157
          <td class="paramkey"></td>
159
158
          <td></td>
160
159
          <td class="paramtype">int&#160;</td>
161
 
          <td class="paramname"><em>priority</em> = <code><a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a></code>&#160;</td>
 
160
          <td class="paramname"><em>priority</em> = <code>PRIORITY_DEFAULT</code>&#160;</td>
162
161
        </tr>
163
162
        <tr>
164
163
          <td></td>
172
171
<p>Connects a timeout handler that runs only once. </p>
173
172
<p>This method takes a function pointer to a function with a void return and no parameters. After running once it is not called again.</p>
174
173
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classGlib_1_1SignalTimeout.html#a75b555ed13d91e6903e927f9e0d7afd2" title="Connects a timeout handler.">connect()</a> </dd></dl>
175
 
<dl class="params"><dt><b>Parameters:</b></dt><dd>
 
174
<dl><dt><b>Parameters:</b></dt><dd>
176
175
  <table class="params">
177
176
    <tr><td class="paramname">slot</td><td>A slot to call when <em>interval</em> has elapsed. For example: <div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> on_timeout_once()
178
177
</pre></div> </td></tr>
189
188
<div class="memproto">
190
189
      <table class="memname">
191
190
        <tr>
192
 
          <td class="memname"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a> <a class="el" href="classGlib_1_1SignalTimeout.html#a02ad93aa55aa48d48263df628b69fa95">Glib::SignalTimeout::connect_seconds</a> </td>
 
191
          <td class="memname"><a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/structsigc_1_1connection.html">sigc::connection</a> Glib::SignalTimeout::connect_seconds </td>
193
192
          <td>(</td>
194
193
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; bool &gt; &amp;&#160;</td>
195
194
          <td class="paramname"><em>slot</em>, </td>
204
203
          <td class="paramkey"></td>
205
204
          <td></td>
206
205
          <td class="paramtype">int&#160;</td>
207
 
          <td class="paramname"><em>priority</em> = <code><a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a></code>&#160;</td>
 
206
          <td class="paramname"><em>priority</em> = <code>PRIORITY_DEFAULT</code>&#160;</td>
208
207
        </tr>
209
208
        <tr>
210
209
          <td></td>
219
218
<p>Unlike <a class="el" href="classGlib_1_1SignalTimeout.html#a75b555ed13d91e6903e927f9e0d7afd2" title="Connects a timeout handler.">connect()</a>, this operates at whole second granularity. The initial starting point of the timer is determined by the implementation and the implementation is expected to group multiple timers together so that they fire all at the same time.</p>
220
219
<p>To allow this grouping, the <em>interval</em> to the first timer is rounded and can deviate up to one second from the specified interval. Subsequent timer iterations will generally run at the specified interval.</p>
221
220
<div class="fragment"><pre class="fragment"> <span class="keywordtype">bool</span> timeout_handler() { ... }
222
 
 <a class="code" href="group__MainLoop.html#gaadb206fcc112f086f9d47c016b1f2175" title="Convenience timeout signal.">Glib::signal_timeout</a>().<a class="code" href="classGlib_1_1SignalTimeout.html#a02ad93aa55aa48d48263df628b69fa95" title="Connects a timeout handler with whole second granularity.">connect_seconds</a>(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler), 5);
 
221
 <a class="code" href="group__MainLoop.html#gaadb206fcc112f086f9d47c016b1f2175" title="Convenience timeout signal.">Glib::signal_timeout</a>().connect_seconds(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler), 5);
223
222
</pre></div><p> is equivalent to: </p>
224
223
<div class="fragment"><pre class="fragment"> <span class="keywordtype">bool</span> timeout_handler() { ... }
225
 
 <span class="keyword">const</span> <a class="code" href="classGlib_1_1RefPtr.html" title="RefPtr&lt;&gt; is a reference-counting shared smartpointer.">Glib::RefPtr&lt;Glib::TimeoutSource&gt;</a> timeout_source = <a class="code" href="classGlib_1_1Source.html#aeaffb039abf99982d7a89403bca71569">Glib::TimeoutSource::create</a>(5000);
226
 
 timeout_source-&gt;<a class="code" href="classGlib_1_1TimeoutSource.html#afd5504a056dbbf1c2aa38450c59c197d">connect</a>(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler));
227
 
 timeout_source-&gt;<a class="code" href="classGlib_1_1Source.html#aa61d28e643f2b286203b0d8e533b2c88" title="Adds a Source to a context so that it will be executed within that context.">attach</a>(<a class="code" href="classGlib_1_1MainContext.html#a1502cbed045a9fb27d18c6975e1d255d" title="Returns the default main context.">Glib::MainContext::get_default</a>());
228
 
</pre></div> <dl class="params"><dt><b>Parameters:</b></dt><dd>
 
224
 <span class="keyword">const</span> Glib::RefPtr&lt;Glib::TimeoutSource&gt; timeout_source = <a class="code" href="classGlib_1_1Source.html#aeaffb039abf99982d7a89403bca71569">Glib::TimeoutSource::create</a>(5000);
 
225
 timeout_source-&gt;connect(<a class="codeRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/group__ptr__fun.html#ga9c80de72f656fb05e81fda622dddc863">sigc::ptr_fun</a>(&amp;timeout_handler));
 
226
 timeout_source-&gt;attach(<a class="code" href="classGlib_1_1MainContext.html#a1502cbed045a9fb27d18c6975e1d255d" title="Returns the default main context.">Glib::MainContext::get_default</a>());
 
227
</pre></div> <dl><dt><b>Parameters:</b></dt><dd>
229
228
  <table class="params">
230
229
    <tr><td class="paramname">slot</td><td>A slot to call when <em>interval</em> has elapsed. If <code>timeout_handler()</code> returns <code>false</code> the handler is disconnected. </td></tr>
231
230
    <tr><td class="paramname">interval</td><td>The timeout in seconds. </td></tr>
243
242
<div class="memproto">
244
243
      <table class="memname">
245
244
        <tr>
246
 
          <td class="memname">void <a class="el" href="classGlib_1_1SignalTimeout.html#aebbfd6e94c3c04bfac53f89e53fafa93">Glib::SignalTimeout::connect_seconds_once</a> </td>
 
245
          <td class="memname">void Glib::SignalTimeout::connect_seconds_once </td>
247
246
          <td>(</td>
248
247
          <td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">sigc::slot</a>&lt; void &gt; &amp;&#160;</td>
249
248
          <td class="paramname"><em>slot</em>, </td>
258
257
          <td class="paramkey"></td>
259
258
          <td></td>
260
259
          <td class="paramtype">int&#160;</td>
261
 
          <td class="paramname"><em>priority</em> = <code><a class="el" href="namespaceGlib.html#a0c450f82b9e34689e2dda2038ba7834fa597ed3aa6067516c9c752896f3816b5e">PRIORITY_DEFAULT</a></code>&#160;</td>
 
260
          <td class="paramname"><em>priority</em> = <code>PRIORITY_DEFAULT</code>&#160;</td>
262
261
        </tr>
263
262
        <tr>
264
263
          <td></td>
272
271
<p>Connects a timeout handler that runs only once with whole second granularity. </p>
273
272
<p>This method takes a function pointer to a function with a void return and no parameters. After running once it is not called again.</p>
274
273
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classGlib_1_1SignalTimeout.html#a02ad93aa55aa48d48263df628b69fa95" title="Connects a timeout handler with whole second granularity.">connect_seconds()</a> </dd></dl>
275
 
<dl class="params"><dt><b>Parameters:</b></dt><dd>
 
274
<dl><dt><b>Parameters:</b></dt><dd>
276
275
  <table class="params">
277
276
    <tr><td class="paramname">slot</td><td>A slot to call when <em>interval</em> has elapsed. For example: <div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> on_timeout_once()
278
277
</pre></div> </td></tr>
284
283
 
285
284
</div>
286
285
</div>
287
 
</div><!-- contents -->
 
286
</div>
288
287
 
289
288
 
290
289
<hr class="footer"/><address class="footer"><small>
291
 
Generated on Tue Apr 10 2012 14:20:40 for glibmm by &#160;<a href="http://www.doxygen.org/index.html">
 
290
Generated on Tue Jun 12 2012 09:21:31 for glibmm by &#160;<a href="http://www.doxygen.org/index.html">
292
291
<img class="footer" src="doxygen.png" alt="doxygen"/>
293
 
</a> 1.7.6.1
 
292
</a> 1.7.5
294
293
</small></address>
295
294
 
296
295
</body>