telepathy: add contact list class to connection
[siplcs.git] / src / telepathy / telepathy-private.h
blobfbe9b074d4db36f6c107f7a96e2239569538dbe3
1 /**
2 * @file telepathy-private.h
4 * pidgin-sipe
6 * Copyright (C) 2012 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program 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
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 /* Forward declarations */
24 struct _GObject;
25 struct _GObjectClass;
26 struct _SipeConnection;
27 struct _TpBaseConnection;
28 struct _TpBaseConnectionManager;
29 struct _TpBaseContactList;
30 struct _TpBaseProtocol;
31 struct sipe_transport_telepathy;
33 /* constants */
34 #define SIPE_TELEPATHY_DOMAIN "sipe"
36 struct sipe_backend_private {
37 struct sipe_core_public *public;
38 struct _SipeConnection *connection;
40 /* status */
41 guint activity;
42 gchar *message;
44 /* transport */
45 struct sipe_transport_telepathy *transport;
46 gchar *ipaddress;
49 /* buddy */
50 struct _TpBaseContactList *sipe_telepathy_contact_list_new(struct _TpBaseConnection *connection);
52 /* connection */
53 struct _TpBaseConnection *sipe_telepathy_connection_new(struct _TpBaseProtocol *protocol,
54 GHashTable *params,
55 GError **error);
56 struct sipe_backend_private *sipe_telepathy_connection_private(GObject *object);
58 /* debugging */
59 void sipe_telepathy_debug_init(void);
60 void sipe_telepathy_debug_finalize(void);
62 /* protocol */
63 void sipe_telepathy_protocol_init(struct _TpBaseConnectionManager *cm);
64 gchar *sipe_telepathy_protocol_normalize_contact(struct _TpBaseProtocol *self,
65 const gchar *contact,
66 GError **error);
68 /* status */
69 void sipe_telepathy_status_init(struct _GObjectClass *object_class,
70 gsize struct_offset);
74 Local Variables:
75 mode: c
76 c-file-style: "bsd"
77 indent-tabs-mode: t
78 tab-width: 8
79 End: