Top |
Contact Search channelsContact Search channels — service-side interface for the Contact Search channel type |
Some instant messaging protocols allow searching for contacts by name or other details. In Telepathy, each search attempt is represented as a Channel.
This section documents the auto-generated C wrappers for the Contact Search channel type.
void tp_svc_channel_type_contact_search1_emit_search_result_received (gpointer instance
,GHashTable *arg_Result
);
Type-safe wrapper around g_signal_emit to emit the SearchResultReceived signal on interface im.telepathy.v1.Channel.Type.ContactSearch1.
void tp_svc_channel_type_contact_search1_emit_search_state_changed (gpointer instance
,guint arg_State
,const gchar *arg_Error
,GHashTable *arg_Details
);
Type-safe wrapper around g_signal_emit to emit the SearchStateChanged signal on interface im.telepathy.v1.Channel.Type.ContactSearch1.
void tp_svc_channel_type_contact_search1_implement_more (TpSvcChannelTypeContactSearch1Class *klass
,tp_svc_channel_type_contact_search1_more_impl impl
);
Register an implementation for the More method in the vtable of an implementation of this interface. To be called from the interface init function.
void tp_svc_channel_type_contact_search1_implement_search (TpSvcChannelTypeContactSearch1Class *klass
,tp_svc_channel_type_contact_search1_search_impl impl
);
Register an implementation for the Search method in the vtable of an implementation of this interface. To be called from the interface init function.
void tp_svc_channel_type_contact_search1_implement_stop (TpSvcChannelTypeContactSearch1Class *klass
,tp_svc_channel_type_contact_search1_stop_impl impl
);
Register an implementation for the Stop method in the vtable of an implementation of this interface. To be called from the interface init function.
void (*tp_svc_channel_type_contact_search1_more_impl) (TpSvcChannelTypeContactSearch1 *self
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method More on interface im.telepathy.v1.Channel.Type.ContactSearch1.
void
tp_svc_channel_type_contact_search1_return_from_more
(GDBusMethodInvocation *invocation
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
void
tp_svc_channel_type_contact_search1_return_from_search
(GDBusMethodInvocation *invocation
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
void
tp_svc_channel_type_contact_search1_return_from_stop
(GDBusMethodInvocation *invocation
);
Return successfully by calling g_dbus_method_invocation_return_value()
.
void (*tp_svc_channel_type_contact_search1_search_impl) (TpSvcChannelTypeContactSearch1 *self
,GHashTable *in_Terms
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method Search on interface im.telepathy.v1.Channel.Type.ContactSearch1.
void (*tp_svc_channel_type_contact_search1_stop_impl) (TpSvcChannelTypeContactSearch1 *self
,GDBusMethodInvocation *invocation
);
The signature of an implementation of the D-Bus method Stop on interface im.telepathy.v1.Channel.Type.ContactSearch1.
typedef struct _TpSvcChannelTypeContactSearch1 TpSvcChannelTypeContactSearch1;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelTypeContactSearch1Class TpSvcChannelTypeContactSearch1Class;
The class of TpSvcChannelTypeContactSearch1.
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_type_contact_search1 (gpointer klass, gpointer unused G_GNUC_UNUSED) { #define IMPLEMENT(x) tp_svc_channel_type_contact_search1_implement_##x (\ klass, my_object_##x) IMPLEMENT (search); IMPLEMENT (more); IMPLEMENT (stop); #undef IMPLEMENT }
“search-result-received”
signalvoid user_function (TpSvcChannelTypeContactSearch1 *self, gpointer user_data)
The SearchResultReceived D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_Result |
GHashTable * (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details
“search-state-changed”
signalvoid user_function (TpSvcChannelTypeContactSearch1 *self, guint arg_State, gchar *arg_Error, gpointer user_data)
The SearchStateChanged D-Bus signal is emitted whenever this GObject signal is.
self |
an object |
|
arg_State |
guint (FIXME, generate documentation) |
|
arg_Error |
const gchar * (FIXME, generate documentation) |
|
arg_Details |
GHashTable * (FIXME, generate documentation) |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details