aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-message.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-15 21:17:07 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-18 19:09:49 +0800
commit2af2286eb763f631624db953679c1cba28ff91d7 (patch)
tree2a3f12afce8baf3a662e19f5612edc5de261ae06 /libempathy/empathy-message.h
parent05ab1873675c5e2a6a04c85ef976fb1067a0d743 (diff)
downloadgsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.tar
gsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.tar.gz
gsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.tar.bz2
gsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.tar.lz
gsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.tar.xz
gsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.tar.zst
gsoc2013-empathy-2af2286eb763f631624db953679c1cba28ff91d7.zip
factor out empathy_message_new_from_tp_message
Diffstat (limited to 'libempathy/empathy-message.h')
-rw-r--r--libempathy/empathy-message.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-message.h b/libempathy/empathy-message.h
index 1db0eff60..cb57f0755 100644
--- a/libempathy/empathy-message.h
+++ b/libempathy/empathy-message.h
@@ -26,6 +26,7 @@
#define __EMPATHY_MESSAGE_H__
#include <glib-object.h>
+#include <telepathy-glib/message.h>
#include <telepathy-logger/event.h>
#include "empathy-contact.h"
@@ -53,8 +54,12 @@ struct _EmpathyMessageClass {
};
GType empathy_message_get_type (void) G_GNUC_CONST;
+
EmpathyMessage * empathy_message_new (const gchar *body);
EmpathyMessage * empathy_message_from_tpl_log_event (TplEvent *logevent);
+EmpathyMessage * empathy_message_new_from_tp_message (TpMessage *tp_msg,
+ gboolean incoming);
+
TpChannelTextMessageType empathy_message_get_tptype (EmpathyMessage *message);
void empathy_message_set_tptype (EmpathyMessage *message,
TpChannelTextMessageType type);