1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* Copyright (C) 2009 Collabora Ltd.
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
* Authors: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
22
#ifndef __TPL_CHANNEL_TEXT_H__
23
#define __TPL_CHANNEL_TEXT_H__
26
* http://telepathy.freedesktop.org/doc/telepathy-glib/telepathy-glib-channel-text.html#tp-cli-channel-type-text-connect-to-received
29
#include <glib-object.h>
30
#include <telepathy-glib/account.h>
31
#include <telepathy-glib/channel.h>
32
#include <telepathy-glib/connection.h>
33
#include <telepathy-glib/contact.h>
35
#include <telepathy-logger/channel-internal.h>
38
#define TPL_TYPE_CHANNEL_TEXT (_tpl_channel_text_get_type ())
39
#define TPL_CHANNEL_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TPL_TYPE_CHANNEL_TEXT, TplChannelText))
40
#define TPL_CHANNEL_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TPL_TYPE_CHANNEL_TEXT, TplChannelTextClass))
41
#define TPL_IS_CHANNEL_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TPL_TYPE_CHANNEL_TEXT))
42
#define TPL_IS_CHANNEL_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TPL_TYPE_CHANNEL_TEXT))
43
#define TPL_CHANNEL_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TPL_TYPE_CHANNEL_TEXT, TplChannelTextClass))
45
typedef struct _TplChannelTextPriv TplChannelTextPriv;
51
TplChannelTextPriv *priv;
56
TplChannelClass parent_class;
57
} TplChannelTextClass;
59
GType _tpl_channel_text_get_type (void);
61
TplChannelText * _tpl_channel_text_new (TpConnection *conn,
62
const gchar *object_path, GHashTable *tp_chan_props, TpAccount *account,
66
#endif /* __TPL_CHANNEL_TEXT_H__ */