~ubuntu-branches/ubuntu/natty/empathy/natty-security

« back to all changes in this revision

Viewing changes to telepathy-yell/telepathy-yell/call-stream.h

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-02-24 11:54:47 UTC
  • mfrom: (1.1.66 upstream)
  • Revision ID: james.westby@ubuntu.com-20110224115447-meoue6yzk3u6s2br
Tags: 2.33.2-0ubuntu1
* New upstream release
* -debian/patches/reword_subscription_dailog_to_be_less_technical.patch
  - merged upstream
* debian/control
  - Bumped build depends for tp-logger, tp-glib, folks and libunity-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * call-stream.h - Header for TpyCallStream
 
3
 * Copyright © 2009–2011 Collabora Ltd.
 
4
 * @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
 
5
 * @author Will Thompson <will.thompson@collabora.co.uk>
 
6
 * @author Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
 
7
 *
 
8
 * This library is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Lesser General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2.1 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Lesser General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Lesser General Public
 
19
 * License along with this library; if not, write to the Free Software
 
20
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
21
 */
 
22
 
 
23
#ifndef TPY_CALL_STREAM_H
 
24
#define TPY_CALL_STREAM_H
 
25
 
 
26
#include <glib-object.h>
 
27
 
 
28
#include <telepathy-glib/telepathy-glib.h>
 
29
 
 
30
#include <telepathy-yell/enums.h>
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
typedef struct _TpyCallStream TpyCallStream;
 
35
typedef struct _TpyCallStreamPrivate TpyCallStreamPrivate;
 
36
typedef struct _TpyCallStreamClass TpyCallStreamClass;
 
37
 
 
38
struct _TpyCallStreamClass {
 
39
    TpProxyClass parent_class;
 
40
};
 
41
 
 
42
struct _TpyCallStream {
 
43
    TpProxy parent;
 
44
 
 
45
    TpyCallStreamPrivate *priv;
 
46
};
 
47
 
 
48
GType tpy_call_stream_get_type (void);
 
49
 
 
50
/* TYPE MACROS */
 
51
#define TPY_TYPE_CALL_STREAM \
 
52
  (tpy_call_stream_get_type ())
 
53
#define TPY_CALL_STREAM(obj) \
 
54
  (G_TYPE_CHECK_INSTANCE_CAST((obj), TPY_TYPE_CALL_STREAM, TpyCallStream))
 
55
#define TPY_CALL_STREAM_CLASS(klass) \
 
56
  (G_TYPE_CHECK_CLASS_CAST((klass), TPY_TYPE_CALL_STREAM, \
 
57
    TpyCallStreamClass))
 
58
#define TPY_IS_CALL_STREAM(obj) \
 
59
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), TPY_TYPE_CALL_STREAM))
 
60
#define TPY_IS_CALL_STREAM_CLASS(klass) \
 
61
  (G_TYPE_CHECK_CLASS_TYPE((klass), TPY_TYPE_CALL_STREAM))
 
62
#define TPY_CALL_STREAM_GET_CLASS(obj) \
 
63
  (G_TYPE_INSTANCE_GET_CLASS ((obj), TPY_TYPE_CALL_STREAM, \
 
64
    TpyCallStreamClass))
 
65
 
 
66
TpySendingState tpy_call_stream_get_local_sending_state (
 
67
    TpyCallStream *self);
 
68
 
 
69
void tpy_call_stream_set_sending_async (TpyCallStream *self,
 
70
    gboolean send,
 
71
    GAsyncReadyCallback callback,
 
72
    gpointer user_data);
 
73
gboolean tpy_call_stream_set_sending_finish (TpyCallStream *self,
 
74
    GAsyncResult *result,
 
75
    GError **error);
 
76
 
 
77
void tpy_call_stream_request_receiving_async (TpyCallStream *self,
 
78
    TpHandle handle,
 
79
    gboolean receiving,
 
80
    GAsyncReadyCallback callback,
 
81
    gpointer user_data);
 
82
gboolean tpy_call_stream_request_receiving_finish (TpyCallStream *self,
 
83
    GAsyncResult *result,
 
84
    GError **error);
 
85
 
 
86
G_END_DECLS
 
87
 
 
88
#endif