telepathy: add contact search channel
[siplcs.git] / src / telepathy / telepathy-private.h
blob28d6445407bc8cb3633577881ef42a0a207ef46f
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 _SipeContactList;
28 struct _TpBaseConnection;
29 struct _TpBaseConnectionManager;
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;
39 /* buddies */
40 struct _SipeContactList *contact_list;
42 /* connection */
43 struct _SipeConnection *connection;
45 /* status */
46 guint activity;
47 gchar *message;
49 /* transport */
50 struct sipe_transport_telepathy *transport;
51 gchar *ipaddress;
54 /* buddy */
55 struct _SipeContactList *sipe_telepathy_contact_list_new(struct _TpBaseConnection *connection);
56 const gchar *sipe_telepathy_buddy_get_alias(struct _SipeContactList *contact_list,
57 const guint contact);
58 void sipe_telepathy_buddy_set_alias(struct _SipeContactList *contact_list,
59 const guint contact,
60 const gchar *alias);
62 /* connection */
63 struct _TpBaseConnection *sipe_telepathy_connection_new(struct _TpBaseProtocol *protocol,
64 GHashTable *params,
65 GError **error);
66 struct sipe_backend_private *sipe_telepathy_connection_private(GObject *object);
68 /* debugging */
69 void sipe_telepathy_debug_init(void);
70 void sipe_telepathy_debug_finalize(void);
72 /* protocol */
73 void sipe_telepathy_protocol_init(struct _TpBaseConnectionManager *cm);
74 gchar *sipe_telepathy_protocol_normalize_contact(struct _TpBaseProtocol *self,
75 const gchar *contact,
76 GError **error);
78 /* contact search */
79 GType sipe_search_manager_get_type(void);
80 #define SIPE_TYPE_SEARCH_MANAGER (sipe_search_manager_get_type())
81 struct _GObject *sipe_telepathy_search_new(struct _TpBaseConnection *connection);
83 /* status */
84 void sipe_telepathy_status_init(struct _GObjectClass *object_class,
85 gsize struct_offset);
89 Local Variables:
90 mode: c
91 c-file-style: "bsd"
92 indent-tabs-mode: t
93 tab-width: 8
94 End: