![]() |
![]() |
![]() |
telepathy-glib Reference Manual | ![]() |
---|---|---|---|---|
Text channelsText channels — service-side interfaces for the Text channel type, and the Chat State and Password interfaces |
#include <telepathy-glib/svc-channel-text.h> TpSvcChannelTypeText; TpSvcChannelTypeTextClass; void (*tp_svc_channel_type_text_acknowledge_pending_messages_impl) (TpSvcChannelTypeText *self, const GArray *in_IDs, DBusGMethodInvocation *context); void tp_svc_channel_type_text_implement_acknowledge_pending_messages (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_acknowledge_pending_messages_impl impl); void tp_svc_channel_type_text_return_from_acknowledge_pending_messages (DBusGMethodInvocation *context); void (*tp_svc_channel_type_text_get_message_types_impl) (TpSvcChannelTypeText *self, DBusGMethodInvocation *context); void tp_svc_channel_type_text_implement_get_message_types (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_get_message_types_impl impl); void tp_svc_channel_type_text_return_from_get_message_types (DBusGMethodInvocation *context, const GArray *out0); void (*tp_svc_channel_type_text_list_pending_messages_impl) (TpSvcChannelTypeText *self, gboolean in_Clear, DBusGMethodInvocation *context); void tp_svc_channel_type_text_implement_list_pending_messages (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_list_pending_messages_impl impl); void tp_svc_channel_type_text_return_from_list_pending_messages (DBusGMethodInvocation *context, const GPtrArray *out0); void (*tp_svc_channel_type_text_send_impl) (TpSvcChannelTypeText *self, guint in_Type, const gchar *in_Text, DBusGMethodInvocation *context); void tp_svc_channel_type_text_implement_send (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_send_impl impl); void tp_svc_channel_type_text_return_from_send (DBusGMethodInvocation *context); void tp_svc_channel_type_text_emit_lost_message (gpointer instance); void tp_svc_channel_type_text_emit_received (gpointer instance, guint arg_ID, guint arg_Timestamp, guint arg_Sender, guint arg_Type, guint arg_Flags, const gchar *arg_Text); void tp_svc_channel_type_text_emit_send_error (gpointer instance, guint arg_Error, guint arg_Timestamp, guint arg_Type, const gchar *arg_Text); void tp_svc_channel_type_text_emit_sent (gpointer instance, guint arg_Timestamp, guint arg_Type, const gchar *arg_Text); TpSvcChannelInterfaceChatState; TpSvcChannelInterfaceChatStateClass; void (*tp_svc_channel_interface_chat_state_set_chat_state_impl) (TpSvcChannelInterfaceChatState *self, guint in_State, DBusGMethodInvocation *context); void tp_svc_channel_interface_chat_state_implement_set_chat_state (TpSvcChannelInterfaceChatStateClass *klass, tp_svc_channel_interface_chat_state_set_chat_state_impl impl); void tp_svc_channel_interface_chat_state_return_from_set_chat_state (DBusGMethodInvocation *context); void tp_svc_channel_interface_chat_state_emit_chat_state_changed (gpointer instance, guint arg_Contact, guint arg_State); TpSvcChannelInterfacePassword; TpSvcChannelInterfacePasswordClass; void (*tp_svc_channel_interface_password_get_password_flags_impl) (TpSvcChannelInterfacePassword *self, DBusGMethodInvocation *context); void tp_svc_channel_interface_password_implement_get_password_flags (TpSvcChannelInterfacePasswordClass *klass, tp_svc_channel_interface_password_get_password_flags_impl impl); void tp_svc_channel_interface_password_return_from_get_password_flags (DBusGMethodInvocation *context, guint out0); void (*tp_svc_channel_interface_password_provide_password_impl) (TpSvcChannelInterfacePassword *self, const gchar *in_Password, DBusGMethodInvocation *context); void tp_svc_channel_interface_password_implement_provide_password (TpSvcChannelInterfacePasswordClass *klass, tp_svc_channel_interface_password_provide_password_impl impl); void tp_svc_channel_interface_password_return_from_provide_password (DBusGMethodInvocation *context, gboolean out0); void tp_svc_channel_interface_password_emit_password_flags_changed (gpointer instance, guint arg_Added, guint arg_Removed);
GInterface +----TpSvcChannelTypeText
GInterface +----TpSvcChannelInterfaceChatState
GInterface +----TpSvcChannelInterfacePassword
"lost-message" : Run Last / Has Details "received" : Run Last / Has Details "send-error" : Run Last / Has Details "sent" : Run Last / Has Details "chat-state-changed" : Run Last / Has Details "password-flags-changed" : Run Last / Has Details
A major use for instant messaging is obviously to send messages. Channels of type Text represent IM conversations or chat rooms.
This section documents the auto-generated GInterfaces used to implement the Text channel type, and some interfaces used in conjunction with it.
typedef struct _TpSvcChannelTypeText TpSvcChannelTypeText;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelTypeTextClass TpSvcChannelTypeTextClass;
The class of TpSvcChannelTypeText.
void (*tp_svc_channel_type_text_acknowledge_pending_messages_impl) (TpSvcChannelTypeText *self, const GArray *in_IDs, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method AcknowledgePendingMessages on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
const GArray * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_type_text_implement_acknowledge_pending_messages (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_acknowledge_pending_messages_impl impl);
Register an implementation for the AcknowledgePendingMessages 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 AcknowledgePendingMessages D-Bus method |
void tp_svc_channel_type_text_return_from_acknowledge_pending_messages (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_type_text_get_message_types_impl) (TpSvcChannelTypeText *self, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method GetMessageTypes on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
Used to return values or throw an error |
void tp_svc_channel_type_text_implement_get_message_types (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_get_message_types_impl impl);
Register an implementation for the GetMessageTypes 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 GetMessageTypes D-Bus method |
void tp_svc_channel_type_text_return_from_get_message_types (DBusGMethodInvocation *context, const GArray *out0);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
const GArray * (FIXME, generate documentation) |
void (*tp_svc_channel_type_text_list_pending_messages_impl) (TpSvcChannelTypeText *self, gboolean in_Clear, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method ListPendingMessages on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
gboolean (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_type_text_implement_list_pending_messages (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_list_pending_messages_impl impl);
Register an implementation for the ListPendingMessages 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 ListPendingMessages D-Bus method |
void tp_svc_channel_type_text_return_from_list_pending_messages (DBusGMethodInvocation *context, const GPtrArray *out0);
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) |
void (*tp_svc_channel_type_text_send_impl) (TpSvcChannelTypeText *self, guint in_Type, const gchar *in_Text, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method Send on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_type_text_implement_send (TpSvcChannelTypeTextClass *klass, tp_svc_channel_type_text_send_impl impl);
Register an implementation for the Send 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 Send D-Bus method |
void tp_svc_channel_type_text_return_from_send (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_type_text_emit_lost_message (gpointer instance);
Type-safe wrapper around g_signal_emit to emit the LostMessage signal on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
void tp_svc_channel_type_text_emit_received (gpointer instance, guint arg_ID, guint arg_Timestamp, guint arg_Sender, guint arg_Type, guint arg_Flags, const gchar *arg_Text);
Type-safe wrapper around g_signal_emit to emit the Received signal on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
void tp_svc_channel_type_text_emit_send_error (gpointer instance, guint arg_Error, guint arg_Timestamp, guint arg_Type, const gchar *arg_Text);
Type-safe wrapper around g_signal_emit to emit the SendError signal on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
void tp_svc_channel_type_text_emit_sent (gpointer instance, guint arg_Timestamp, guint arg_Type, const gchar *arg_Text);
Type-safe wrapper around g_signal_emit to emit the Sent signal on interface org.freedesktop.Telepathy.Channel.Type.Text.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
typedef struct _TpSvcChannelInterfaceChatState TpSvcChannelInterfaceChatState;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelInterfaceChatStateClass TpSvcChannelInterfaceChatStateClass;
The class of TpSvcChannelInterfaceChatState.
void (*tp_svc_channel_interface_chat_state_set_chat_state_impl) (TpSvcChannelInterfaceChatState *self, guint in_State, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method SetChatState on interface org.freedesktop.Telepathy.Channel.Interface.ChatState.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_interface_chat_state_implement_set_chat_state (TpSvcChannelInterfaceChatStateClass *klass, tp_svc_channel_interface_chat_state_set_chat_state_impl impl);
Register an implementation for the SetChatState 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 SetChatState D-Bus method |
void tp_svc_channel_interface_chat_state_return_from_set_chat_state (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_interface_chat_state_emit_chat_state_changed (gpointer instance, guint arg_Contact, guint arg_State);
Type-safe wrapper around g_signal_emit to emit the ChatStateChanged signal on interface org.freedesktop.Telepathy.Channel.Interface.ChatState.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
typedef struct _TpSvcChannelInterfacePassword TpSvcChannelInterfacePassword;
Dummy typedef representing any implementation of this interface.
typedef struct _TpSvcChannelInterfacePasswordClass TpSvcChannelInterfacePasswordClass;
The class of TpSvcChannelInterfacePassword.
void (*tp_svc_channel_interface_password_get_password_flags_impl) (TpSvcChannelInterfacePassword *self, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method GetPasswordFlags on interface org.freedesktop.Telepathy.Channel.Interface.Password.
|
The object implementing this interface |
|
Used to return values or throw an error |
void tp_svc_channel_interface_password_implement_get_password_flags (TpSvcChannelInterfacePasswordClass *klass, tp_svc_channel_interface_password_get_password_flags_impl impl);
Register an implementation for the GetPasswordFlags 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 GetPasswordFlags D-Bus method |
void tp_svc_channel_interface_password_return_from_get_password_flags (DBusGMethodInvocation *context, guint out0);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
guint (FIXME, generate documentation) |
void (*tp_svc_channel_interface_password_provide_password_impl) (TpSvcChannelInterfacePassword *self, const gchar *in_Password, DBusGMethodInvocation *context);
The signature of an implementation of the D-Bus method ProvidePassword on interface org.freedesktop.Telepathy.Channel.Interface.Password.
|
The object implementing this interface |
|
const gchar * (FIXME, generate documentation) |
|
Used to return values or throw an error |
void tp_svc_channel_interface_password_implement_provide_password (TpSvcChannelInterfacePasswordClass *klass, tp_svc_channel_interface_password_provide_password_impl impl);
Register an implementation for the ProvidePassword 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 ProvidePassword D-Bus method |
void tp_svc_channel_interface_password_return_from_provide_password (DBusGMethodInvocation *context, gboolean out0);
Return successfully by calling dbus_g_method_return()
.
This inline function exists only to provide type-safety.
|
The D-Bus method invocation context |
|
gboolean (FIXME, generate documentation) |
void tp_svc_channel_interface_password_emit_password_flags_changed (gpointer instance, guint arg_Added, guint arg_Removed);
Type-safe wrapper around g_signal_emit to emit the PasswordFlagsChanged signal on interface org.freedesktop.Telepathy.Channel.Interface.Password.
|
The object implementing this interface |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
"lost-message"
signalvoid user_function (TpSvcChannelTypeText *arg0, gpointer user_data) : Run Last / Has Details
The LostMessage D-Bus signal is emitted whenever this GObject signal is.
|
user data set when the signal handler was connected. |
"received"
signalvoid user_function (TpSvcChannelTypeText *arg_ID, guint arg_Timestamp, guint arg_Sender, guint arg_Type, guint arg_Flags, guint arg_Text, gchar *arg6, gpointer user_data) : Run Last / Has Details
The Received D-Bus signal is emitted whenever this GObject signal is.
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"send-error"
signalvoid user_function (TpSvcChannelTypeText *arg_Error, guint arg_Timestamp, guint arg_Type, guint arg_Text, gchar *arg4, gpointer user_data) : Run Last / Has Details
The SendError D-Bus signal is emitted whenever this GObject signal is.
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"sent"
signalvoid user_function (TpSvcChannelTypeText *arg_Timestamp, guint arg_Type, guint arg_Text, gchar *arg3, gpointer user_data) : Run Last / Has Details
The Sent D-Bus signal is emitted whenever this GObject signal is.
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
const gchar * (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"chat-state-changed"
signalvoid user_function (TpSvcChannelInterfaceChatState *arg_Contact, guint arg_State, guint arg2, gpointer user_data) : Run Last / Has Details
The ChatStateChanged D-Bus signal is emitted whenever this GObject signal is.
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |
"password-flags-changed"
signalvoid user_function (TpSvcChannelInterfacePassword *arg_Added, guint arg_Removed, guint arg2, gpointer user_data) : Run Last / Has Details
The PasswordFlagsChanged D-Bus signal is emitted whenever this GObject signal is.
|
guint (FIXME, generate documentation) |
|
guint (FIXME, generate documentation) |
|
user data set when the signal handler was connected. |