Don't repeat a tooltip format string
[empathy-mirror.git] / src / empathy-tube-dispatch.h
blob844c881452fbc1112b8be399e97da04d55fdfce1
1 /*
2 * empathy-tube-dispatch.h - Header for EmpathyTubeDispatch
3 * Copyright (C) 2008 Collabora Ltd.
4 * @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
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.
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.
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
21 #ifndef __EMPATHY_TUBE_DISPATCH_H__
22 #define __EMPATHY_TUBE_DISPATCH_H__
24 #include <glib-object.h>
26 #include <libempathy/empathy-dispatch-operation.h>
28 G_BEGIN_DECLS
30 typedef enum {
31 EMPATHY_TUBE_DISPATCHABILITY_UNKNOWN,
32 EMPATHY_TUBE_DISPATCHABILITY_POSSIBLE,
33 EMPATHY_TUBE_DISPATCHABILITY_IMPOSSIBLE,
34 } EmpathyTubeDispatchAbility;
36 typedef struct _EmpathyTubeDispatch EmpathyTubeDispatch;
37 typedef struct _EmpathyTubeDispatchClass EmpathyTubeDispatchClass;
39 struct _EmpathyTubeDispatchClass {
40 GObjectClass parent_class;
43 struct _EmpathyTubeDispatch {
44 GObject parent;
47 GType empathy_tube_dispatch_get_type (void);
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))
66 EmpathyTubeDispatch * empathy_tube_dispatch_new (
67 EmpathyDispatchOperation *operation);
69 EmpathyTubeDispatchAbility empathy_tube_dispatch_is_dispatchable (
70 EmpathyTubeDispatch *tube_dispatch);
71 void empathy_tube_dispatch_handle (EmpathyTubeDispatch *tube_dispatch);
73 G_END_DECLS
75 #endif /* #ifndef __EMPATHY_TUBE_DISPATCH_H__*/