~kklimonda/ubuntu/natty/glibmm2.4/update

« back to all changes in this revision

Viewing changes to glib/glibmm/main.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-03-03 00:17:17 UTC
  • mfrom: (1.2.33 upstream)
  • Revision ID: james.westby@ubuntu.com-20090303001717-pyrbdlacqpb4y95q
Tags: 2.19.3-0ubuntu1
* New upstream release (LP: #336940)
  + New API:
   - BufferedInputStream: buffer_size property
   - BufferedOutputStream: buffer_size, auto_grow properties
   - DataInputStream: byte_order, newline_type properties
   - DataOutputStream: byte_order property
   - FilterInputStream: close_base_stream property,
     get/set_close_base_stream()
   - FilterOutputStream: close_base_stream property,
     get/set_close_base_stream()
   - UnixInputStream: fd and close_fd properties, get_fd(),
     get/set_close_fd()
   - UnixOutputStream: fd and close_fd properties, get_fd(),
     get/set_close_fd()
  + Make licenses consistent with eachother (library gpl vs. lesser gpl,
    etc)
  + Fixed some problems when building with exceptions disabled (Murray
    Cumming)
  + Build fixes (Theppitak Karoonboonyanan)
* Add usr/lib/giomm-2.4 to debian/libglibmm-2.4-dev.install
* debian/rules: bump SHVER value
* debian/control.in
  - add Vcs-Bzr tag
  - bump libglib2.0-dev to 2.19.0
  - Re-generate debian/control
* Update debian/watch to take unstable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#ifndef _GLIBMM_MAIN_H
3
3
#define _GLIBMM_MAIN_H
4
4
 
5
 
/* $Id: main.h 589 2008-02-07 22:49:51Z murrayc $ */
 
5
/* $Id: main.h 779 2009-01-19 17:58:50Z murrayc $ */
6
6
 
7
7
/* Copyright (C) 2002 The gtkmm Development Team
8
8
 *
9
9
 * This library is free software; you can redistribute it and/or
10
 
 * modify it under the terms of the GNU Library General Public
 
10
 * modify it under the terms of the GNU Lesser General Public
11
11
 * License as published by the Free Software Foundation; either
12
 
 * version 2 of the License, or (at your option) any later version.
 
12
 * version 2.1 of the License, or (at your option) any later version.
13
13
 *
14
14
 * This library is distributed in the hope that it will be useful,
15
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
 * Library General Public License for more details.
 
17
 * Lesser General Public License for more details.
18
18
 *
19
 
 * You should have received a copy of the GNU Library General Public
 
19
 * You should have received a copy of the GNU Lesser General Public
20
20
 * License along with this library; if not, write to the Free
21
21
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
22
 */
23
23
 
24
 
#include <glib/giochannel.h>
25
 
#include <glib/gmain.h>
 
24
#include <glib.h>
26
25
 
27
26
#include <vector>
28
27
#include <sigc++/sigc++.h>
161
160
  sigc::connection connect(const sigc::slot<bool>& slot, unsigned int interval,
162
161
                           int priority = PRIORITY_DEFAULT);
163
162
 
 
163
 /** Connects an timeout handler that runs only once.
 
164
  * This method takes a function pointer to a function with a void return
 
165
  * and no parameters. After running once it is not called again.
 
166
  *
 
167
  * @see connect
 
168
  * @param slot A slot to call when @a interval has elapsed. For example:
 
169
  * @code
 
170
  * void on_timeout_once()
 
171
  * @endcode
 
172
  * @param interval The timeout in milliseconds.
 
173
  * @param priority The priority of the new event source. 
 
174
  */
 
175
  void connect_once(const sigc::slot<void>& slot, unsigned int interval,
 
176
                    int priority = PRIORITY_DEFAULT);
164
177
 
165
178
  /** Connects a timeout handler with whole second granularity.
166
179
   *
192
205
  sigc::connection connect_seconds(const sigc::slot<bool>& slot, unsigned int interval,
193
206
                           int priority = PRIORITY_DEFAULT);
194
207
 
 
208
 /** Connects an timeout handler that runs only once with whole second
 
209
  *  granularity.
 
210
  *
 
211
  * This method takes a function pointer to a function with a void return
 
212
  * and no parameters. After running once it is not called again.
 
213
  *
 
214
  * @see connect_seconds
 
215
  * @param slot A slot to call when @a interval has elapsed. For example:
 
216
  * @code
 
217
  * void on_timeout_once()
 
218
  * @endcode
 
219
  * @param interval The timeout in milliseconds.
 
220
  * @param priority The priority of the new event source. 
 
221
  */
 
222
  void connect_seconds_once(const sigc::slot<void>& slot, unsigned int interval,
 
223
                            int priority = PRIORITY_DEFAULT);
 
224
 
195
225
private:
196
226
  GMainContext* context_;
197
227
 
223
253
   */
224
254
  sigc::connection connect(const sigc::slot<bool>& slot, int priority = PRIORITY_DEFAULT_IDLE);
225
255
 
 
256
 /** Connects an idle handler that runs only once.
 
257
  * This method takes a function pointer to a function with a void return
 
258
  * and no parameters. After running once it is not called again.
 
259
  */
 
260
  void connect_once(const sigc::slot<void>& slot, int priority = PRIORITY_DEFAULT_IDLE);
 
261
 
226
262
private:
227
263
  GMainContext* context_;
228
264