2
* manager.h - header for an example connection manager
4
* Copyright © 2007-2009 Collabora Ltd. <http://www.collabora.co.uk/>
5
* Copyright © 2007-2009 Nokia Corporation
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.
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.
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
22
#ifndef EXAMPLE_CALL_CM_H
23
#define EXAMPLE_CALL_CM_H
25
#include <glib-object.h>
26
#include <telepathy-glib/base-connection-manager.h>
30
typedef struct _ExampleCallConnectionManager
31
ExampleCallConnectionManager;
32
typedef struct _ExampleCallConnectionManagerPrivate
33
ExampleCallConnectionManagerPrivate;
35
typedef struct _ExampleCallConnectionManagerClass
36
ExampleCallConnectionManagerClass;
37
typedef struct _ExampleCallConnectionManagerClassPrivate
38
ExampleCallConnectionManagerClassPrivate;
40
struct _ExampleCallConnectionManagerClass {
41
TpBaseConnectionManagerClass parent_class;
43
ExampleCallConnectionManagerClassPrivate *priv;
46
struct _ExampleCallConnectionManager {
47
TpBaseConnectionManager parent;
49
ExampleCallConnectionManagerPrivate *priv;
52
GType example_call_connection_manager_get_type (void);
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))