]> git.0d.be Git - empathy.git/blob - libempathy/empathy-tube-handler.h
use TpTubeType instead of EmpathyTubeType
[empathy.git] / libempathy / empathy-tube-handler.h
1 /*
2  * Copyright (C) 2008 Collabora Ltd.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Authors: Xavier Claessens <xclaesse@gmail.com>
19  *          Elliot Fairweather <elliot.fairweather@collabora.co.uk>
20  */
21
22 #ifndef __EMPATHY_TUBE_HANDLER_H__
23 #define __EMPATHY_TUBE_HANDLER_H__
24
25 #include <glib.h>
26
27 #include <telepathy-glib/enums.h>
28
29 G_BEGIN_DECLS
30
31 #define EMPATHY_TYPE_TUBE_HANDLER (empathy_tube_handler_get_type ())
32 #define EMPATHY_TUBE_HANDLER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
33     EMPATHY_TYPE_TUBE_HANDLER, EmpathyTubeHandler))
34 #define EMPATHY_TUBE_HANDLER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), \
35     EMPATHY_TYPE_TUBE_HANDLER, EmpathyTubeHandlerClass))
36 #define EMPATHY_IS_TUBE_HANDLER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
37     EMPATHY_TYPE_TUBE_HANDLER))
38 #define EMPATHY_IS_TUBE_HANDLER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), \
39     EMPATHY_TYPE_TUBE_HANDLER))
40 #define EMPATHY_TUBE_HANDLER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), \
41     EMPATHY_TYPE_TUBE_HANDLER, EmpathyTubeHandlerClass))
42
43 typedef struct _EmpathyTubeHandler EmpathyTubeHandler;
44 typedef struct _EmpathyTubeHandlerClass EmpathyTubeHandlerClass;
45
46 struct _EmpathyTubeHandler {
47   GObject parent;
48 };
49
50 struct _EmpathyTubeHandlerClass {
51   GObjectClass parent_class;
52 };
53
54 GType empathy_tube_handler_get_type (void) G_GNUC_CONST;
55 EmpathyTubeHandler *empathy_tube_handler_new (TpTubeType type,
56     const gchar *service);
57 gchar *empathy_tube_handler_build_bus_name (TpTubeType type,
58     const gchar *service);
59 gchar *empathy_tube_handler_build_object_path (TpTubeType type,
60     const gchar *service);
61
62 G_END_DECLS
63
64 #endif /* __EMPATHY_TUBE_HANDLER_H__ */