Updated French translation
[empathy-mirror.git] / src / empathy-chat-window.h
blobae986cc7f07a0c4f72ede53fc00983facbfc8cd5
1 /*
2 * Copyright (C) 2003-2007 Imendio AB
3 * Copyright (C) 2007-2012 Collabora Ltd.
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.
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.
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
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>
27 #ifndef __EMPATHY_CHAT_WINDOW_H__
28 #define __EMPATHY_CHAT_WINDOW_H__
30 #include <gtk/gtk.h>
31 #include <telepathy-glib/telepathy-glib.h>
33 #include "empathy-chat.h"
34 #include "empathy-individual-manager.h"
36 G_BEGIN_DECLS
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))
60 typedef struct _EmpathyChatWindow EmpathyChatWindow;
61 typedef struct _EmpathyChatWindowClass EmpathyChatWindowClass;
62 typedef struct _EmpathyChatWindowPriv EmpathyChatWindowPriv;
64 struct _EmpathyChatWindow
66 GtkWindow parent;
67 EmpathyChatWindowPriv *priv;
70 struct _EmpathyChatWindowClass
72 GtkWindowClass parent_class;
75 GType empathy_chat_window_get_type (void);
77 EmpathyChat * empathy_chat_window_find_chat (TpAccount *account,
78 const gchar *id,
79 gboolean sms_channel);
81 EmpathyChatWindow * empathy_chat_window_present_chat (EmpathyChat *chat,
82 gint64 timestamp);
84 EmpathyIndividualManager * empathy_chat_window_get_individual_manager (
85 EmpathyChatWindow *self);
87 G_END_DECLS
89 #endif