6 * Copyright (C) 2010 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 sipe_core_private
;
25 struct sipe_cal_working_hours
;
30 gchar
*meeting_subject
;
31 gchar
*meeting_location
;
32 /* Sipe internal format for Note is HTML.
33 * All incoming plain text should be html-escaped
34 * for example by g_markup_escape_text()
40 /* Calendar related fields */
41 gchar
*cal_start_time
;
43 gchar
*cal_free_busy_base64
;
45 time_t cal_free_busy_published
;
46 /* for 2005 systems */
48 time_t user_avail_since
;
49 time_t activity_since
;
50 const char *last_non_cal_status_id
;
51 gchar
*last_non_cal_activity
;
53 struct sipe_cal_working_hours
*cal_working_hours
;
57 /** flag to control sending 'context' element in 2007 subscriptions */
62 * Tries to retrieve a real user's name associated with given SIP URI.
64 * Result must be g_free'd after use.
66 * @param sipe_private SIPE core data
67 * @param with a SIP URI
69 * @return Name of the user if the URI is found in buddy list, otherwise @c NULL
71 gchar
*sipe_buddy_get_alias(struct sipe_core_private
*sipe_private
,