]> git.0d.be Git - empathy.git/blob - src/empathy-ft-manager.h
Merge branch 'irc-dialog-579800'
[empathy.git] / src / empathy-ft-manager.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2007 Marco Barisione <marco@barisione.org>
4  * Copyright (C) 2008 Collabora Ltd.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with this program; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  * Authors: Marco Barisione <marco@barisione.org>
22  *          Jonny Lamb <jonny.lamb@collabora.co.uk>
23  */
24
25 #ifndef __EMPATHY_FT_MANAGER_H__
26 #define __EMPATHY_FT_MANAGER_H__
27
28 #include <gtk/gtk.h>
29 #include <glib-object.h>
30 #include <glib.h>
31
32 #include <libempathy/empathy-tp-file.h>
33
34 G_BEGIN_DECLS
35
36 #define EMPATHY_TYPE_FT_MANAGER (empathy_ft_manager_get_type ())
37 #define EMPATHY_FT_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_FT_MANAGER, EmpathyFTManager))
38 #define EMPATHY_FT_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_FT_MANAGER, EmpathyFTManagerClass))
39 #define EMPATHY_IS_FT_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_FT_MANAGER))
40 #define EMPATHY_IS_FT_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_FT_MANAGER))
41 #define EMPATHY_FT_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_FT_MANAGER, EmpathyFTManagerClass))
42
43 typedef struct _EmpathyFTManager EmpathyFTManager;
44 typedef struct _EmpathyFTManagerPriv EmpathyFTManagerPriv;
45 typedef struct _EmpathyFTManagerClass EmpathyFTManagerClass;
46
47 struct _EmpathyFTManager
48 {
49   GObject parent;
50
51   EmpathyFTManagerPriv *priv;
52 };
53
54 struct _EmpathyFTManagerClass
55 {
56   GObjectClass parent_class;
57 };
58
59 GType empathy_ft_manager_get_type (void);
60
61 EmpathyFTManager *empathy_ft_manager_dup_singleton (void);
62 void empathy_ft_manager_add_tp_file (EmpathyFTManager *ft_manager, EmpathyTpFile *tp_file);
63 GtkWidget *empathy_ft_manager_get_dialog (EmpathyFTManager *ft_manager);
64
65 G_END_DECLS
66
67 #endif /* __EMPATHY_FT_MANAGER_H__ */