]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-log-manager.h
New window for viewing logs.
[empathy.git] / libempathy / empathy-log-manager.h
index 8df68d5ed08ca955ce58ec03e6bc73d12aa904f5..9a163fd368d897c2ef704466e3f2a3334577eaba 100644 (file)
@@ -41,6 +41,7 @@ G_BEGIN_DECLS
 typedef struct _EmpathyLogManager      EmpathyLogManager;
 typedef struct _EmpathyLogManagerClass EmpathyLogManagerClass;
 typedef struct _EmpathyLogManagerPriv  EmpathyLogManagerPriv;
+typedef struct _EmpathyLogSearchHit    EmpathyLogSearchHit;
 
 struct _EmpathyLogManager {
        GObject parent;
@@ -50,21 +51,39 @@ struct _EmpathyLogManagerClass {
        GObjectClass parent_class;
 };
 
+struct _EmpathyLogSearchHit {
+       McAccount *account;
+       gchar     *chat_id;
+       gboolean   is_chatroom;
+       gchar     *filename;
+       gchar     *date;
+};
+
 GType              empathy_log_manager_get_type              (void) G_GNUC_CONST;
 EmpathyLogManager *empathy_log_manager_new                   (void);
 void               empathy_log_manager_add_message           (EmpathyLogManager *manager,
                                                              const gchar       *chat_id,
+                                                             gboolean           chatroom,
                                                              GossipMessage     *message);
 GList *            empathy_log_manager_get_dates             (EmpathyLogManager *manager,
                                                              McAccount         *account,
-                                                             const gchar       *chat_id);
+                                                             const gchar       *chat_id,
+                                                             gboolean           chatroom);
 GList *            empathy_log_manager_get_messages_for_date (EmpathyLogManager *manager,
                                                              McAccount         *account,
                                                              const gchar       *chat_id,
+                                                             gboolean           chatroom,
                                                              const gchar       *date);
 GList *            empathy_log_manager_get_last_messages     (EmpathyLogManager *manager,
                                                              McAccount         *account,
-                                                             const gchar       *chat_id);
+                                                             const gchar       *chat_id,
+                                                             gboolean           chatroom);
+GList *            empathy_log_manager_get_chats             (EmpathyLogManager *manager,
+                                                             McAccount         *account);
+GList *            empathy_log_manager_search_new            (EmpathyLogManager *manager,
+                                                             const gchar       *text);
+void               empathy_log_manager_search_free           (GList             *hits);
+gchar *            empathy_log_manager_get_date_readable     (const gchar       *date);
 
 G_END_DECLS