summaryrefslogtreecommitdiff
path: root/rakia/text-channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'rakia/text-channel.h')
-rw-r--r--rakia/text-channel.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/rakia/text-channel.h b/rakia/text-channel.h
new file mode 100644
index 0000000..e74eb1c
--- /dev/null
+++ b/rakia/text-channel.h
@@ -0,0 +1,72 @@
+/*
+ * sip-text-channel.h - Header for RakiaTextChannel
+ * Copyright (C) 2005-2008 Collabora Ltd.
+ * Copyright (C) 2005-2009 Nokia Corporation
+ *
+ * This work is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This work is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this work; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __TPSIP_TEXT_CHANNEL_H__
+#define __TPSIP_TEXT_CHANNEL_H__
+
+#include <glib-object.h>
+#include <telepathy-glib/dbus-properties-mixin.h>
+#include <telepathy-glib/handle.h>
+#include <telepathy-glib/message-mixin.h>
+
+#include <rakia/sofia-decls.h>
+
+G_BEGIN_DECLS
+
+typedef struct _RakiaTextChannel RakiaTextChannel;
+typedef struct _RakiaTextChannelClass RakiaTextChannelClass;
+
+struct _RakiaTextChannelClass {
+ GObjectClass parent_class;
+
+ TpDBusPropertiesMixinClass dbus_props_class;
+};
+
+struct _RakiaTextChannel {
+ GObject parent;
+
+ TpMessageMixin message_mixin;
+};
+
+GType rakia_text_channel_get_type(void);
+
+/* TYPE MACROS */
+#define TPSIP_TYPE_TEXT_CHANNEL \
+ (rakia_text_channel_get_type())
+#define TPSIP_TEXT_CHANNEL(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj), TPSIP_TYPE_TEXT_CHANNEL, RakiaTextChannel))
+#define TPSIP_TEXT_CHANNEL_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass), TPSIP_TYPE_TEXT_CHANNEL, RakiaTextChannelClass))
+#define TPSIP_IS_TEXT_CHANNEL(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj), TPSIP_TYPE_TEXT_CHANNEL))
+#define TPSIP_IS_TEXT_CHANNEL_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass), TPSIP_TYPE_TEXT_CHANNEL))
+#define TPSIP_TEXT_CHANNEL_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), TPSIP_TYPE_TEXT_CHANNEL, RakiaTextChannelClass))
+
+void rakia_text_channel_receive (RakiaTextChannel *obj,
+ const sip_t *sip,
+ TpHandle sender,
+ const char *text,
+ gsize len);
+
+G_END_DECLS
+
+#endif /* #ifndef __TPSIP_TEXT_CHANNEL_H__*/