telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
Service-side Channel Dispatcher interfaceService-side Channel Dispatcher interface — GInterfaces for Telepathy ChannelDispatcher object |
#include <telepathy-glib/telepathy-glib-dbus.h> TpSvcChannelDispatcher; TpSvcChannelDispatcherClass; void tp_svc_channel_dispatcher_return_from_create_channel (DBusGMethodInvocation *context
,const gchar *out_Request
); void (*tp_svc_channel_dispatcher_create_channel_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatcher_implement_create_channel (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_create_channel_impl impl
); void tp_svc_channel_dispatcher_return_from_create_channel_with_hints (DBusGMethodInvocation *context
,const gchar *out_Request
); void (*tp_svc_channel_dispatcher_create_channel_with_hints_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,GHashTable *in_Hints
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatcher_implement_create_channel_with_hints (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_create_channel_with_hints_impl impl
); void tp_svc_channel_dispatcher_return_from_ensure_channel (DBusGMethodInvocation *context
,const gchar *out_Request
); void (*tp_svc_channel_dispatcher_ensure_channel_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatcher_implement_ensure_channel (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_ensure_channel_impl impl
); void tp_svc_channel_dispatcher_return_from_ensure_channel_with_hints (DBusGMethodInvocation *context
,const gchar *out_Request
); void (*tp_svc_channel_dispatcher_ensure_channel_with_hints_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,GHashTable *in_Hints
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatcher_implement_ensure_channel_with_hints (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_ensure_channel_with_hints_impl impl
); void (*tp_svc_channel_dispatcher_delegate_channels_impl) (TpSvcChannelDispatcher *self
,const GPtrArray *in_Channels
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatcher_implement_delegate_channels (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_delegate_channels_impl impl
); void tp_svc_channel_dispatcher_implement_present_channel (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_present_channel_impl impl
); void (*tp_svc_channel_dispatcher_present_channel_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Channel
,gint64 in_User_Action_Time
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatcher_return_from_delegate_channels (DBusGMethodInvocation *context
,const GPtrArray *out_Delegated
,GHashTable *out_Not_Delegated
); void tp_svc_channel_dispatcher_return_from_present_channel (DBusGMethodInvocation *context
); TpSvcChannelDispatcherInterfaceOperationList; TpSvcChannelDispatcherInterfaceOperationListClass; void tp_svc_channel_dispatcher_interface_operation_list_emit_new_dispatch_operation (gpointer instance
,const gchar *arg_Dispatch_Operation
,GHashTable *arg_Properties
); void tp_svc_channel_dispatcher_interface_operation_list_emit_dispatch_operation_finished (gpointer instance
,const gchar *arg_Dispatch_Operation
); TpSvcChannelDispatcherInterfaceMessages1; TpSvcChannelDispatcherInterfaceMessages1Class; void tp_svc_channel_dispatcher_interface_messages1_implement_send_message (TpSvcChannelDispatcherInterfaceMessages1Class *klass
,tp_svc_channel_dispatcher_interface_messages1_send_message_impl impl
); void tp_svc_channel_dispatcher_interface_messages1_return_from_send_message (DBusGMethodInvocation *context
,const gchar *out_Token
); void (*tp_svc_channel_dispatcher_interface_messages1_send_message_impl) (TpSvcChannelDispatcherInterfaceMessages1 *self
,const gchar *in_Account
,const gchar *in_Target_ID
,const GPtrArray *in_Message
,guint in_Flags
,DBusGMethodInvocation *context
);
GInterface +----TpSvcChannelDispatcher
GInterface +----TpSvcChannelDispatcherInterfaceOperationList
GInterface +----TpSvcChannelDispatcherInterfaceMessages1
The TpSvcChannelDispatcher interface (auto-generated from the Telepathy spec) makes it easier to export an object implementing the Telepathy ChannelDispatcher interface, with the correct method and signal signatures, and emit signals from that object in a type-safe way.
Similarly, TpSvcChannelDispatcherInterfaceOperationList helps to implement the optional OperationList interface.
You don't need these interfaces unless you're implementing a Telepathy ChannelDispatcher, such as Mission Control.
typedef struct _TpSvcChannelDispatcher TpSvcChannelDispatcher;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelDispatcherClass TpSvcChannelDispatcherClass;
The class of TpSvcChannelDispatcher.
In a full implementation of this interface (i.e. all
methods implemented), the interface initialization
function used in G_IMPLEMENT_INTERFACE()
would
typically look like this:
static void implement_channel_dispatcher (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_channel_dispatcher_implement_##x (\ klass, my_object_##x) IMPLEMENT (create_channel); IMPLEMENT (ensure_channel); IMPLEMENT (create_channel_with_hints); IMPLEMENT (ensure_channel_with_hints); IMPLEMENT (delegate_channels); IMPLEMENT (present_channel); #undef IMPLEMENT }
void tp_svc_channel_dispatcher_return_from_create_channel (DBusGMethodInvocation *context
,const gchar *out_Request
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const gchar * (FIXME, generate documentation) |
void (*tp_svc_channel_dispatcher_create_channel_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method CreateChannel on interface org.freedesktop.Telepathy.ChannelDispatcher.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_dispatcher_implement_create_channel (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_create_channel_impl impl
);
Register an implementation for the CreateChannel method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the CreateChannel D-Bus method |
void tp_svc_channel_dispatcher_return_from_create_channel_with_hints (DBusGMethodInvocation *context
,const gchar *out_Request
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const gchar * (FIXME, generate documentation) |
void (*tp_svc_channel_dispatcher_create_channel_with_hints_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,GHashTable *in_Hints
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method CreateChannelWithHints on interface org.freedesktop.Telepathy.ChannelDispatcher.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_dispatcher_implement_create_channel_with_hints (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_create_channel_with_hints_impl impl
);
Register an implementation for the CreateChannelWithHints method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the CreateChannelWithHints D-Bus method |
void tp_svc_channel_dispatcher_return_from_ensure_channel (DBusGMethodInvocation *context
,const gchar *out_Request
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const gchar * (FIXME, generate documentation) |
void (*tp_svc_channel_dispatcher_ensure_channel_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method EnsureChannel on interface org.freedesktop.Telepathy.ChannelDispatcher.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_dispatcher_implement_ensure_channel (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_ensure_channel_impl impl
);
Register an implementation for the EnsureChannel method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the EnsureChannel D-Bus method |
void tp_svc_channel_dispatcher_return_from_ensure_channel_with_hints (DBusGMethodInvocation *context
,const gchar *out_Request
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const gchar * (FIXME, generate documentation) |
void (*tp_svc_channel_dispatcher_ensure_channel_with_hints_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Account
,GHashTable *in_Requested_Properties
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,GHashTable *in_Hints
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method EnsureChannelWithHints on interface org.freedesktop.Telepathy.ChannelDispatcher.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_dispatcher_implement_ensure_channel_with_hints (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_ensure_channel_with_hints_impl impl
);
Register an implementation for the EnsureChannelWithHints method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the EnsureChannelWithHints D-Bus method |
void (*tp_svc_channel_dispatcher_delegate_channels_impl) (TpSvcChannelDispatcher *self
,const GPtrArray *in_Channels
,gint64 in_User_Action_Time
,const gchar *in_Preferred_Handler
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method DelegateChannels on interface org.freedesktop.Telepathy.ChannelDispatcher.
|
The object implementing this interface |
|
const GPtrArray * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_dispatcher_implement_delegate_channels (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_delegate_channels_impl impl
);
Register an implementation for the DelegateChannels method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the DelegateChannels D-Bus method |
void tp_svc_channel_dispatcher_implement_present_channel (TpSvcChannelDispatcherClass *klass
,tp_svc_channel_dispatcher_present_channel_impl impl
);
Register an implementation for the PresentChannel method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the PresentChannel D-Bus method |
void (*tp_svc_channel_dispatcher_present_channel_impl) (TpSvcChannelDispatcher *self
,const gchar *in_Channel
,gint64 in_User_Action_Time
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method PresentChannel on interface org.freedesktop.Telepathy.ChannelDispatcher.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_dispatcher_return_from_delegate_channels (DBusGMethodInvocation *context
,const GPtrArray *out_Delegated
,GHashTable *out_Not_Delegated
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const GPtrArray * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
void tp_svc_channel_dispatcher_return_from_present_channel
(DBusGMethodInvocation *context
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
typedef struct _TpSvcChannelDispatcherInterfaceOperationList TpSvcChannelDispatcherInterfaceOperationList;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelDispatcherInterfaceOperationListClass TpSvcChannelDispatcherInterfaceOperationListClass;
The class of TpSvcChannelDispatcherInterfaceOperationList.
This interface has no D-Bus methods, so an
implementation can typically pass NULL
to
G_IMPLEMENT_INTERFACE()
as the interface
initialization function.
void tp_svc_channel_dispatcher_interface_operation_list_emit_new_dispatch_operation (gpointer instance
,const gchar *arg_Dispatch_Operation
,GHashTable *arg_Properties
);
Type-safe wrapper around g_signal_emit to emit the NewDispatchOperation signal on interface org.freedesktop.Telepathy.ChannelDispatcher.Interface.OperationList.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
void tp_svc_channel_dispatcher_interface_operation_list_emit_dispatch_operation_finished (gpointer instance
,const gchar *arg_Dispatch_Operation
);
Type-safe wrapper around g_signal_emit to emit the DispatchOperationFinished signal on interface org.freedesktop.Telepathy.ChannelDispatcher.Interface.OperationList.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
typedef struct _TpSvcChannelDispatcherInterfaceMessages1 TpSvcChannelDispatcherInterfaceMessages1;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelDispatcherInterfaceMessages1Class TpSvcChannelDispatcherInterfaceMessages1Class;
The class of TpSvcChannelDispatcherInterfaceMessages1.
In a full implementation of this interface (i.e. all
methods implemented), the interface initialization
function used in G_IMPLEMENT_INTERFACE()
would
typically look like this:
static void implement_channel_dispatcher_interface_messages1 (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_channel_dispatcher_interface_messages1_implement_##x (\ klass, my_object_##x) IMPLEMENT (send_message); #undef IMPLEMENT }
void tp_svc_channel_dispatcher_interface_messages1_implement_send_message (TpSvcChannelDispatcherInterfaceMessages1Class *klass
,tp_svc_channel_dispatcher_interface_messages1_send_message_impl impl
);
Register an implementation for the SendMessage method in the vtable of an implementation of this interface. To be called from the interface init function.
|
A class whose instances implement this interface |
|
A callback used to implement the SendMessage D-Bus method |
void tp_svc_channel_dispatcher_interface_messages1_return_from_send_message (DBusGMethodInvocation *context
,const gchar *out_Token
);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const gchar * (FIXME, generate documentation) |
void (*tp_svc_channel_dispatcher_interface_messages1_send_message_impl) (TpSvcChannelDispatcherInterfaceMessages1 *self
,const gchar *in_Account
,const gchar *in_Target_ID
,const GPtrArray *in_Message
,guint in_Flags
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method SendMessage on interface org.freedesktop.Telepathy.ChannelDispatcher.Interface.Messages1.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
const GPtrArray * (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
Used to return values or throw an error |
"dispatch-operation-finished"
signalvoid user_function (TpSvcChannelDispatcherInterfaceOperationList *self,
DBusGObjectPath *arg_Dispatch_Operation,
gpointer user_data) : Has Details
The DispatchOperationFinished D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"new-dispatch-operation"
signalvoid user_function (TpSvcChannelDispatcherInterfaceOperationList *self,
DBusGObjectPath *arg_Dispatch_Operation,
gpointer user_data) : Has Details
The NewDispatchOperation D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |