1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2004-2007 Imendio AB
4 * Copyright (C) 2007-2008 Collabora Ltd.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
21 * Authors: Xavier Claessens <xclaesse@gmail.com>
22 * Martyn Russell <martyn@imendio.com>
25 #ifndef __EMPATHY_CHATROOM_MANAGER_H__
26 #define __EMPATHY_CHATROOM_MANAGER_H__
28 #include <glib-object.h>
30 #include <libmissioncontrol/mc-account.h>
32 #include "empathy-chatroom.h"
36 #define EMPATHY_TYPE_CHATROOM_MANAGER (empathy_chatroom_manager_get_type ())
37 #define EMPATHY_CHATROOM_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CHATROOM_MANAGER, EmpathyChatroomManager))
38 #define EMPATHY_CHATROOM_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CHATROOM_MANAGER, EmpathyChatroomManagerClass))
39 #define EMPATHY_IS_CHATROOM_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CHATROOM_MANAGER))
40 #define EMPATHY_IS_CHATROOM_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CHATROOM_MANAGER))
41 #define EMPATHY_CHATROOM_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHATROOM_MANAGER, EmpathyChatroomManagerClass))
43 typedef struct _EmpathyChatroomManager EmpathyChatroomManager
;
44 typedef struct _EmpathyChatroomManagerClass EmpathyChatroomManagerClass
;
46 struct _EmpathyChatroomManager
{
51 struct _EmpathyChatroomManagerClass
{
52 GObjectClass parent_class
;
55 GType
empathy_chatroom_manager_get_type (void) G_GNUC_CONST
;
56 EmpathyChatroomManager
*empathy_chatroom_manager_new (void);
57 gboolean
empathy_chatroom_manager_add (EmpathyChatroomManager
*manager
,
58 EmpathyChatroom
*chatroom
);
59 void empathy_chatroom_manager_remove (EmpathyChatroomManager
*manager
,
60 EmpathyChatroom
*chatroom
);
61 EmpathyChatroom
* empathy_chatroom_manager_find (EmpathyChatroomManager
*manager
,
64 GList
* empathy_chatroom_manager_get_chatrooms (EmpathyChatroomManager
*manager
,
66 guint
empathy_chatroom_manager_get_count (EmpathyChatroomManager
*manager
,
68 void empathy_chatroom_manager_store (EmpathyChatroomManager
*manager
);
72 #endif /* __EMPATHY_CHATROOM_MANAGER_H__ */