1 /*
2  * chan.h - header for an example channel
3  *
4  * Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/>
5  * Copyright (C) 2007 Nokia Corporation
6  *
7  * Copying and distribution of this file, with or without modification,
8  * are permitted in any medium without royalty provided the copyright
9  * notice and this notice are preserved.
10  */
11 
12 #ifndef EXAMPLE_ECHO_MESSAGE_PARTS_CHAN_H
13 #define EXAMPLE_ECHO_MESSAGE_PARTS_CHAN_H
14 
15 #include <glib-object.h>
16 #include <telepathy-glib/base-connection.h>
17 #include <telepathy-glib/message-mixin.h>
18 
19 G_BEGIN_DECLS
20 
21 typedef struct _ExampleEcho2Channel ExampleEcho2Channel;
22 typedef struct _ExampleEcho2ChannelClass ExampleEcho2ChannelClass;
23 typedef struct _ExampleEcho2ChannelPrivate ExampleEcho2ChannelPrivate;
24 
25 GType example_echo_2_channel_get_type (void);
26 
27 #define EXAMPLE_TYPE_ECHO_2_CHANNEL \
28   (example_echo_2_channel_get_type ())
29 #define EXAMPLE_ECHO_2_CHANNEL(obj) \
30   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXAMPLE_TYPE_ECHO_2_CHANNEL, \
31                                ExampleEcho2Channel))
32 #define EXAMPLE_ECHO_2_CHANNEL_CLASS(klass) \
33   (G_TYPE_CHECK_CLASS_CAST ((klass), EXAMPLE_TYPE_ECHO_2_CHANNEL, \
34                             ExampleEcho2ChannelClass))
35 #define EXAMPLE_IS_ECHO_2_CHANNEL(obj) \
36   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXAMPLE_TYPE_ECHO_2_CHANNEL))
37 #define EXAMPLE_IS_ECHO_2_CHANNEL_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_TYPE ((klass), EXAMPLE_TYPE_ECHO_2_CHANNEL))
39 #define EXAMPLE_ECHO_2_CHANNEL_GET_CLASS(obj) \
40   (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_ECHO_2_CHANNEL, \
41                               ExampleEcho2ChannelClass))
42 
43 struct _ExampleEcho2ChannelClass {
44     GObjectClass parent_class;
45 
46     TpDBusPropertiesMixinClass dbus_properties_class;
47 };
48 
49 struct _ExampleEcho2Channel {
50     GObject parent;
51     TpMessageMixin text;
52 
53     ExampleEcho2ChannelPrivate *priv;
54 };
55 
56 G_END_DECLS
57 
58 #endif
59