~bcurtiswx/ubuntu/precise/empathy/3.4.2.1-0ubuntu1

« back to all changes in this revision

Viewing changes to libempathy/empathy-log-store.h

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2009-11-16 23:40:52 UTC
  • mfrom: (1.1.39 upstream)
  • mto: (6.3.7 experimental)
  • mto: This revision was merged to the branch mainline in revision 80.
  • Revision ID: james.westby@ubuntu.com-20091116234052-7hhwrpeln4mwdyw7
Tags: upstream-2.29.2
ImportĀ upstreamĀ versionĀ 2.29.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <glib-object.h>
27
27
 
28
 
#include <libempathy/empathy-account.h>
 
28
#include <telepathy-glib/account.h>
29
29
 
30
30
#include "empathy-message.h"
31
31
#include "empathy-log-manager.h"
50
50
  GTypeInterface parent;
51
51
 
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);
 
65
            TpAccount    *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);
72
72
};
75
75
 
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,
81
81
    GError **error);
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);
 
90
    TpAccount *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);
98
98
 
99
99
G_END_DECLS