1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2007 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_TP_CHATROOM_H__
23 #define __EMPATHY_TP_CHATROOM_H__
27 #include <libtelepathy/tp-chan.h>
29 #include <libmissioncontrol/mc-account.h>
31 #include "empathy-tp-chat.h"
35 #define EMPATHY_TYPE_TP_CHATROOM (empathy_tp_chatroom_get_type ())
36 #define EMPATHY_TP_CHATROOM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_TP_CHATROOM, EmpathyTpChatroom))
37 #define EMPATHY_TP_CHATROOM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_TP_CHATROOM, EmpathyTpChatroomClass))
38 #define EMPATHY_IS_TP_CHATROOM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_TP_CHATROOM))
39 #define EMPATHY_IS_TP_CHATROOM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_TP_CHATROOM))
40 #define EMPATHY_TP_CHATROOM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_TP_CHATROOM, EmpathyTpChatroomClass))
42 typedef struct _EmpathyTpChatroom EmpathyTpChatroom;
43 typedef struct _EmpathyTpChatroomClass EmpathyTpChatroomClass;
44 typedef struct _EmpathyTpChatroomPriv EmpathyTpChatroomPriv;
46 struct _EmpathyTpChatroom {
50 struct _EmpathyTpChatroomClass {
51 EmpathyTpChatClass parent_class;
54 GType empathy_tp_chatroom_get_type (void) G_GNUC_CONST;
55 EmpathyTpChatroom *empathy_tp_chatroom_new (McAccount *account,
57 gboolean empathy_tp_chatroom_get_invitation (EmpathyTpChatroom *chatroom,
58 EmpathyContact **contact,
59 const gchar **message);
60 void empathy_tp_chatroom_accept_invitation (EmpathyTpChatroom *chatroom);
61 void empathy_tp_chatroom_set_topic (EmpathyTpChatroom *chatroom,
65 #endif /* __EMPATHY_TP_CHATROOM_H__ */