aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:52:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:52:51 +0800
commit81a2b2be4616eecd70b122e5ca045f27d033dd4c (patch)
tree7ccc359dc43c7f6409e6cf1f9d99e4088d80d63d
parent6d3c3b4e7ae6c3d9fc7328607e903938d5679395 (diff)
downloadgsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.tar
gsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.tar.gz
gsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.tar.bz2
gsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.tar.lz
gsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.tar.xz
gsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.tar.zst
gsoc2013-empathy-81a2b2be4616eecd70b122e5ca045f27d033dd4c.zip
Added empathy_log_store_get_filtered_messages.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2606
-rw-r--r--libempathy/empathy-log-store.c17
-rw-r--r--libempathy/empathy-log-store.h7
2 files changed, 24 insertions, 0 deletions
diff --git a/libempathy/empathy-log-store.c b/libempathy/empathy-log-store.c
index 54681fed9..ba5a9a09d 100644
--- a/libempathy/empathy-log-store.c
+++ b/libempathy/empathy-log-store.c
@@ -154,3 +154,20 @@ empathy_log_store_ack_message (EmpathyLogStore *self,
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);
+}
diff --git a/libempathy/empathy-log-store.h b/libempathy/empathy-log-store.h
index c14f7f1c4..6a253b21b 100644
--- a/libempathy/empathy-log-store.h
+++ b/libempathy/empathy-log-store.h
@@ -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 @@ struct _EmpathyLogStoreInterface
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 @@ GList *empathy_log_store_search_new (EmpathyLogStore *self,
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