MessageBus
Object Hierarchy:
Description:
Namespace: Gedit
Package: gedit
Content:
Static methods:
- public static unowned MessageBus get_default ()
Get the default application MessageBus.
Creation methods:
- public MessageBus ()
Create a new message bus.
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
anduser_data
. - public uint connect (string object_path, string method, owned MessageCallback callback)
Connect a callback handler to be evoked when message
method
atobject_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
atobject_path
is registered on the bus. - public Type lookup (string object_path, string method)
Get the registered
GeditMessageType
formethod
atobject_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
anduser_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