~ubuntu-branches/ubuntu/maverick/telepathy-glib/maverick

« back to all changes in this revision

Viewing changes to examples/future/call-cm/cm.h

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2010-05-10 17:59:54 UTC
  • mfrom: (1.6.1 upstream) (27.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100510175954-bxvqq3xx0sy4itmp
Tags: 0.11.5-1
New upstream version with new API/ABI

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * manager.h - header for an example connection manager
 
3
 *
 
4
 * Copyright © 2007-2009 Collabora Ltd. <http://www.collabora.co.uk/>
 
5
 * Copyright © 2007-2009 Nokia Corporation
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2.1 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with this library; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 */
 
21
 
 
22
#ifndef EXAMPLE_CALL_CM_H
 
23
#define EXAMPLE_CALL_CM_H
 
24
 
 
25
#include <glib-object.h>
 
26
#include <telepathy-glib/base-connection-manager.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
typedef struct _ExampleCallConnectionManager
 
31
    ExampleCallConnectionManager;
 
32
typedef struct _ExampleCallConnectionManagerPrivate
 
33
    ExampleCallConnectionManagerPrivate;
 
34
 
 
35
typedef struct _ExampleCallConnectionManagerClass
 
36
    ExampleCallConnectionManagerClass;
 
37
typedef struct _ExampleCallConnectionManagerClassPrivate
 
38
    ExampleCallConnectionManagerClassPrivate;
 
39
 
 
40
struct _ExampleCallConnectionManagerClass {
 
41
    TpBaseConnectionManagerClass parent_class;
 
42
 
 
43
    ExampleCallConnectionManagerClassPrivate *priv;
 
44
};
 
45
 
 
46
struct _ExampleCallConnectionManager {
 
47
    TpBaseConnectionManager parent;
 
48
 
 
49
    ExampleCallConnectionManagerPrivate *priv;
 
50
};
 
51
 
 
52
GType example_call_connection_manager_get_type (void);
 
53
 
 
54
/* TYPE MACROS */
 
55
#define EXAMPLE_TYPE_CALL_CONNECTION_MANAGER \
 
56
  (example_call_connection_manager_get_type ())
 
57
#define EXAMPLE_CALL_CONNECTION_MANAGER(obj) \
 
58
  (G_TYPE_CHECK_INSTANCE_CAST((obj), EXAMPLE_TYPE_CALL_CONNECTION_MANAGER, \
 
59
                              ExampleCallConnectionManager))
 
60
#define EXAMPLE_CALL_CONNECTION_MANAGER_CLASS(klass) \
 
61
  (G_TYPE_CHECK_CLASS_CAST((klass), EXAMPLE_TYPE_CALL_CONNECTION_MANAGER, \
 
62
                           ExampleCallConnectionManagerClass))
 
63
#define EXAMPLE_IS_CALL_CONNECTION_MANAGER(obj) \
 
64
  (G_TYPE_CHECK_INSTANCE_TYPE((obj), EXAMPLE_TYPE_CALL_CONNECTION_MANAGER))
 
65
#define EXAMPLE_IS_CALL_CONNECTION_MANAGER_CLASS(klass) \
 
66
  (G_TYPE_CHECK_CLASS_TYPE((klass), EXAMPLE_TYPE_CALL_CONNECTION_MANAGER))
 
67
#define EXAMPLE_CALL_CONNECTION_MANAGER_GET_CLASS(obj) \
 
68
  (G_TYPE_INSTANCE_GET_CLASS ((obj), EXAMPLE_TYPE_CALL_CONNECTION_MANAGER, \
 
69
                              ExampleCallConnectionManagerClass))
 
70
 
 
71
G_END_DECLS
 
72
 
 
73
#endif