aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-10 16:13:09 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-18 23:18:03 +0800
commit09a49d81dafe86a68546613cfeee4e2a118cf198 (patch)
tree93c958e828ca6047bad28ae95086f6a0a8b7c84c /libempathy
parentbe2ae7a5b3f10393fa1afcefb67042493cb0eee7 (diff)
downloadgsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar
gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.gz
gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.bz2
gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.lz
gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.xz
gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.zst
gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.zip
TplLogEntry(Text) has been renamed to TplEntry(Text)
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-message.c28
-rw-r--r--libempathy/empathy-message.h4
2 files changed, 16 insertions, 16 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index b3234d348..11a926a42 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -32,8 +32,8 @@
#include <telepathy-glib/account-manager.h>
#include <telepathy-logger/contact.h>
-#include <telepathy-logger/log-entry.h>
-#include <telepathy-logger/log-entry-text.h>
+#include <telepathy-logger/entry.h>
+#include <telepathy-logger/entry-text.h>
#endif /* ENABLE_TPL */
#include "empathy-message.h"
@@ -262,7 +262,7 @@ empathy_message_new (const gchar *body)
#ifdef ENABLE_TPL
EmpathyMessage *
-empathy_message_from_tpl_log_entry (TplLogEntry *logentry)
+empathy_message_from_tpl_log_entry (TplEntry *logentry)
{
EmpathyMessage *retval = NULL;
TpAccountManager *acc_man = NULL;
@@ -271,7 +271,7 @@ empathy_message_from_tpl_log_entry (TplLogEntry *logentry)
TplContact *sender = NULL;
gchar *body= NULL;
- g_return_val_if_fail (TPL_IS_LOG_ENTRY (logentry), NULL);
+ g_return_val_if_fail (TPL_IS_ENTRY (logentry), NULL);
acc_man = tp_account_manager_dup ();
/* FIXME Currently Empathy shows in the log viewer only valid accounts, so it
@@ -286,24 +286,24 @@ empathy_message_from_tpl_log_entry (TplLogEntry *logentry)
* needed anymore any TpAccount passing and the following call will be
* useless */
account = tp_account_manager_ensure_account (acc_man,
- tpl_log_entry_get_account_path (logentry));
+ tpl_entry_get_account_path (logentry));
g_object_unref (acc_man);
- /* TODO Currently only TplLogEntryText exists as subclass of TplLogEntry, in
- * future more TplLogEntry will exist and EmpathyMessage should probably
+ /* TODO Currently only TplLogEntryText exists as subclass of TplEntry, in
+ * future more TplEntry will exist and EmpathyMessage should probably
* be enhanced to support other types of log entries (ie TplLogEntryCall).
*
* For now we just check (simply) that we are dealing with the only supported type,
* then there will be a if/then/else or switch handling all the supported
* cases.
*/
- if (!TPL_IS_LOG_ENTRY_TEXT (logentry))
+ if (!TPL_IS_ENTRY_TEXT (logentry))
return NULL;
- body = g_strdup (tpl_log_entry_text_get_message (
- TPL_LOG_ENTRY_TEXT (logentry)));
- receiver = tpl_log_entry_get_receiver (logentry);
- sender = tpl_log_entry_get_sender (logentry);
+ body = g_strdup (tpl_entry_text_get_message (
+ TPL_ENTRY_TEXT (logentry)));
+ receiver = tpl_entry_get_receiver (logentry);
+ sender = tpl_entry_get_sender (logentry);
retval = empathy_message_new (body);
if (receiver != NULL)
@@ -314,9 +314,9 @@ empathy_message_from_tpl_log_entry (TplLogEntry *logentry)
empathy_contact_from_tpl_contact (account, sender));
empathy_message_set_timestamp (retval,
- tpl_log_entry_get_timestamp (logentry));
+ tpl_entry_get_timestamp (logentry));
empathy_message_set_id (retval,
- tpl_log_entry_get_pending_msg_id (logentry));
+ tpl_entry_text_get_pending_msg_id (TPL_ENTRY_TEXT (logentry)));
empathy_message_set_is_backlog (retval, FALSE);
g_free (body);
diff --git a/libempathy/empathy-message.h b/libempathy/empathy-message.h
index d8d0c9603..d7f29f748 100644
--- a/libempathy/empathy-message.h
+++ b/libempathy/empathy-message.h
@@ -27,7 +27,7 @@
#include <glib-object.h>
#ifdef ENABLE_TPL
-#include <telepathy-logger/log-entry.h>
+#include <telepathy-logger/entry.h>
#endif
#include "empathy-contact.h"
@@ -57,7 +57,7 @@ struct _EmpathyMessageClass {
GType empathy_message_get_type (void) G_GNUC_CONST;
EmpathyMessage * empathy_message_new (const gchar *body);
#ifdef ENABLE_TPL
-EmpathyMessage * empathy_message_from_tpl_log_entry (TplLogEntry *logentry);
+EmpathyMessage * empathy_message_from_tpl_log_entry (TplEntry *logentry);
#endif /* ENABLE_TPL */
TpChannelTextMessageType empathy_message_get_tptype (EmpathyMessage *message);
void empathy_message_set_tptype (EmpathyMessage *message,