![]() |
![]() |
![]() |
libempathy Reference Manual | ![]() |
---|---|---|---|---|
EmpathyMessage; enum EmpathyMessageType; GType empathy_message_get_gtype (void); EmpathyMessage* empathy_message_new (const gchar *body); void empathy_message_set_type (EmpathyMessage *message, EmpathyMessageType type); EmpathyContact* empathy_message_get_sender (EmpathyMessage *message); void empathy_message_set_sender (EmpathyMessage *message, EmpathyContact *contact); EmpathyContact* empathy_message_get_receiver (EmpathyMessage *message); void empathy_message_set_receiver (EmpathyMessage *message, EmpathyContact *contact); const gchar* empathy_message_get_body (EmpathyMessage *message); void empathy_message_set_body (EmpathyMessage *message, const gchar *body); EmpathyTime empathy_message_get_timestamp (EmpathyMessage *message); void empathy_message_set_timestamp (EmpathyMessage *message, EmpathyTime timestamp); EmpathyMessageType empathy_message_type_from_str (const gchar *type_str); const gchar* empathy_message_type_to_str (EmpathyMessageType type);
"body" gchararray : Read / Write "receiver" EmpathyContact : Read / Write "sender" EmpathyContact : Read / Write "timestamp" glong : Read / Write "type" EmpathyMessageType : Read / Write
typedef enum { EMPATHY_MESSAGE_TYPE_NORMAL, EMPATHY_MESSAGE_TYPE_ACTION, EMPATHY_MESSAGE_TYPE_NOTICE, EMPATHY_MESSAGE_TYPE_AUTO_REPLY, EMPATHY_MESSAGE_TYPE_LAST } EmpathyMessageType;
void empathy_message_set_type (EmpathyMessage *message, EmpathyMessageType type);
message : |
|
type : |
EmpathyContact* empathy_message_get_sender (EmpathyMessage *message);
message : |
|
Returns : |
void empathy_message_set_sender (EmpathyMessage *message, EmpathyContact *contact);
message : |
|
contact : |
EmpathyContact* empathy_message_get_receiver (EmpathyMessage *message);
message : |
|
Returns : |
void empathy_message_set_receiver (EmpathyMessage *message, EmpathyContact *contact);
message : |
|
contact : |
const gchar* empathy_message_get_body (EmpathyMessage *message);
message : |
|
Returns : |
void empathy_message_set_body (EmpathyMessage *message, const gchar *body);
message : |
|
body : |
EmpathyTime empathy_message_get_timestamp (EmpathyMessage *message);
message : |
|
Returns : |
void empathy_message_set_timestamp (EmpathyMessage *message, EmpathyTime timestamp);
message : |
|
timestamp : |
EmpathyMessageType empathy_message_type_from_str (const gchar *type_str);
type_str : |
|
Returns : |
const gchar* empathy_message_type_to_str (EmpathyMessageType type);
type : |
|
Returns : |
body
" property"body" gchararray : Read / Write
The content of the message.
Default value: NULL
timestamp
" property"timestamp" glong : Read / Write
timestamp.
Allowed values: >= -1
Default value: -1
type
" property"type" EmpathyMessageType : Read / Write
The type of message.
Default value: EMPATHY_MESSAGE_TYPE_NORMAL