Use help:empathy to open the help
[empathy-mirror.git] / libempathy / empathy-chatroom.h
blobf86f8ca9e6e685f29849b2d09ee2efb4c279032e
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2007-2008 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
19 * Authors: Xavier Claessens <xclaesse@gmail.com>
22 #ifndef __EMPATHY_CHATROOM_H__
23 #define __EMPATHY_CHATROOM_H__
25 #include <glib-object.h>
27 #include <telepathy-glib/account.h>
29 #include <libempathy/empathy-tp-chat.h>
31 G_BEGIN_DECLS
33 #define EMPATHY_TYPE_CHATROOM (empathy_chatroom_get_type ())
34 #define EMPATHY_CHATROOM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CHATROOM, EmpathyChatroom))
35 #define EMPATHY_CHATROOM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CHATROOM, EmpathyChatroomClass))
36 #define EMPATHY_IS_CHATROOM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CHATROOM))
37 #define EMPATHY_IS_CHATROOM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CHATROOM))
38 #define EMPATHY_CHATROOM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHATROOM, EmpathyChatroomClass))
40 #define EMPATHY_TYPE_CHATROOM_INVITE (empathy_chatroom_invite_get_gtype ())
42 typedef struct _EmpathyChatroom EmpathyChatroom;
43 typedef struct _EmpathyChatroomClass EmpathyChatroomClass;
45 struct _EmpathyChatroom {
46 GObject parent;
47 gpointer priv;
50 struct _EmpathyChatroomClass {
51 GObjectClass parent_class;
54 GType empathy_chatroom_get_type (void) G_GNUC_CONST;
55 EmpathyChatroom *empathy_chatroom_new (TpAccount *account);
56 EmpathyChatroom *empathy_chatroom_new_full (TpAccount *account,
57 const gchar *room,
58 const gchar *name,
59 gboolean auto_connect);
60 TpAccount * empathy_chatroom_get_account (EmpathyChatroom *chatroom);
61 void empathy_chatroom_set_account (EmpathyChatroom *chatroom,
62 TpAccount *account);
63 const gchar * empathy_chatroom_get_room (EmpathyChatroom *chatroom);
64 void empathy_chatroom_set_room (EmpathyChatroom *chatroom,
65 const gchar *room);
66 const gchar * empathy_chatroom_get_name (EmpathyChatroom *chatroom);
67 void empathy_chatroom_set_name (EmpathyChatroom *chatroom,
68 const gchar *name);
69 gboolean empathy_chatroom_get_auto_connect (EmpathyChatroom *chatroom);
70 void empathy_chatroom_set_auto_connect (EmpathyChatroom *chatroom,
71 gboolean auto_connect);
72 const gchar * empathy_chatroom_get_subject (EmpathyChatroom *chatroom);
73 void empathy_chatroom_set_subject (EmpathyChatroom *chatroom,
74 const gchar *subject);
75 guint empathy_chatroom_get_members_count (EmpathyChatroom *chatroom);
76 void empathy_chatroom_set_members_count (EmpathyChatroom *chatroom,
77 guint count);
78 gboolean empathy_chatroom_get_need_password (EmpathyChatroom *chatroom);
79 void empathy_chatroom_set_need_password (EmpathyChatroom *chatroom,
80 gboolean need_password);
81 gboolean empathy_chatroom_get_invite_only (EmpathyChatroom *chatroom);
82 void empathy_chatroom_set_invite_only (EmpathyChatroom *chatroom,
83 gboolean invite_only);
84 gboolean empathy_chatroom_equal (gconstpointer v1,
85 gconstpointer v2);
86 EmpathyTpChat * empathy_chatroom_get_tp_chat (EmpathyChatroom *chatroom);
87 void empathy_chatroom_set_tp_chat (EmpathyChatroom *chatroom,
88 EmpathyTpChat *tp_chat);
89 gboolean empathy_chatroom_is_favorite (EmpathyChatroom *chatroom);
90 void empathy_chatroom_set_favorite (EmpathyChatroom *chatroom,
91 gboolean favorite);
92 gboolean empathy_chatroom_is_always_urgent (EmpathyChatroom *chatroom);
93 void empathy_chatroom_set_always_urgent (EmpathyChatroom *chatroom,
94 gboolean always_urgent);
96 G_END_DECLS
98 #endif /* __EMPATHY_CHATROOM_H__ */