2 * Copyright (C) 2008 Collabora Ltd.
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.
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.
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
18 * Authors: Xavier Claessens <xclaesse@gmail.com>
19 * Elliot Fairweather <elliot.fairweather@collabora.co.uk>
22 #ifndef __EMPATHY_TUBE_HANDLER_H__
23 #define __EMPATHY_TUBE_HANDLER_H__
27 #include <telepathy-glib/enums.h>
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))
43 typedef struct _EmpathyTubeHandler EmpathyTubeHandler
;
44 typedef struct _EmpathyTubeHandlerClass EmpathyTubeHandlerClass
;
46 struct _EmpathyTubeHandler
{
50 struct _EmpathyTubeHandlerClass
{
51 GObjectClass parent_class
;
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
);
64 #endif /* __EMPATHY_TUBE_HANDLER_H__ */