~ubuntu-branches/ubuntu/precise/telepathy-glib/precise-201202222208

« back to all changes in this revision

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

  • Committer: Ken VanDine
  • Date: 2012-02-22 18:08:37 UTC
  • mfrom: (1.6.39)
  • Revision ID: ken.vandine@canonical.com-20120222180837-02um6fex0eg073lf
New upstream release.

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