]> git.0d.be Git - empathy.git/blob - src/empathy-chat-window.h
use a single window, with tabs
[empathy.git] / src / empathy-chat-window.h
1 /*
2  * Copyright (C) 2003-2007 Imendio AB
3  * Copyright (C) 2007-2012 Collabora Ltd.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program 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  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA  02110-1301  USA
19  *
20  * Authors: Mikael Hallendal <micke@imendio.com>
21  *          Richard Hult <richard@imendio.com>
22  *          Martyn Russell <martyn@imendio.com>
23  *          Geert-Jan Van den Bogaerde <geertjan@gnome.org>
24  *          Xavier Claessens <xclaesse@gmail.com>
25  */
26
27 #ifndef __EMPATHY_CHAT_WINDOW_H__
28 #define __EMPATHY_CHAT_WINDOW_H__
29
30 #include <gtk/gtk.h>
31 #include <telepathy-glib/telepathy-glib.h>
32
33 #include "empathy-chat.h"
34 #include "empathy-individual-manager.h"
35
36 G_BEGIN_DECLS
37
38 #define EMPATHY_TYPE_CHAT_WINDOW \
39   (empathy_chat_window_get_type ())
40 #define EMPATHY_CHAT_WINDOW(obj) \
41   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
42     EMPATHY_TYPE_CHAT_WINDOW, \
43     EmpathyChatWindow))
44 #define EMPATHY_CHAT_WINDOW_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_CAST((klass), \
46     EMPATHY_TYPE_CHAT_WINDOW, \
47     EmpathyChatWindowClass))
48 #define EMPATHY_IS_CHAT_WINDOW(obj) \
49   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
50     EMPATHY_TYPE_CHAT_WINDOW))
51 #define EMPATHY_IS_CHAT_WINDOW_CLASS(klass) \
52   (G_TYPE_CHECK_CLASS_TYPE((klass), \
53     EMPATHY_TYPE_CHAT_WINDOW))
54 #define EMPATHY_CHAT_WINDOW_GET_CLASS(obj) \
55   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
56     EMPATHY_TYPE_CHAT_WINDOW, \
57     EmpathyChatWindowClass))
58
59
60 typedef struct _EmpathyChatWindow EmpathyChatWindow;
61 typedef struct _EmpathyChatWindowClass EmpathyChatWindowClass;
62 typedef struct _EmpathyChatWindowPriv EmpathyChatWindowPriv;
63
64 struct _EmpathyChatWindow
65 {
66   GtkBin parent;
67   EmpathyChatWindowPriv *priv;
68 };
69
70 struct _EmpathyChatWindowClass
71 {
72   GtkBinClass parent_class;
73 };
74
75 GType empathy_chat_window_get_type (void);
76
77 EmpathyChat * empathy_chat_window_find_chat (TpAccount *account,
78     const gchar *id,
79     gboolean sms_channel);
80
81 EmpathyChatWindow * empathy_chat_window_present_chat (EmpathyChat *chat,
82     gint64 timestamp);
83
84 EmpathyChatWindow * empathy_chat_window_new (void);
85
86 EmpathyIndividualManager * empathy_chat_window_get_individual_manager (
87     EmpathyChatWindow *self);
88
89 void empathy_chat_window_next_tab (EmpathyChatWindow *self);
90 void empathy_chat_window_prev_tab (EmpathyChatWindow *self);
91
92 G_END_DECLS
93
94 #endif