MessageBus
Object Hierarchy:
Description:
[ CCode ( type_id = "gedit_message_bus_get_type ()" ) ]
public class MessageBus : Object
Content:
Static methods:
Creation methods:
Methods:
- public void @foreach (MessageBusForeach func)
Calls func
for each message type registered on the bus
- public void block (uint id)
Blocks evoking the callback specified by id
.
- public void block_by_func (string object_path, string method, MessageCallback callback)
Blocks evoking the callback that matches provided callback
and user_data
.
- public uint connect (string object_path, string method, owned MessageCallback callback)
Connect a callback handler to be evoked when message method
at object_path
is sent over the bus.
- public void disconnect (uint id)
Disconnects a previously connected message callback.
- public void disconnect_by_func (string object_path, string method, MessageCallback callback)
Disconnects a previously connected message callback by matching the
provided callback function and user_data.
- public bool is_registered (string object_path, string method)
Check whether a message type method
at object_path
is registered on the bus.
- public Type lookup (string object_path, string method)
Get the registered GeditMessageType
for method
at object_path
.
- public void register (Type message_type, string object_path, string method)
Register a message on the bus.
- public void send_message (Message message)
This sends the provided message
asynchronously over the
bus.
- public void send_message_sync (Message message)
This sends the provided message
synchronously over the
bus.
- public void unblock (uint id)
Unblocks the callback specified by id
.
- public void unblock_by_func (string object_path, string method, MessageCallback callback)
Unblocks the callback that matches provided callback
and
user_data
.
- public void unregister (string object_path, string method)
Unregisters a previously registered message type.
- public void unregister_all (string object_path)
Unregisters all message types for object_path
.
Signals:
- public virtual signal void dispatch (Message message)
The "dispatch" signal is emitted when a message is to be dispatched.
- public virtual signal void registered (string object_path, string method)
The "registered" signal is emitted when a message has been registered
on the bus.
- public virtual signal void unregistered (string object_path, string method)
The "unregistered" signal is emitted when a message has been
unregistered from the bus.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref