empathy r2606 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2606 - trunk/libempathy
- Date: Fri, 6 Mar 2009 11:52:51 +0000 (UTC)
Author: xclaesse
Date: Fri Mar 6 11:52:51 2009
New Revision: 2606
URL: http://svn.gnome.org/viewvc/empathy?rev=2606&view=rev
Log:
Added empathy_log_store_get_filtered_messages.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy/empathy-log-store.c
trunk/libempathy/empathy-log-store.h
Modified: trunk/libempathy/empathy-log-store.c
==============================================================================
--- trunk/libempathy/empathy-log-store.c (original)
+++ trunk/libempathy/empathy-log-store.c Fri Mar 6 11:52:51 2009
@@ -154,3 +154,20 @@
EMPATHY_LOG_STORE_GET_INTERFACE (self)->ack_message (
self, chat_id, chatroom, message);
}
+
+GList *
+empathy_log_store_get_filtered_messages (EmpathyLogStore *self,
+ McAccount *account,
+ const gchar *chat_id,
+ gboolean chatroom,
+ guint num_messages,
+ EmpathyLogMessageFilter filter,
+ gpointer user_data)
+
+{
+ if (!EMPATHY_LOG_STORE_GET_INTERFACE (self)->get_filtered_messages)
+ return NULL;
+
+ return EMPATHY_LOG_STORE_GET_INTERFACE (self)->get_filtered_messages (
+ self, account, chat_id, chatroom, num_messages, filter, user_data);
+}
Modified: trunk/libempathy/empathy-log-store.h
==============================================================================
--- trunk/libempathy/empathy-log-store.h (original)
+++ trunk/libempathy/empathy-log-store.h Fri Mar 6 11:52:51 2009
@@ -28,6 +28,7 @@
#include <libmissioncontrol/mc-account.h>
#include "empathy-message.h"
+#include "empathy-log-manager.h"
G_BEGIN_DECLS
@@ -65,6 +66,9 @@
GList * (*search_new) (EmpathyLogStore *self, const gchar *text);
void (*ack_message) (EmpathyLogStore *self, const gchar *chat_id,
gboolean chatroom, EmpathyMessage *message);
+ GList * (*get_filtered_messages) (EmpathyLogStore *self, McAccount *account,
+ const gchar *chat_id, gboolean chatroom, guint num_messages,
+ EmpathyLogMessageFilter filter, gpointer user_data);
};
GType empathy_log_store_get_type (void) G_GNUC_CONST;
@@ -88,6 +92,9 @@
const gchar *text);
void empathy_log_store_ack_message (EmpathyLogStore *self,
const gchar *chat_id, gboolean chatroom, EmpathyMessage *message);
+GList *empathy_log_store_get_filtered_messages (EmpathyLogStore *self,
+ McAccount *account, const gchar *chat_id, gboolean chatroom,
+ guint num_messages, EmpathyLogMessageFilter filter, gpointer user_data);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]