]> git.0d.be Git - empathy.git/blob - src/empathy-chat-manager.h
ab3817ea92c2487c986dfc6709a4f38ea4369fae
[empathy.git] / src / empathy-chat-manager.h
1 /*
2  * empathy-chat-manager.h - Header for EmpathyChatManager
3  * Copyright (C) 2010 Collabora Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19
20 #ifndef __EMPATHY_CHAT_MANAGER_H__
21 #define __EMPATHY_CHAT_MANAGER_H__
22
23 #include <glib-object.h>
24
25 #include "empathy-chat.h"
26
27 G_BEGIN_DECLS
28
29 typedef struct _EmpathyChatManager EmpathyChatManager;
30 typedef struct _EmpathyChatManagerClass EmpathyChatManagerClass;
31
32 struct _EmpathyChatManagerClass
33 {
34   GObjectClass parent_class;
35 };
36
37 struct _EmpathyChatManager
38 {
39   GObject parent;
40 };
41
42 GType empathy_chat_manager_get_type (void);
43
44 /* TYPE MACROS */
45 #define EMPATHY_TYPE_CHAT_MANAGER \
46   (empathy_chat_manager_get_type ())
47 #define EMPATHY_CHAT_MANAGER(obj) \
48   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_CHAT_MANAGER, \
49     EmpathyChatManager))
50 #define EMPATHY_CHAT_MANAGER_CLASS(klass) \
51   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_CHAT_MANAGER, \
52     EmpathyChatManagerClass))
53 #define EMPATHY_IS_CHAT_MANAGER(obj) \
54   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_CHAT_MANAGER))
55 #define EMPATHY_IS_CHAT_MANAGER_CLASS(klass) \
56   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_CHAT_MANAGER))
57 #define EMPATHY_CHAT_MANAGER_GET_CLASS(obj) \
58   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CHAT_MANAGER, \
59     EmpathyChatManagerClass))
60
61 EmpathyChatManager *empathy_chat_manager_dup_singleton (void);
62
63 void empathy_chat_manager_closed_chat (EmpathyChatManager *self,
64     EmpathyChat *chat);
65 void empathy_chat_manager_undo_closed_chat (EmpathyChatManager *self,
66     gint64 timestamp);
67 guint empathy_chat_manager_get_num_closed_chats (EmpathyChatManager *self);
68
69 void empathy_chat_manager_call_undo_closed_chat (void);
70
71 G_END_DECLS
72
73 #endif /* #ifndef __EMPATHY_CHAT_MANAGER_H__*/