50
50
GTypeInterface parent;
52
52
const gchar * (*get_name) (EmpathyLogStore *self);
53
gboolean (*exists) (EmpathyLogStore *self, EmpathyAccount *account,
53
gboolean (*exists) (EmpathyLogStore *self, TpAccount *account,
54
54
const gchar *chat_id, gboolean chatroom);
55
55
gboolean (*add_message) (EmpathyLogStore *self, const gchar *chat_id,
56
56
gboolean chatroom, EmpathyMessage *message, GError **error);
57
GList * (*get_dates) (EmpathyLogStore *self, EmpathyAccount *account,
57
GList * (*get_dates) (EmpathyLogStore *self, TpAccount *account,
58
58
const gchar *chat_id, gboolean chatroom);
59
59
GList * (*get_messages_for_date) (EmpathyLogStore *self,
60
EmpathyAccount *account, const gchar *chat_id, gboolean chatroom,
60
TpAccount *account, const gchar *chat_id, gboolean chatroom,
61
61
const gchar *date);
62
GList * (*get_last_messages) (EmpathyLogStore *self, EmpathyAccount *account,
62
GList * (*get_last_messages) (EmpathyLogStore *self, TpAccount *account,
63
63
const gchar *chat_id, gboolean chatroom);
64
64
GList * (*get_chats) (EmpathyLogStore *self,
65
EmpathyAccount *account);
66
66
GList * (*search_new) (EmpathyLogStore *self, const gchar *text);
67
67
void (*ack_message) (EmpathyLogStore *self, const gchar *chat_id,
68
68
gboolean chatroom, EmpathyMessage *message);
69
GList * (*get_filtered_messages) (EmpathyLogStore *self, EmpathyAccount *account,
69
GList * (*get_filtered_messages) (EmpathyLogStore *self, TpAccount *account,
70
70
const gchar *chat_id, gboolean chatroom, guint num_messages,
71
71
EmpathyLogMessageFilter filter, gpointer user_data);
76
76
const gchar *empathy_log_store_get_name (EmpathyLogStore *self);
77
77
gboolean empathy_log_store_exists (EmpathyLogStore *self,
78
EmpathyAccount *account, const gchar *chat_id, gboolean chatroom);
78
TpAccount *account, const gchar *chat_id, gboolean chatroom);
79
79
gboolean empathy_log_store_add_message (EmpathyLogStore *self,
80
80
const gchar *chat_id, gboolean chatroom, EmpathyMessage *message,
82
82
GList *empathy_log_store_get_dates (EmpathyLogStore *self,
83
EmpathyAccount *account, const gchar *chat_id, gboolean chatroom);
83
TpAccount *account, const gchar *chat_id, gboolean chatroom);
84
84
GList *empathy_log_store_get_messages_for_date (EmpathyLogStore *self,
85
EmpathyAccount *account, const gchar *chat_id, gboolean chatroom,
85
TpAccount *account, const gchar *chat_id, gboolean chatroom,
86
86
const gchar *date);
87
87
GList *empathy_log_store_get_last_messages (EmpathyLogStore *self,
88
EmpathyAccount *account, const gchar *chat_id, gboolean chatroom);
88
TpAccount *account, const gchar *chat_id, gboolean chatroom);
89
89
GList *empathy_log_store_get_chats (EmpathyLogStore *self,
90
EmpathyAccount *account);
91
91
GList *empathy_log_store_search_new (EmpathyLogStore *self,
92
92
const gchar *text);
93
93
void empathy_log_store_ack_message (EmpathyLogStore *self,
94
94
const gchar *chat_id, gboolean chatroom, EmpathyMessage *message);
95
95
GList *empathy_log_store_get_filtered_messages (EmpathyLogStore *self,
96
EmpathyAccount *account, const gchar *chat_id, gboolean chatroom,
96
TpAccount *account, const gchar *chat_id, gboolean chatroom,
97
97
guint num_messages, EmpathyLogMessageFilter filter, gpointer user_data);