core cleanup: separate code for sipe_backend_account_status_and_note()
[siplcs.git] / src / core / sipe-ocs2007.h
blob6b1d885d5fe17b06cb44c492f09520a8182d8914
1 /**
2 * @file sipe-ocs2007.h
4 * pidgin-sipe
6 * Copyright (C) 2011 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 sipmsg;
26 struct sipe_container;
27 struct sipe_core_private;
29 /**
30 * Member is directly placed to access level container.
31 * For example SIP URI of user is in the container.
33 #define SIPE_OCS2007_INDENT_MARKED_FMT "* %s"
35 /**
36 * Publish status (OCS2007+)
38 void sipe_ocs2007_presence_publish(struct sipe_core_private *sipe_private,
39 gpointer unused);
40 void sipe_ocs2007_free(struct sipe_core_private *sipe_private);
41 void sipe_ocs2007_category_publish(struct sipe_core_private *sipe_private);
42 void sipe_ocs2007_reset_status(struct sipe_core_private *sipe_private);
43 void sipe_ocs2007_process_roaming_self(struct sipe_core_private *sipe_private,
44 struct sipmsg *msg);
47 /* this API needs to be refactored once access level menu creation is
48 refactored correctly to the backend out of sipe.c */
49 guint sipe_ocs2007_containers(void);
50 const gchar *sipe_ocs2007_access_level_name(guint id);
51 int sipe_ocs2007_container_id(guint index);
52 void sipe_ocs2007_free_container(struct sipe_container *container);
53 struct sipe_container *sipe_ocs2007_create_container(guint index,
54 const gchar *member_type,
55 const gchar *member_value,
56 gboolean is_group);
57 int sipe_ocs2007_find_access_level(struct sipe_core_private *sipe_private,
58 const gchar *type,
59 const gchar *value,
60 gboolean *is_group_access);
61 void sipe_ocs2007_change_access_level(struct sipe_core_private *sipe_private,
62 const int container_id,
63 const gchar *type,
64 const gchar *value);
65 void sipe_ocs2007_change_access_level_from_container(struct sipe_core_private *sipe_private,
66 struct sipe_container *container);
67 void sipe_ocs2007_change_access_level_for_domain(struct sipe_core_private *sipe_private,
68 const gchar *domain,
69 guint index);
70 GSList *sipe_ocs2007_get_access_domains(struct sipe_core_private *sipe_private);
73 Local Variables:
74 mode: c
75 c-file-style: "bsd"
76 indent-tabs-mode: t
77 tab-width: 8
78 End: