Updated media patches README
[siplcs.git] / src / core / sipe-buddy.h
blob16aba188daa82f0ccb4d63345b4c5ebfbe0628e2
1 /**
2 * @file sipe-buddy.h
4 * pidgin-sipe
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_cal_working_hours;
26 struct sipe_buddy {
27 gchar *name;
28 gchar *activity;
29 gchar *meeting_subject;
30 gchar *meeting_location;
31 /* Sipe internal format for Note is HTML.
32 * All incoming plain text should be html-escaped
33 * for example by g_markup_escape_text()
35 gchar *note;
36 gboolean is_oof_note;
37 time_t note_since;
39 /* Calendar related fields */
40 gchar *cal_start_time;
41 int cal_granularity;
42 gchar *cal_free_busy_base64;
43 gchar *cal_free_busy;
44 time_t cal_free_busy_published;
45 /* for 2005 systems */
46 int user_avail;
47 time_t user_avail_since;
48 time_t activity_since;
49 const char *last_non_cal_status_id;
50 gchar *last_non_cal_activity;
52 struct sipe_cal_working_hours *cal_working_hours;
54 gchar *device_name;
55 GSList *groups;
56 /** flag to control sending 'context' element in 2007 subscriptions */
57 gboolean just_added;