1 /*
2  * client.h - proxy for a Telepathy client
3  *
4  * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
5  * Copyright (C) 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 #if defined (TP_DISABLE_SINGLE_INCLUDE) && !defined (_TP_IN_META_HEADER) && !defined (_TP_COMPILATION)
23 #error "Only <telepathy-glib/telepathy-glib.h> and <telepathy-glib/telepathy-glib-dbus.h> can be included directly."
24 #endif
25 
26 #ifndef TP_CLIENT_H
27 #define TP_CLIENT_H
28 
29 #include <telepathy-glib/dbus.h>
30 #include <telepathy-glib/defs.h>
31 #include <telepathy-glib/proxy.h>
32 
33 G_BEGIN_DECLS
34 
35 typedef struct _TpClient TpClient;
36 typedef struct _TpClientClass TpClientClass;
37 typedef struct _TpClientPrivate TpClientPrivate;
38 typedef struct _TpClientClassPrivate TpClientClassPrivate;
39 
40 struct _TpClient {
41     /*<private>*/
42     TpProxy parent;
43     TpClientPrivate *priv;
44 };
45 
46 struct _TpClientClass {
47     /*<private>*/
48     TpProxyClass parent_class;
49     GCallback _padding[7];
50     TpClientClassPrivate *priv;
51 };
52 
53 GType tp_client_get_type (void);
54 
55 #define TP_TYPE_CLIENT \
56   (tp_client_get_type ())
57 #define TP_CLIENT(obj) \
58   (G_TYPE_CHECK_INSTANCE_CAST ((obj), TP_TYPE_CLIENT, \
59                                TpClient))
60 #define TP_CLIENT_CLASS(klass) \
61   (G_TYPE_CHECK_CLASS_CAST ((klass), TP_TYPE_CLIENT, \
62                             TpClientClass))
63 #define TP_IS_CLIENT(obj) \
64   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TP_TYPE_CLIENT))
65 #define TP_IS_CLIENT_CLASS(klass) \
66   (G_TYPE_CHECK_CLASS_TYPE ((klass), TP_TYPE_CLIENT))
67 #define TP_CLIENT_GET_CLASS(obj) \
68   (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_CLIENT, \
69                               TpClientClass))
70 
71 void tp_client_init_known_interfaces (void);
72 
73 G_END_DECLS
74 
75 #include <telepathy-glib/_gen/tp-cli-client.h>
76 
77 #endif
78