dbus-cxx logo
glibmm/dispatcher.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007,2008,2009,2010 by Rick L. Vinyard, Jr. *
3  * rvinyard@cs.nmsu.edu *
4  * *
5  * This file is part of the dbus-cxx library. *
6  * *
7  * The dbus-cxx library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * version 3 as published by the Free Software Foundation. *
10  * *
11  * The dbus-cxx library is distributed in the hope that it will be *
12  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14  * General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this software. If not see <http://www.gnu.org/licenses/>. *
18  ***************************************************************************/
19 #include <dbus-cxx/dispatcher.h>
20 #include <glibmm/main.h>
21 #include <glibmm/dispatcher.h>
22 
23 #ifndef DBUSCXX_GLIBMM_DISPATCHER_H
24 #define DBUSCXX_GLIBMM_DISPATCHER_H
25 
26 namespace DBus
27 {
28  namespace Glib {
29 
44  {
45  public:
46 
47  typedef DBusCxxPointer<Dispatcher> pointer;
48 
49  typedef DBusCxxPointer<const Dispatcher> const_pointer;
50 
51  Dispatcher(bool is_running=true);
52 
53  Dispatcher(bool is_running, const ::Glib::RefPtr< ::Glib::MainContext >& context );
54 
55  static pointer create( bool is_running=true );
56 
57  static pointer create( bool is_running, const ::Glib::RefPtr< ::Glib::MainContext >& context );
58 
59  virtual ~Dispatcher();
60 
61  protected:
62 
64 
65  virtual void dispatch_thread_main();
66 
67  void on_glibmm_dispatch();
68  };
69 
70  }
71 }
72 
73 #endif
virtual void dispatch_thread_main()
Definition: glibmm/dispatcher.cpp:62
Definition: accumulators.h:24
bool is_running()
Definition: dispatcher.cpp:144
void on_glibmm_dispatch()
Definition: glibmm/dispatcher.cpp:79
static pointer create(bool is_running=true)
Definition: glibmm/dispatcher.cpp:47
DBusCxxPointer< const Dispatcher > const_pointer
Definition: glibmm/dispatcher.h:49
::Glib::Dispatcher m_glibmm_dispatcher
Definition: glibmm/dispatcher.h:63
virtual ~Dispatcher()
Definition: glibmm/dispatcher.cpp:57
Handles multi-threaded dispatching of one or more connections.
Definition: dispatcher.h:51
Reimplements DBus::Dispatcher to conduct all dispatching in the provided Glib MainContext if one is p...
Definition: glibmm/dispatcher.h:43
Dispatcher(bool is_running=true)
Definition: glibmm/dispatcher.cpp:32
DBusCxxPointer< Dispatcher > pointer
Definition: glibmm/dispatcher.h:47

Generated on Sun Mar 19 2017 14:54:27 for dbus-cxx by doxygen 1.8.8