diff options
author | Olivier Crête <olivier.crete@collabora.com> | 2011-12-15 19:02:05 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-01-10 09:52:46 +0100 |
commit | 43c27b7fb57113c634fd410ec53b939900801506 (patch) | |
tree | 6dd68afd513b7939b766397c9f33f3c1ecbf299c /telepathy-glib/base-media-call-channel.h | |
parent | b865b00203491fb036a07824eea950ae2ffb4f0b (diff) | |
download | telepathy-glib-43c27b7fb57113c634fd410ec53b939900801506.tar.gz |
Add TpBaseMediaCallChannel class
Diffstat (limited to 'telepathy-glib/base-media-call-channel.h')
-rw-r--r-- | telepathy-glib/base-media-call-channel.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/telepathy-glib/base-media-call-channel.h b/telepathy-glib/base-media-call-channel.h new file mode 100644 index 000000000..9af8f2fda --- /dev/null +++ b/telepathy-glib/base-media-call-channel.h @@ -0,0 +1,77 @@ +/* + * base-media-call-channel.h - Header for TpBaseMediaCallChannel + * Copyright © 2011 Collabora Ltd. + * @author Olivier Crete <olivier.crete@collabora.com> + * + * This library 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 library 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 library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __TP_BASE_MEDIA_CALL_CHANNEL_H__ +#define __TP_BASE_MEDIACALL_CHANNEL_H__ + +#include <telepathy-glib/base-call-channel.h> + +G_BEGIN_DECLS + +typedef struct _TpBaseMediaCallChannel TpBaseMediaCallChannel; +typedef struct _TpBaseMediaCallChannelPrivate TpBaseMediaCallChannelPrivate; +typedef struct _TpBaseMediaCallChannelClass TpBaseMediaCallChannelClass; + +struct _TpBaseMediaCallChannelClass { + /*<private>*/ + TpBaseCallChannelClass parent_class; + + /*< public >*/ + + void (*hold_state_changed) (TpBaseMediaCallChannel *self, + TpLocalHoldState hold_state, TpLocalHoldStateReason hold_state_reason); + + /*<private>*/ + gpointer future[4]; +}; + +struct _TpBaseMediaCallChannel { + /*<private>*/ + TpBaseCallChannel parent; + + TpBaseMediaCallChannelPrivate *priv; +}; + +GType tp_base_media_call_channel_get_type (void); + +/* TYPE MACROS */ +#define TP_TYPE_BASE_MEDIA_CALL_CHANNEL \ + (tp_base_media_call_channel_get_type ()) +#define TP_BASE_MEDIA_CALL_CHANNEL(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + TP_TYPE_BASE_MEDIA_CALL_CHANNEL, TpBaseMediaCallChannel)) +#define TP_BASE_MEDIA_CALL_CHANNEL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + TP_TYPE_BASE_MEDIA_CALL_CHANNEL, TpBaseMediaCallChannelClass)) +#define TP_IS_BASE_MEDIA_CALL_CHANNEL(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), TP_TYPE_BASE_MEDIA_CALL_CHANNEL)) +#define TP_IS_BASE_MEDIA_CALL_CHANNEL_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), TP_TYPE_BASE_MEDIA_CALL_CHANNEL)) +#define TP_BASE_MEDIA_CALL_CHANNEL_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + TP_TYPE_BASE_MEDIA_CALL_CHANNEL, TpBaseMediaCallChannelClass)) + +void tp_base_media_call_channel_set_hold_state (TpBaseMediaCallChannel *self, + TpLocalHoldState hold_state, TpLocalHoldStateReason hold_state_reason); + + +G_END_DECLS + +#endif /* #ifndef __TP_BASE_MEDIA_CALL_CHANNEL_H__*/ |