EmpathyTpChat

EmpathyTpChat

Synopsis

                    EmpathyTpChat;
EmpathyTpChat*      empathy_tp_chat_new                 (TpChannel *channel);
const gchar*        empathy_tp_chat_get_id              (EmpathyTpChat *chat);
EmpathyContact*     empathy_tp_chat_get_remote_contact  (EmpathyTpChat *chat);
McAccount*          empathy_tp_chat_get_account         (EmpathyTpChat *chat);
TpChannel*          empathy_tp_chat_get_channel         (EmpathyTpChat *chat);
gboolean            empathy_tp_chat_is_ready            (EmpathyTpChat *chat);
guint               empathy_tp_chat_get_members_count   (EmpathyTpChat *chat);
void                empathy_tp_chat_set_acknowledge     (EmpathyTpChat *chat,
                                                         gboolean acknowledge);
void                empathy_tp_chat_emit_pendings       (EmpathyTpChat *chat);
void                empathy_tp_chat_send                (EmpathyTpChat *chat,
                                                         EmpathyMessage *message);
void                empathy_tp_chat_set_state           (EmpathyTpChat *chat,
                                                         TpChannelChatState state);
void                empathy_tp_chat_set_property        (EmpathyTpChat *chat,
                                                         const gchar *name,
                                                         const GValue *value);

Object Hierarchy

  GObject
   +----EmpathyTpChat

Implemented Interfaces

EmpathyTpChat implements EmpathyContactList.

Properties

  "acknowledge"              gboolean              : Read / Write
  "channel"                  TpChannel*            : Read / Write / Construct Only
  "ready"                    gboolean              : Read
  "remote-contact"           EmpathyContact*       : Read

Signals

  "chat-state-changed"                             : Run Last
  "destroy"                                        : Run Last
  "message-received"                               : Run Last
  "property-changed"                               : Run Last
  "send-error"                                     : Run Last

Description

Details

EmpathyTpChat

typedef struct _EmpathyTpChat EmpathyTpChat;


empathy_tp_chat_new ()

EmpathyTpChat*      empathy_tp_chat_new                 (TpChannel *channel);

channel :

Returns :


empathy_tp_chat_get_id ()

const gchar*        empathy_tp_chat_get_id              (EmpathyTpChat *chat);

chat :

Returns :


empathy_tp_chat_get_remote_contact ()

EmpathyContact*     empathy_tp_chat_get_remote_contact  (EmpathyTpChat *chat);

chat :

Returns :


empathy_tp_chat_get_account ()

McAccount*          empathy_tp_chat_get_account         (EmpathyTpChat *chat);

chat :

Returns :


empathy_tp_chat_get_channel ()

TpChannel*          empathy_tp_chat_get_channel         (EmpathyTpChat *chat);

chat :

Returns :


empathy_tp_chat_is_ready ()

gboolean            empathy_tp_chat_is_ready            (EmpathyTpChat *chat);

chat :

Returns :


empathy_tp_chat_get_members_count ()

guint               empathy_tp_chat_get_members_count   (EmpathyTpChat *chat);

chat :

Returns :


empathy_tp_chat_set_acknowledge ()

void                empathy_tp_chat_set_acknowledge     (EmpathyTpChat *chat,
                                                         gboolean acknowledge);

chat :

acknowledge :


empathy_tp_chat_emit_pendings ()

void                empathy_tp_chat_emit_pendings       (EmpathyTpChat *chat);

chat :


empathy_tp_chat_send ()

void                empathy_tp_chat_send                (EmpathyTpChat *chat,
                                                         EmpathyMessage *message);

chat :

message :


empathy_tp_chat_set_state ()

void                empathy_tp_chat_set_state           (EmpathyTpChat *chat,
                                                         TpChannelChatState state);

chat :

state :


empathy_tp_chat_set_property ()

void                empathy_tp_chat_set_property        (EmpathyTpChat *chat,
                                                         const gchar *name,
                                                         const GValue *value);

chat :

name :

value :

Property Details

The "acknowledge" property

  "acknowledge"              gboolean              : Read / Write

Wheter or not received messages should be acknowledged.

Default value: FALSE


The "channel" property

  "channel"                  TpChannel*            : Read / Write / Construct Only

The text channel for the chat.


The "ready" property

  "ready"                    gboolean              : Read

This object can't be used until this becomes true.

Default value: FALSE


The "remote-contact" property

  "remote-contact"           EmpathyContact*       : Read

The remote contact if there is no group iface on the channel.

Signal Details

The "chat-state-changed" signal

void                user_function                      (EmpathyTpChat  *empathytpchat,
                                                        EmpathyContact *arg1,
                                                        guint           arg2,
                                                        gpointer        user_data)          : Run Last

empathytpchat :

the object which received the signal.

arg1 :

arg2 :

user_data :

user data set when the signal handler was connected.

The "destroy" signal

void                user_function                      (EmpathyTpChat *empathytpchat,
                                                        gpointer       user_data)          : Run Last

empathytpchat :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "message-received" signal

void                user_function                      (EmpathyTpChat  *empathytpchat,
                                                        EmpathyMessage *arg1,
                                                        gpointer        user_data)          : Run Last

empathytpchat :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.

The "property-changed" signal

void                user_function                      (EmpathyTpChat *empathytpchat,
                                                        gchar         *arg1,
                                                        GValue        *arg2,
                                                        gpointer       user_data)          : Run Last

empathytpchat :

the object which received the signal.

arg1 :

arg2 :

user_data :

user data set when the signal handler was connected.

The "send-error" signal

void                user_function                      (EmpathyTpChat  *empathytpchat,
                                                        EmpathyMessage *arg1,
                                                        guint           arg2,
                                                        gpointer        user_data)          : Run Last

empathytpchat :

the object which received the signal.

arg1 :

arg2 :

user_data :

user data set when the signal handler was connected.