]> git.0d.be Git - empathy.git/blob - libempathy/empathy-tp-chatroom.h
Import tools from telepathy-glib 0.7.3 and build a static libemp-extensions.la.
[empathy.git] / libempathy / empathy-tp-chatroom.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007 Collabora Ltd.
4  *
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.
9  *
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.
14  *
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
18  *
19  * Authors: Xavier Claessens <xclaesse@gmail.com>
20  */
21
22 #ifndef __EMPATHY_TP_CHATROOM_H__
23 #define __EMPATHY_TP_CHATROOM_H__
24
25 #include <glib.h>
26
27 #include <libtelepathy/tp-chan.h>
28
29 #include <libmissioncontrol/mc-account.h>
30
31 #include "empathy-tp-chat.h"
32
33 G_BEGIN_DECLS
34
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))
41
42 typedef struct _EmpathyTpChatroom      EmpathyTpChatroom;
43 typedef struct _EmpathyTpChatroomClass EmpathyTpChatroomClass;
44 typedef struct _EmpathyTpChatroomPriv  EmpathyTpChatroomPriv;
45
46 struct _EmpathyTpChatroom {
47         EmpathyTpChat parent;
48 };
49
50 struct _EmpathyTpChatroomClass {
51         EmpathyTpChatClass parent_class;
52 };
53
54 GType              empathy_tp_chatroom_get_type          (void) G_GNUC_CONST;
55 EmpathyTpChatroom *empathy_tp_chatroom_new               (McAccount          *account,
56                                                           TpChan             *tp_chan);
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,
62                                                           const gchar       *topic);
63 G_END_DECLS
64
65 #endif /* __EMPATHY_TP_CHATROOM_H__ */