diff options
Diffstat (limited to 'include/dbus-c++/glib-integration.h')
-rw-r--r-- | include/dbus-c++/glib-integration.h | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/include/dbus-c++/glib-integration.h b/include/dbus-c++/glib-integration.h index 0f68852..e6adece 100644 --- a/include/dbus-c++/glib-integration.h +++ b/include/dbus-c++/glib-integration.h @@ -30,9 +30,11 @@ #include "api.h" #include "dispatcher.h" -namespace DBus { +namespace DBus +{ -namespace Glib { +namespace Glib +{ class BusDispatcher; @@ -40,80 +42,80 @@ class DXXAPI BusTimeout : public Timeout { private: - BusTimeout(Timeout::Internal *, GMainContext *, int); + BusTimeout(Timeout::Internal *, GMainContext *, int); - ~BusTimeout(); + ~BusTimeout(); - void toggle(); + void toggle(); - static gboolean timeout_handler(gpointer); + static gboolean timeout_handler(gpointer); - void _enable(); + void _enable(); - void _disable(); + void _disable(); private: - GMainContext *_ctx; - int _priority; - GSource *_source; + GMainContext *_ctx; + int _priority; + GSource *_source; -friend class BusDispatcher; + friend class BusDispatcher; }; class DXXAPI BusWatch : public Watch { private: - BusWatch(Watch::Internal *, GMainContext *, int); + BusWatch(Watch::Internal *, GMainContext *, int); - ~BusWatch(); + ~BusWatch(); - void toggle(); + void toggle(); - static gboolean watch_handler(gpointer); + static gboolean watch_handler(gpointer); - void _enable(); + void _enable(); - void _disable(); + void _disable(); private: - GMainContext *_ctx; - int _priority; - GSource *_source; + GMainContext *_ctx; + int _priority; + GSource *_source; -friend class BusDispatcher; + friend class BusDispatcher; }; class DXXAPI BusDispatcher : public Dispatcher { public: - BusDispatcher(); - ~BusDispatcher(); + BusDispatcher(); + ~BusDispatcher(); - void attach(GMainContext *); + void attach(GMainContext *); - void enter() {} + void enter() {} - void leave() {} + void leave() {} - Timeout *add_timeout(Timeout::Internal *); + Timeout *add_timeout(Timeout::Internal *); - void rem_timeout(Timeout *); + void rem_timeout(Timeout *); - Watch *add_watch(Watch::Internal *); + Watch *add_watch(Watch::Internal *); - void rem_watch(Watch *); + void rem_watch(Watch *); - void set_priority(int priority); + void set_priority(int priority); private: - GMainContext *_ctx; - int _priority; - GSource *_source; + GMainContext *_ctx; + int _priority; + GSource *_source; }; } /* namespace Glib */ |