![]() |
![]() |
![]() |
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); time_t empathy_message_get_timestamp (EmpathyMessage *message); void empathy_message_set_timestamp (EmpathyMessage *message, time_t timestamp); GDate* empathy_message_get_date_and_time (EmpathyMessage *message, time_t *timestamp); gboolean empathy_message_should_highlight (EmpathyMessage *message); EmpathyMessageType empathy_message_type_from_str (const gchar *type_str); const gchar* empathy_message_type_to_str (EmpathyMessageType type);
"body" gchar* : 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);
|
|
|
EmpathyContact* empathy_message_get_sender (EmpathyMessage *message);
|
|
Returns : |
void empathy_message_set_sender (EmpathyMessage *message, EmpathyContact *contact);
|
|
|
EmpathyContact* empathy_message_get_receiver (EmpathyMessage *message);
|
|
Returns : |
void empathy_message_set_receiver (EmpathyMessage *message, EmpathyContact *contact);
|
|
|
const gchar* empathy_message_get_body (EmpathyMessage *message);
|
|
Returns : |
void empathy_message_set_body (EmpathyMessage *message, const gchar *body);
|
|
|
time_t empathy_message_get_timestamp (EmpathyMessage *message);
|
|
Returns : |
void empathy_message_set_timestamp (EmpathyMessage *message, time_t timestamp);
|
|
|
GDate* empathy_message_get_date_and_time (EmpathyMessage *message, time_t *timestamp);
|
|
|
|
Returns : |
gboolean empathy_message_should_highlight (EmpathyMessage *message);
|
|
Returns : |
EmpathyMessageType empathy_message_type_from_str (const gchar *type_str);
|
|
Returns : |
const gchar* empathy_message_type_to_str (EmpathyMessageType type);
|
|
Returns : |
"timestamp"
property"timestamp" glong : Read / Write
timestamp.
Allowed values: >= G_MAXULONG
Default value: -1
"type"
property"type" EmpathyMessageType : Read / Write
The type of message.
Default value: EMPATHY_MESSAGE_TYPE_NORMAL