empathy r2127 - trunk/libempathy



Author: xclaesse
Date: Fri Jan  9 16:11:54 2009
New Revision: 2127
URL: http://svn.gnome.org/viewvc/empathy?rev=2127&view=rev

Log:
Add id field to save the message id as received the CM

Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>

Modified:
   trunk/libempathy/empathy-message.c
   trunk/libempathy/empathy-message.h

Modified: trunk/libempathy/empathy-message.c
==============================================================================
--- trunk/libempathy/empathy-message.c	(original)
+++ trunk/libempathy/empathy-message.c	Fri Jan  9 16:11:54 2009
@@ -37,6 +37,7 @@
 	EmpathyContact           *receiver;
 	gchar                    *body;
 	time_t                    timestamp;
+	guint		                  id;
 } EmpathyMessagePriv;
 
 static void empathy_message_finalize   (GObject            *object);
@@ -479,3 +480,18 @@
 	}
 }
 
+guint
+empathy_message_get_id (EmpathyMessage *message)
+{
+	EmpathyMessagePriv *priv = GET_PRIV (message);
+
+	return priv->id;
+}
+
+void
+empathy_message_set_id (EmpathyMessage *message, guint id)
+{
+	EmpathyMessagePriv *priv = GET_PRIV (message);
+
+	priv->id = id;
+}

Modified: trunk/libempathy/empathy-message.h
==============================================================================
--- trunk/libempathy/empathy-message.h	(original)
+++ trunk/libempathy/empathy-message.h	Fri Jan  9 16:11:54 2009
@@ -72,6 +72,9 @@
 TpChannelTextMessageType empathy_message_type_from_str     (const gchar              *type_str);
 const gchar *            empathy_message_type_to_str       (TpChannelTextMessageType  type);
 
+guint empathy_message_get_id (EmpathyMessage *message);
+void  empathy_message_set_id (EmpathyMessage *message, guint id);
+
 G_END_DECLS
 
 #endif /* __EMPATHY_MESSAGE_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]