UDisksDeviceProxy::UDisksDeviceProxy(DBus::Connection &connection, DBus::Path &udi) : DBus::InterfaceProxy("org.freedesktop.UDisks"), DBus::ObjectProxy(connection, "/org/freedesktop/UDisks", "org.freedesktop.UDisks") { connect_signal(UDisksDeviceProxy, PropertyModified, PropertyModifiedCb); connect_signal(UDisksDeviceProxy, Condition, ConditionCb); }
virtual bool connect_signal_button_press_event() { const char* signal_name = "button-press-event"; return connect_signal (signal_name, (widget_signal_callback_t) (widget_signals::signal_button_press_event_callback), GDK_BUTTON_PRESS_MASK); }
virtual bool connect_signal_button_release_event() { const char* signal_name = "button-release-event"; return connect_signal (signal_name, (widget_signal_callback_t) (widget_signals::signal_button_release_event_callback), GDK_BUTTON_RELEASE_MASK); }
virtual bool connect_signal_configure_event() { const char* signal_name = "configure-event"; return connect_signal (signal_name, (widget_signal_callback_t) (widget_signals::signal_configure_event_callback), GDK_STRUCTURE_MASK); }
int connect_signal_no_user_data (OOP widget, char *event_name, OOP receiver, OOP selector) { return connect_signal (widget, event_name, receiver, selector, NULL); }
virtual bool connect_signal_activate() { const char* signal_name = "activate"; return connect_signal (signal_name, (search_entry_signal_callback_t) (this->search_entry_signal_activate_callback), (search_entry_signal_data_t)(this)); }
virtual bool connect_signal_search_changed() { const char* signal_name = "search-changed"; return connect_signal (signal_name, (search_entry_signal_callback_t) (this->search_entry_signal_search_changed_callback), (search_entry_signal_data_t)(this)); }
UDisksManagerProxy::UDisksManagerProxy(DBus::Connection &connection) : DBus::InterfaceProxy("org.freedesktop.UDisks"), DBus::ObjectProxy(connection, "/org/freedesktop/UDisks", "org.freedesktop.UDisks") { connect_signal(UDisksManagerProxy, DeviceAdded, DeviceAddedCb); connect_signal(UDisksManagerProxy, DeviceRemoved, DeviceRemovedCb); std::vector< DBus::Path > devices = GetAllDevices(); std::vector< DBus::Path >::iterator it; for (it = devices.begin(); it != devices.end(); ++it) { DBus::Path udi = *it; dsyslog("[vdr-dbus] UDisksManagerProxy :: found device %s", udi.c_str()); _devices[udi] = new UDisksDeviceProxy(connection, udi); } }
void network_broadcast_api::on_api_startup() { /// note cannot capture shared pointer here, because _applied_block_connection will never /// be freed if the lambda holds a reference to it. _applied_block_connection = connect_signal( _app.chain_database()->applied_block, *this, &network_broadcast_api::on_applied_block ); }
virtual bool connect_signal_draw() { const char* signal_name = "draw"; return connect_signal (signal_name, (widget_signal_callback_t) (widget_signals::signal_draw_callback)); }
virtual bool connect_signal_destroy() { const char* signal_name = "destroy"; return connect_signal (signal_name, (widget_signal_callback_t) (widget_signals::signal_destroy_callback)); }