]> git.0d.be Git - empathy.git/blob - src/empathy-chat-manager.h
b5516c33d768b0330b7ad70182e3e77f18fce275
[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
24 #include "empathy-chat.h"
25
26 G_BEGIN_DECLS
27
28 typedef struct _EmpathyChatManager EmpathyChatManager;
29 typedef struct _EmpathyChatManagerClass EmpathyChatManagerClass;
30
31 struct _EmpathyChatManagerClass
32 {
33   GObjectClass parent_class;
34 };
35
36 struct _EmpathyChatManager
37 {
38   GObject parent;
39 };
40
41 GType empathy_chat_manager_get_type (void);
42
43 /* TYPE MACROS */
44 #define EMPATHY_TYPE_CHAT_MANAGER \
45   (empathy_chat_manager_get_type ())
46 #define EMPATHY_CHAT_MANAGER(obj) \
47   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_CHAT_MANAGER, \
48     EmpathyChatManager))
49 #define EMPATHY_CHAT_MANAGER_CLASS(klass) \
50   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_CHAT_MANAGER, \
51     EmpathyChatManagerClass))
52 #define EMPATHY_IS_CHAT_MANAGER(obj) \
53   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_CHAT_MANAGER))
54 #define EMPATHY_IS_CHAT_MANAGER_CLASS(klass) \
55   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_CHAT_MANAGER))
56 #define EMPATHY_CHAT_MANAGER_GET_CLASS(obj) \
57   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CHAT_MANAGER, \
58     EmpathyChatManagerClass))
59
60 EmpathyChatManager *empathy_chat_manager_dup_singleton (void);
61
62 void empathy_chat_manager_closed_chat (EmpathyChatManager *self,
63     EmpathyChat *chat);
64 void empathy_chat_manager_undo_closed_chat (EmpathyChatManager *self,
65     gint64 timestamp);
66 guint empathy_chat_manager_get_num_closed_chats (EmpathyChatManager *self);
67
68 void empathy_chat_manager_call_undo_closed_chat (void);
69
70 G_END_DECLS
71
72 #endif /* #ifndef __EMPATHY_CHAT_MANAGER_H__*/