telepathy-glib API Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
Service-side Channel Request interfaceService-side Channel Request interface — GInterface for Telepathy ChannelRequest object |
#include <telepathy-glib/telepathy-glib-dbus.h> TpSvcChannelRequest; TpSvcChannelRequestClass; void tp_svc_channel_request_return_from_proceed (DBusGMethodInvocation *context
); void (*tp_svc_channel_request_proceed_impl) (TpSvcChannelRequest *self
,DBusGMethodInvocation *context
); void tp_svc_channel_request_implement_proceed (TpSvcChannelRequestClass *klass
,tp_svc_channel_request_proceed_impl impl
); void tp_svc_channel_request_return_from_cancel (DBusGMethodInvocation *context
); void (*tp_svc_channel_request_cancel_impl) (TpSvcChannelRequest *self
,DBusGMethodInvocation *context
); void tp_svc_channel_request_implement_cancel (TpSvcChannelRequestClass *klass
,tp_svc_channel_request_cancel_impl impl
); void tp_svc_channel_request_emit_failed (gpointer instance
,const gchar *arg_Error
,const gchar *arg_Message
); void tp_svc_channel_request_emit_succeeded (gpointer instance
); void tp_svc_channel_request_emit_succeeded_with_channel (gpointer instance
,const gchar *arg_Connection
,GHashTable *arg_Connection_Properties
,const gchar *arg_Channel
,GHashTable *arg_Channel_Properties
);
This interface (auto-generated from the Telepathy spec) makes it easier to export an object implementing the Telepathy ChannelRequest 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.
typedef struct _TpSvcChannelRequest TpSvcChannelRequest;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelRequestClass TpSvcChannelRequestClass;
The class of TpSvcChannelRequest.
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_request (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_channel_request_implement_##x (\ klass, my_object_##x) IMPLEMENT (proceed); IMPLEMENT (cancel); #undef IMPLEMENT }
void tp_svc_channel_request_return_from_proceed
(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 |
void (*tp_svc_channel_request_proceed_impl) (TpSvcChannelRequest *self
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method Proceed on interface org.freedesktop.Telepathy.ChannelRequest.
|
The object implementing this interface |
|
Used to return values or throw an error |
void tp_svc_channel_request_implement_proceed (TpSvcChannelRequestClass *klass
,tp_svc_channel_request_proceed_impl impl
);
Register an implementation for the Proceed 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 Proceed D-Bus method |
void tp_svc_channel_request_return_from_cancel
(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 |
void (*tp_svc_channel_request_cancel_impl) (TpSvcChannelRequest *self
,DBusGMethodInvocation *context
);
The signature of an implementation of the D-Bus method Cancel on interface org.freedesktop.Telepathy.ChannelRequest.
|
The object implementing this interface |
|
Used to return values or throw an error |
void tp_svc_channel_request_implement_cancel (TpSvcChannelRequestClass *klass
,tp_svc_channel_request_cancel_impl impl
);
Register an implementation for the Cancel 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 Cancel D-Bus method |
void tp_svc_channel_request_emit_failed (gpointer instance
,const gchar *arg_Error
,const gchar *arg_Message
);
Type-safe wrapper around g_signal_emit to emit the Failed signal on interface org.freedesktop.Telepathy.ChannelRequest.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
void tp_svc_channel_request_emit_succeeded
(gpointer instance
);
Type-safe wrapper around g_signal_emit to emit the Succeeded signal on interface org.freedesktop.Telepathy.ChannelRequest.
|
The object implementing this interface |
void tp_svc_channel_request_emit_succeeded_with_channel (gpointer instance
,const gchar *arg_Connection
,GHashTable *arg_Connection_Properties
,const gchar *arg_Channel
,GHashTable *arg_Channel_Properties
);
Type-safe wrapper around g_signal_emit to emit the SucceededWithChannel signal on interface org.freedesktop.Telepathy.ChannelRequest.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
"failed"
signalvoid user_function (TpSvcChannelRequest *self,
gchar *arg_Error,
gchar *arg_Message,
gpointer user_data) : Has Details
The Failed D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"succeeded"
signalvoid user_function (TpSvcChannelRequest *self,
gpointer user_data) : Has Details
The Succeeded D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
user data set when the signal handler was connected. |
"succeeded-with-channel"
signalvoid user_function (TpSvcChannelRequest *self,
DBusGObjectPath *arg_Connection,
DBusGObjectPath *arg_Channel,
gpointer user_data) : Has Details
The SucceededWithChannel D-Bus signal is emitted whenever this GObject signal is.
|
an object |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
GHashTable * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |