telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
Service-side Channel Dispatch Operation interfaceService-side Channel Dispatch Operation interface — GInterface for Telepathy ChannelDispatchOperation object |
Synopsis
#include <telepathy-glib/telepathy-glib-dbus.h> TpSvcChannelDispatchOperation; TpSvcChannelDispatchOperationClass; void tp_svc_channel_dispatch_operation_return_from_claim (DBusGMethodInvocation *context
); void (*tp_svc_channel_dispatch_operation_claim_impl) (TpSvcChannelDispatchOperation *self
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatch_operation_implement_claim (TpSvcChannelDispatchOperationClass *klass
,tp_svc_channel_dispatch_operation_claim_impl impl
); void tp_svc_channel_dispatch_operation_return_from_handle_with (DBusGMethodInvocation *context
); void (*tp_svc_channel_dispatch_operation_handle_with_impl) (TpSvcChannelDispatchOperation *self
,const gchar *in_Handler
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatch_operation_implement_handle_with (TpSvcChannelDispatchOperationClass *klass
,tp_svc_channel_dispatch_operation_handle_with_impl impl
); void (*tp_svc_channel_dispatch_operation_handle_with_time_impl) (TpSvcChannelDispatchOperation *self
,const gchar *in_Handler
,gint64 in_UserActionTime
,DBusGMethodInvocation *context
); void tp_svc_channel_dispatch_operation_implement_handle_with_time (TpSvcChannelDispatchOperationClass *klass
,tp_svc_channel_dispatch_operation_handle_with_time_impl impl
); void tp_svc_channel_dispatch_operation_return_from_handle_with_time (DBusGMethodInvocation *context
); void tp_svc_channel_dispatch_operation_emit_channel_lost (gpointer instance
,const gchar *arg_Channel
,const gchar *arg_Error
,const gchar *arg_Message
); void tp_svc_channel_dispatch_operation_emit_finished (gpointer instance
);
Description
This interface (auto-generated from the Telepathy spec) makes it easier to export an object implementing the Telepathy ChannelDispatchOperation interface, with the correct method and signal signatures, and emit signals from that object in a type-safe way.
You don't need these interfaces unless you're implementing a Telepathy ChannelDispatcher, such as Mission Control.
Details
TpSvcChannelDispatchOperation
typedef struct _TpSvcChannelDispatchOperation TpSvcChannelDispatchOperation;
Dummy typedef representing any implementation of this interface.
TpSvcChannelDispatchOperationClass
typedef struct _TpSvcChannelDispatchOperationClass TpSvcChannelDispatchOperationClass;
The class of TpSvcChannelDispatchOperation.
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_dispatch_operation (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_channel_dispatch_operation_implement_##x (\ klass, my_object_##x) IMPLEMENT (handle_with); IMPLEMENT (claim); IMPLEMENT (handle_with_time); #undef IMPLEMENT }
tp_svc_channel_dispatch_operation_return_from_claim ()
void tp_svc_channel_dispatch_operation_return_from_claim
(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 |
tp_svc_channel_dispatch_operation_claim_impl ()
void (*tp_svc_channel_dispatch_operation_claim_impl) (TpSvcChannelDispatchOperation *self
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method Claim on interface org.freedesktop.Telepathy.ChannelDispatchOperation.
|
The object implementing this interface |
|
Used to return values or throw an error |
tp_svc_channel_dispatch_operation_implement_claim ()
void tp_svc_channel_dispatch_operation_implement_claim (TpSvcChannelDispatchOperationClass *klass
,tp_svc_channel_dispatch_operation_claim_impl impl
);
Register an implementation for the Claim 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 Claim D-Bus method |
tp_svc_channel_dispatch_operation_return_from_handle_with ()
void tp_svc_channel_dispatch_operation_return_from_handle_with
(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 |
tp_svc_channel_dispatch_operation_handle_with_impl ()
void (*tp_svc_channel_dispatch_operation_handle_with_impl) (TpSvcChannelDispatchOperation *self
,const gchar *in_Handler
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method HandleWith on interface org.freedesktop.Telepathy.ChannelDispatchOperation.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
Used to return values or throw an error |
tp_svc_channel_dispatch_operation_implement_handle_with ()
void tp_svc_channel_dispatch_operation_implement_handle_with (TpSvcChannelDispatchOperationClass *klass
,tp_svc_channel_dispatch_operation_handle_with_impl impl
);
Register an implementation for the HandleWith 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 HandleWith D-Bus method |
tp_svc_channel_dispatch_operation_handle_with_time_impl ()
void (*tp_svc_channel_dispatch_operation_handle_with_time_impl) (TpSvcChannelDispatchOperation *self
,const gchar *in_Handler
,gint64 in_UserActionTime
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method HandleWithTime on interface org.freedesktop.Telepathy.ChannelDispatchOperation.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
gint64 (FIXME, generate documentation) |
|
Used to return values or throw an error |
tp_svc_channel_dispatch_operation_implement_handle_with_time ()
void tp_svc_channel_dispatch_operation_implement_handle_with_time (TpSvcChannelDispatchOperationClass *klass
,tp_svc_channel_dispatch_operation_handle_with_time_impl impl
);
Register an implementation for the HandleWithTime 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 HandleWithTime D-Bus method |
tp_svc_channel_dispatch_operation_return_from_handle_with_time ()
void tp_svc_channel_dispatch_operation_return_from_handle_with_time
(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 |
tp_svc_channel_dispatch_operation_emit_channel_lost ()
void tp_svc_channel_dispatch_operation_emit_channel_lost (gpointer instance
,const gchar *arg_Channel
,const gchar *arg_Error
,const gchar *arg_Message
);
Type-safe wrapper around g_signal_emit to emit the ChannelLost signal on interface org.freedesktop.Telepathy.ChannelDispatchOperation.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
tp_svc_channel_dispatch_operation_emit_finished ()
void tp_svc_channel_dispatch_operation_emit_finished
(gpointer instance
);
Type-safe wrapper around g_signal_emit to emit the Finished signal on interface org.freedesktop.Telepathy.ChannelDispatchOperation.
|
The object implementing this interface |
Signal Details
The "channel-lost"
signal
void user_function (TpSvcChannelDispatchOperation *self,
DBusGObjectPath *arg_Channel,
gchar *arg_Error,
gchar *arg_Message,
gpointer user_data) : Has Details
The ChannelLost D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
The "finished"
signal
void user_function (TpSvcChannelDispatchOperation *self,
gpointer user_data) : Has Details
The Finished D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
user data set when the signal handler was connected. |