ucs: add SetImGroup operation
[siplcs.git] / src / core / sipe-ucs.h
blobc49c4215937aa7d19c3fc181644313acc9547663
1 /**
2 * @file sipe-ucs.h
4 * pidgin-sipe
6 * Copyright (C) 2013 SIPE Project <http://sipe.sourceforge.net/>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 /* Forward declarations */
25 struct sipe_core_private;
26 struct sipe_group;
28 /**
29 * Get buddy photo
31 * This is not directly related to UCS, but we can reuse the code.
33 * @param sipe_private SIPE core private data
34 * @param uri SIP URI of the user
36 void sipe_ucs_get_photo(struct sipe_core_private *sipe_private,
37 const gchar *uri);
39 /**
40 * Has contact list been migrated to UCS?
42 * @param sipe_private SIPE core private data
44 * @return @c TRUE if contact list has been migrated
46 gboolean sipe_ucs_is_migrated(struct sipe_core_private *sipe_private);
48 /**
49 * Rename group
51 * @param sipe_private SIPE core private data
52 * @param group sipe_group structure
53 * @param new_name new name for group
55 void sipe_ucs_group_rename(struct sipe_core_private *sipe_private,
56 struct sipe_group *group,
57 const gchar *new_name);
59 /**
60 * Initialize UCS
62 * @param sipe_private SIPE core private data
63 * @param migrated @c TRUE if contact list has been migrated
65 void sipe_ucs_init(struct sipe_core_private *sipe_private,
66 gboolean migrated);
68 /**
69 * Free UCS data
71 * @param sipe_private SIPE core private data
73 void sipe_ucs_free(struct sipe_core_private *sipe_private);