core cleanup: move out cal field
[siplcs.git] / src / core / sipe.h
blobf04ff95878ce195caefe0fab72c76ac69d5c7a68
1 /**
2 * @file sipe.h
4 *****************************************************************************
5 *** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ***
6 *** ***
7 *** THIS INTERFACE IS DEPECRATED ***
8 *** ***
9 *** DO NOT INCLUDE IT IN ANY NEW CODE ***
10 *** ***
11 *** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ***
12 *****************************************************************************
14 * pidgin-sipe
16 * Copyright (C) 2010-11 SIPE Project <http://sipe.sourceforge.net/>
17 * Copyright (C) 2008 Novell, Inc.
18 * Copyright (C) 2007 Anibal Avelar <avelar@gmail.com>
19 * Copyright (C) 2005 Thomas Butter <butter@uni-mannheim.de>
21 * This program is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation; either version 2 of the License, or
24 * (at your option) any later version.
26 * This program is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
31 * You should have received a copy of the GNU General Public License
32 * along with this program; if not, write to the Free Software
33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37 * Interface dependencies:
39 * <time.h>
40 * <glib.h>
43 /* Forward declarations */
44 struct _PurpleAccount;
45 struct _PurpleConnection;
46 struct sipe_core_private;
48 struct sipe_account_data {
49 struct _PurpleConnection *gc;
50 gchar *authdomain;
51 gchar *authuser;
52 gchar *password;
53 /** Allowed server events to subscribe. From register OK response. */
54 GSList *allow_events;
55 GSList *our_publication_keys; /* [MS-PRES] */
56 GHashTable *our_publications; /* [MS-PRES] */
57 GHashTable *user_state_publications; /* [MS-PRES] */
58 int presence_method_version;
59 time_t do_not_publish[SIPE_ACTIVITY_NUM_TYPES];
60 gchar *status;
61 gchar *note;
62 time_t note_since;
63 time_t idle_switch;
64 GSList *containers; /* MS-PRES containers */
65 struct _PurpleAccount *account;
66 gchar *regcallid;
67 gchar *email;
68 /** 2005 Custom XML piece.
69 * Possibly set by other point of presence or just other client at earlier time.
70 * It should be preserved/modified, not overwritten. This implies subscription
71 * to self-contasct.
72 * This XML keeps OC2005:
73 * - User note
74 * - OOF flag
75 * - User status
77 gchar *user_states;
80 /**
81 * THE BIG SPLIT - temporary interfaces
83 * Previously private functions in sipe.c that are
84 * - waiting to be factored out to an appropriate module
85 * - are needed by the already created new modules
88 /* libpurple memory leak workaround */
89 void sipe_blist_menu_free_containers(struct sipe_core_private *sipe_private);
91 /*** THE BIG SPLIT END ***/