Update Slovak translation
[empathy-mirror.git] / src / empathy-chat-manager.h
blob06f6947b7619be3577c811e23a9c91c37af3d46c
1 /*
2 * empathy-chat-manager.h - Header for EmpathyChatManager
3 * Copyright (C) 2010 Collabora Ltd.
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.
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.
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
20 #ifndef __EMPATHY_CHAT_MANAGER_H__
21 #define __EMPATHY_CHAT_MANAGER_H__
24 #include "empathy-chat.h"
25 #include "chat-manager-interface.h"
27 G_BEGIN_DECLS
29 typedef struct _EmpathyChatManager EmpathyChatManager;
30 typedef struct _EmpathyChatManagerClass EmpathyChatManagerClass;
32 struct _EmpathyChatManagerClass
34 EmpathyGenChatManagerSkeletonClass parent_class;
37 struct _EmpathyChatManager
39 EmpathyGenChatManagerSkeleton parent;
42 GType empathy_chat_manager_get_type (void);
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))
61 EmpathyChatManager *empathy_chat_manager_dup_singleton (void);
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);
69 void empathy_chat_manager_call_undo_closed_chat (void);
71 G_END_DECLS
73 #endif /* #ifndef __EMPATHY_CHAT_MANAGER_H__*/