]> git.0d.be Git - empathy.git/blob - libempathy/gossip-chatroom-manager.h
Fix warning when selecting all accounts.
[empathy.git] / libempathy / gossip-chatroom-manager.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2004-2007 Imendio AB
4  * Copyright (C) 2007 Collabora Ltd.
5  *
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.
10  *
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.
15  *
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.
20  *
21  * Authors: Xavier Claessens <xclaesse@gmail.com>
22  *          Martyn Russell <martyn@imendio.com>
23  */
24
25 #ifndef __GOSSIP_CHATROOM_MANAGER_H__
26 #define __GOSSIP_CHATROOM_MANAGER_H__
27
28 #include <glib-object.h>
29
30 #include <libmissioncontrol/mc-account.h>
31
32 #include "gossip-chatroom.h"
33
34 G_BEGIN_DECLS
35
36 #define GOSSIP_TYPE_CHATROOM_MANAGER         (gossip_chatroom_manager_get_type ())
37 #define GOSSIP_CHATROOM_MANAGER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GOSSIP_TYPE_CHATROOM_MANAGER, GossipChatroomManager))
38 #define GOSSIP_CHATROOM_MANAGER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), GOSSIP_TYPE_CHATROOM_MANAGER, GossipChatroomManagerClass))
39 #define GOSSIP_IS_CHATROOM_MANAGER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOSSIP_TYPE_CHATROOM_MANAGER))
40 #define GOSSIP_IS_CHATROOM_MANAGER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), GOSSIP_TYPE_CHATROOM_MANAGER))
41 #define GOSSIP_CHATROOM_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOSSIP_TYPE_CHATROOM_MANAGER, GossipChatroomManagerClass))
42
43 typedef struct _GossipChatroomManager      GossipChatroomManager;
44 typedef struct _GossipChatroomManagerClass GossipChatroomManagerClass;
45 typedef struct _GossipChatroomManagerPriv  GossipChatroomManagerPriv;
46
47 struct _GossipChatroomManager {
48         GObject parent;
49 };
50
51 struct _GossipChatroomManagerClass {
52         GObjectClass parent_class;
53 };
54
55 GType                  gossip_chatroom_manager_get_type      (void) G_GNUC_CONST;
56 GossipChatroomManager *gossip_chatroom_manager_new           (void);
57 gboolean               gossip_chatroom_manager_add           (GossipChatroomManager *manager,
58                                                               GossipChatroom        *chatroom);
59 void                   gossip_chatroom_manager_remove        (GossipChatroomManager *manager,
60                                                               GossipChatroom        *chatroom);
61 GossipChatroom *       gossip_chatroom_manager_find          (GossipChatroomManager *manager,
62                                                               McAccount             *account,
63                                                               const gchar           *room);
64 GList *                gossip_chatroom_manager_get_chatrooms (GossipChatroomManager *manager,
65                                                               McAccount             *account);
66 guint                  gossip_chatroom_manager_get_count     (GossipChatroomManager *manager,
67                                                               McAccount             *account);
68 void                   gossip_chatroom_manager_store         (GossipChatroomManager *manager);
69
70 G_END_DECLS
71
72 #endif /* __GOSSIP_CHATROOM_MANAGER_H__ */