rounded-effect: make the rounded rectangle coarser
[empathy-mirror.git] / libempathy / empathy-chatroom.h
blob98ed04b96bb94cd6f30b0958566ebf8d6e8d1ef3
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>
26 #include <telepathy-glib/telepathy-glib.h>
28 #include "empathy-tp-chat.h"
30 G_BEGIN_DECLS
32 #define EMPATHY_TYPE_CHATROOM (empathy_chatroom_get_type ())
33 #define EMPATHY_CHATROOM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CHATROOM, EmpathyChatroom))
34 #define EMPATHY_CHATROOM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CHATROOM, EmpathyChatroomClass))
35 #define EMPATHY_IS_CHATROOM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CHATROOM))
36 #define EMPATHY_IS_CHATROOM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CHATROOM))
37 #define EMPATHY_CHATROOM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CHATROOM, EmpathyChatroomClass))
39 #define EMPATHY_TYPE_CHATROOM_INVITE (empathy_chatroom_invite_get_gtype ())
41 typedef struct _EmpathyChatroom EmpathyChatroom;
42 typedef struct _EmpathyChatroomClass EmpathyChatroomClass;
44 struct _EmpathyChatroom {
45 GObject parent;
46 gpointer priv;
49 struct _EmpathyChatroomClass {
50 GObjectClass parent_class;
53 GType empathy_chatroom_get_type (void) G_GNUC_CONST;
54 EmpathyChatroom *empathy_chatroom_new (TpAccount *account);
55 EmpathyChatroom *empathy_chatroom_new_full (TpAccount *account,
56 const gchar *room,
57 const gchar *name,
58 gboolean auto_connect);
59 TpAccount * empathy_chatroom_get_account (EmpathyChatroom *chatroom);
60 void empathy_chatroom_set_account (EmpathyChatroom *chatroom,
61 TpAccount *account);
62 const gchar * empathy_chatroom_get_room (EmpathyChatroom *chatroom);
63 void empathy_chatroom_set_room (EmpathyChatroom *chatroom,
64 const gchar *room);
65 const gchar * empathy_chatroom_get_name (EmpathyChatroom *chatroom);
66 void empathy_chatroom_set_name (EmpathyChatroom *chatroom,
67 const gchar *name);
68 gboolean empathy_chatroom_get_auto_connect (EmpathyChatroom *chatroom);
69 void empathy_chatroom_set_auto_connect (EmpathyChatroom *chatroom,
70 gboolean auto_connect);
71 const gchar * empathy_chatroom_get_subject (EmpathyChatroom *chatroom);
72 void empathy_chatroom_set_subject (EmpathyChatroom *chatroom,
73 const gchar *subject);
74 guint empathy_chatroom_get_members_count (EmpathyChatroom *chatroom);
75 void empathy_chatroom_set_members_count (EmpathyChatroom *chatroom,
76 guint count);
77 gboolean empathy_chatroom_get_need_password (EmpathyChatroom *chatroom);
78 void empathy_chatroom_set_need_password (EmpathyChatroom *chatroom,
79 gboolean need_password);
80 gboolean empathy_chatroom_get_invite_only (EmpathyChatroom *chatroom);
81 void empathy_chatroom_set_invite_only (EmpathyChatroom *chatroom,
82 gboolean invite_only);
83 gboolean empathy_chatroom_equal (gconstpointer v1,
84 gconstpointer v2);
85 EmpathyTpChat * empathy_chatroom_get_tp_chat (EmpathyChatroom *chatroom);
86 void empathy_chatroom_set_tp_chat (EmpathyChatroom *chatroom,
87 EmpathyTpChat *tp_chat);
88 gboolean empathy_chatroom_is_favorite (EmpathyChatroom *chatroom);
89 void empathy_chatroom_set_favorite (EmpathyChatroom *chatroom,
90 gboolean favorite);
91 gboolean empathy_chatroom_is_always_urgent (EmpathyChatroom *chatroom);
92 void empathy_chatroom_set_always_urgent (EmpathyChatroom *chatroom,
93 gboolean always_urgent);
95 G_END_DECLS
97 #endif /* __EMPATHY_CHATROOM_H__ */