/*
* /dev/null as a text channel
*
* Copyright (C) 2008 Collabora Ltd.
* Copyright (C) 2008 Nokia Corporation
*
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved.
*/
#ifndef __TEST_TEXT_CHANNEL_NULL_H__
#define __TEST_TEXT_CHANNEL_NULL_H__
#include
#include
#include
#include
G_BEGIN_DECLS
typedef struct _TestTextChannelNull TestTextChannelNull;
typedef struct _TestTextChannelNullClass TestTextChannelNullClass;
typedef struct _TestTextChannelNullPrivate TestTextChannelNullPrivate;
GType test_text_channel_null_get_type (void);
#define TEST_TYPE_TEXT_CHANNEL_NULL \
(test_text_channel_null_get_type ())
#define TEST_TEXT_CHANNEL_NULL(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_TEXT_CHANNEL_NULL, \
TestTextChannelNull))
#define TEST_TEXT_CHANNEL_NULL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_TEXT_CHANNEL_NULL, \
TestTextChannelNullClass))
#define TEST_IS_TEXT_CHANNEL_NULL(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_TEXT_CHANNEL_NULL))
#define TEST_IS_TEXT_CHANNEL_NULL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), TEST_TYPE_TEXT_CHANNEL_NULL))
#define TEST_TEXT_CHANNEL_NULL_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_TYPE_TEXT_CHANNEL_NULL, \
TestTextChannelNullClass))
struct _TestTextChannelNullClass {
GObjectClass parent_class;
TpTextMixinClass text_class;
};
struct _TestTextChannelNull {
GObject parent;
TpTextMixin text;
guint get_handle_called;
guint get_interfaces_called;
guint get_channel_type_called;
TestTextChannelNullPrivate *priv;
};
/* Subclass with D-Bus properties */
typedef struct _TestPropsTextChannel TestPropsTextChannel;
typedef struct _TestPropsTextChannelClass TestPropsTextChannelClass;
struct _TestPropsTextChannel {
TestTextChannelNull parent;
GHashTable *dbus_property_interfaces_retrieved;
};
struct _TestPropsTextChannelClass {
TestTextChannelNullClass parent;
TpDBusPropertiesMixinClass dbus_properties_class;
};
GType test_props_text_channel_get_type (void);
#define TEST_TYPE_PROPS_TEXT_CHANNEL \
(test_props_text_channel_get_type ())
#define TEST_PROPS_TEXT_CHANNEL(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_PROPS_TEXT_CHANNEL, \
TestPropsTextChannel))
#define TEST_PROPS_TEXT_CHANNEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_PROPS_TEXT_CHANNEL, \
TestPropsTextChannelClass))
#define TEST_IS_PROPS_TEXT_CHANNEL(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_PROPS_TEXT_CHANNEL))
#define TEST_IS_PROPS_TEXT_CHANNEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), TEST_TYPE_PROPS_TEXT_CHANNEL))
#define TEST_PROPS_TEXT_CHANNEL_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_TYPE_PROPS_TEXT_CHANNEL, \
TestPropsTextChannelClass))
/* Subclass with D-Bus properties and Group */
typedef struct _TestPropsGroupTextChannel TestPropsGroupTextChannel;
typedef struct _TestPropsGroupTextChannelClass TestPropsGroupTextChannelClass;
struct _TestPropsGroupTextChannel {
TestPropsTextChannel parent;
TpGroupMixin group;
};
struct _TestPropsGroupTextChannelClass {
TestPropsTextChannelClass parent;
TpGroupMixinClass group_class;
};
GType test_props_group_text_channel_get_type (void);
#define TEST_TYPE_PROPS_GROUP_TEXT_CHANNEL \
(test_props_group_text_channel_get_type ())
#define TEST_PROPS_GROUP_TEXT_CHANNEL(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_PROPS_GROUP_TEXT_CHANNEL, \
TestPropsGroupTextChannel))
#define TEST_PROPS_GROUP_TEXT_CHANNEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), TEST_TYPE_PROPS_GROUP_TEXT_CHANNEL, \
TestPropsGroupTextChannelClass))
#define TEST_IS_PROPS_GROUP_TEXT_CHANNEL(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_PROPS_GROUP_TEXT_CHANNEL))
#define TEST_IS_PROPS_GROUP_TEXT_CHANNEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), TEST_TYPE_PROPS_GROUP_TEXT_CHANNEL))
#define TEST_PROPS_GROUP_TEXT_CHANNEL_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), TEST_TYPE_PROPS_GROUP_TEXT_CHANNEL, \
TestPropsGroupTextChannelClass))
G_END_DECLS
#endif /* #ifndef __TEST_TEXT_CHANNEL_NULL_H__ */