BaseClient
Object Hierarchy:
TelepathyGLib.BaseClient
TelepathyGLib.BaseClient
TelepathyGLib.BaseClient
GLib.Object
GLib.Object
GLib.Object->TelepathyGLib.BaseClient
Description:
[ CCode ( type_id = "tp_base_client_get_type ()" ) ] [ Version ( since = "0.11.5" ) ]public abstract class BaseClient : Object
Data structure representing a generic TpSvcClient
implementation.
Content:
Properties:
Creation methods:
Methods:
public void add_account_features (Quark [] features)
public void add_approver_filter (HashTable <string ,Value ?> filter)
Register a new channel class as Approver.
public void add_approver_filter_vardict (Variant filter)
Register a new channel class as Approver.
public void add_channel_features (Quark [] features)
public void add_connection_features (Quark [] features)
public virtual void add_dispatch_operation (Account account, Connection connection, List <Channel > channels, ChannelDispatchOperation dispatch_operation, AddDispatchOperationContext context)
public void add_handler_capabilities (string [] tokens)
Add several capability tokens to this client.
public void add_handler_capability (string token)
public void add_handler_filter (HashTable <string ,Value ?> filter)
Register a new channel class as Handler.
public void add_handler_filter_vardict (Variant filter)
Register a new channel class as Handler.
public void add_observer_filter (HashTable <string ,Value ?> filter)
Register a new channel class as Observer.
public void add_observer_filter_vardict (Variant filter)
Register a new channel class as Observer.
public void be_a_handler ()
Register this as a Client.
public async bool delegate_channels_async (List <Channel > channels, int64 user_action_time, string preferred_handler, out GenericArray <unowned Channel > delegated, out HashTable <unowned Channel ,unowned Error > not_delegated) throws Error
Asynchronously calls DelegateChannels on the ChannelDispatcher to try
stopping handling channels
and pass them to another Handler.
public List <Channel > dup_handled_channels ()
Returns the set of channels currently handled by this base client or
by any other BaseClient with which it shares a unique name.
public List <ChannelRequest > dup_pending_requests ()
public unowned string get_bus_name ()
Return the bus name of this .
public unowned DBusDaemon get_dbus_daemon ()
Return the
dbus_daemon construct-only property, which represents the
D-Bus connection used to export this client object.
public List <unowned Channel > get_handled_channels ()
Returns the set of channels currently handled by this base client or
by any other BaseClient with which it shares a unique name.
public unowned string get_name ()
Return the
name construct-only property, which is used as part of the bus name
and object path.
public unowned string get_object_path ()
Return the object path of this .
public List <unowned ChannelRequest > get_pending_requests ()
public bool get_uniquify_name ()
Return the
uniquify_name construct-only property; if this is true, the
bus name and object path will be made unique by appending a suffix that includes the D-Bus unique name and a per-process counter.
public virtual void handle_channels (Account account, Connection connection, List <Channel > channels, List <ChannelRequest > requests_satisfied, int64 user_action_time, HandleChannelsContext context)
public bool is_handling_channel (Channel channel)
Check if this is currently handling
channel
.
public virtual void observe_channels (Account account, Connection connection, List <Channel > channels, ChannelDispatchOperation ? dispatch_operation, List <ChannelRequest > requests, ObserveChannelsContext context)
public bool register () throws Error
Publish this as an available client.
public void set_channel_factory (ClientChannelFactory factory)
public void set_delegated_channels_callback (owned BaseClientDelegatedChannelsCb callback)
Turn on support for the org.
public void set_handler_bypass_approval (bool bypass_approval)
Set whether the channels destined for this handler are automatically
handled, without invoking approvers.
public void set_handler_request_notification ()
Indicate that this is a Handler
willing to be notified about requests for channels that it is likely to be asked to handle.
public void set_observer_delay_approvers (bool delay)
public void set_observer_recover (bool recover)
Set whether the channel dispatcher should attempt to recover this
Observer if it crashes.
public void unregister ()
Remove this client object from D-Bus, if
register has already been called.
Signals:
public signal void request_added (Account account, ChannelRequest request)
Emitted when a channels have been requested, and that if the request
is successful, they will probably be handled by this Handler.
public signal void request_removed (ChannelRequest request, string error, string message)
Emitted when a request has failed and should be disregarded.
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