buddy: add interface to iterate over buddies
[siplcs.git] / src / core / sipe-ucs.h
blob12c6e2b2bdc277423edd0a8fda78dafbe49f1c49
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
25 /**
26 * Get buddy photo
28 * This is not directly related to UCS, but we can reuse the code.
30 * @param sipe_private SIPE core private data
31 * @param uri SIP URI of the user
33 void sipe_ucs_get_photo(struct sipe_core_private *sipe_private,
34 const gchar *uri);
36 /**
37 * Has contact list been migrated to UCS?
39 * @param sipe_private SIPE core private data
41 * @return @c TRUE if contact list has been migrated
43 gboolean sipe_ucs_is_migrated(struct sipe_core_private *sipe_private);
45 /**
46 * Initialize UCS
48 * @param sipe_private SIPE core private data
49 * @param migrated @c TRUE if contact list has been migrated
51 void sipe_ucs_init(struct sipe_core_private *sipe_private,
52 gboolean migrated);
54 /**
55 * Free UCS data
57 * @param sipe_private SIPE core private data
59 void sipe_ucs_free(struct sipe_core_private *sipe_private);