]> git.0d.be Git - empathy.git/blob - src/empathy-tube-dispatch.h
Merge branch 'debug-window'
[empathy.git] / src / empathy-tube-dispatch.h
1 /*
2  * empathy-tube-dispatch.h - Header for EmpathyTubeDispatch
3  * Copyright (C) 2008 Collabora Ltd.
4  * @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20
21 #ifndef __EMPATHY_TUBE_DISPATCH_H__
22 #define __EMPATHY_TUBE_DISPATCH_H__
23
24 #include <glib-object.h>
25
26 #include <libempathy/empathy-dispatch-operation.h>
27
28 G_BEGIN_DECLS
29
30 typedef enum {
31   EMPATHY_TUBE_DISPATCHABILITY_UNKNOWN,
32   EMPATHY_TUBE_DISPATCHABILITY_POSSIBLE,
33   EMPATHY_TUBE_DISPATCHABILITY_IMPOSSIBLE,
34 } EmpathyTubeDispatchAbility;
35
36 typedef struct _EmpathyTubeDispatch EmpathyTubeDispatch;
37 typedef struct _EmpathyTubeDispatchClass EmpathyTubeDispatchClass;
38
39 struct _EmpathyTubeDispatchClass {
40     GObjectClass parent_class;
41 };
42
43 struct _EmpathyTubeDispatch {
44     GObject parent;
45 };
46
47 GType empathy_tube_dispatch_get_type (void);
48
49 /* TYPE MACROS */
50 #define EMPATHY_TYPE_TUBE_DISPATCH \
51   (empathy_tube_dispatch_get_type ())
52 #define EMPATHY_TUBE_DISPATCH(obj) \
53   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_TUBE_DISPATCH, \
54     EmpathyTubeDispatch))
55 #define EMPATHY_TUBE_DISPATCH_CLASS(klass) \
56   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_TUBE_DISPATCH, \
57     EmpathyTubeDispatchClass))
58 #define EMPATHY_IS_TUBE_DISPATCH(obj) \
59   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_TUBE_DISPATCH))
60 #define EMPATHY_IS_TUBE_DISPATCH_CLASS(klass) \
61   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_TUBE_DISPATCH))
62 #define EMPATHY_TUBE_DISPATCH_GET_CLASS(obj) \
63   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_TUBE_DISPATCH, \
64    EmpathyTubeDispatchClass))
65
66 EmpathyTubeDispatch * empathy_tube_dispatch_new (
67   EmpathyDispatchOperation *operation);
68
69 EmpathyTubeDispatchAbility empathy_tube_dispatch_is_dispatchable (
70   EmpathyTubeDispatch *tube_dispatch);
71 void empathy_tube_dispatch_handle (EmpathyTubeDispatch *tube_dispatch);
72
73 G_END_DECLS
74
75 #endif /* #ifndef __EMPATHY_TUBE_DISPATCH_H__*/