update files in preparation for next release
[siplcs.git] / src / core / sipe-conf.h
blobd66923a95b3a674560f4cc13b95d8b9ad95833f4
1 /**
2 * @file sipe-conf.h
4 * pidgin-sipe
6 * Copyright (C) 2009-10 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 sipmsg;
25 struct sip_session;
26 struct sipe_core_private;
28 /**
29 * Creates conference.
31 void
32 sipe_conf_add(struct sipe_core_private *sipe_private,
33 const gchar* who);
35 /**
36 * Processes incoming INVITE with
37 * Content-Type: application/ms-conf-invite+xml
38 * i.e. invitation to join conference.
40 * Server 2007+ functionality.
42 void
43 process_incoming_invite_conf(struct sipe_core_private *sipe_private,
44 struct sipmsg *msg);
46 /**
47 * Create new session with Focus URI
49 * @param chat_session non-NULL if we rejoin a conference
50 * @param focus_uri non-NULL if we create a new conference
52 * @return new SIP session
54 struct sip_session *
55 sipe_conf_create(struct sipe_core_private *sipe_private,
56 struct sipe_chat_session *chat_session,
57 const gchar *focus_uri);
59 /**
60 * Process of conference state
61 * Content-Type: application/conference-info+xml
63 void
64 sipe_process_conference(struct sipe_core_private *sipe_private,
65 struct sipmsg * msg);
67 /**
68 * Invites counterparty to join conference.
70 void
71 sipe_invite_conf(struct sipe_core_private *sipe_private,
72 struct sip_session *session,
73 const gchar* who);
75 /**
76 * Modify User Role.
77 * Sends request to Focus.
78 * INFO method is a carrier of application/cccp+xml
80 void
81 sipe_conf_modify_user_role(struct sipe_core_private *sipe_private,
82 struct sip_session *session,
83 const gchar* who);
85 /**
86 * Ejects user from conference.
87 * Sends request to Focus.
88 * INFO method is a carrier of application/cccp+xml
90 void
91 sipe_conf_delete_user(struct sipe_core_private *sipe_private,
92 struct sip_session *session,
93 const gchar* who);
95 /**
96 * Invokes when we are ejected from conference
97 * for example or conference has been timed out.
99 void
100 sipe_conf_immcu_closed(struct sipe_core_private *sipe_private,
101 struct sip_session *session);
104 * Removes a session waiting to be accepted or declined by the user.
106 * @param sipe_private SIPE core data
107 * @param msg SIP CANCEL message. If NULL is passed, all sessions not accepted
108 * will be canceled
110 void
111 sipe_conf_cancel_unaccepted(struct sipe_core_private *sipe_private,
112 struct sipmsg *msg);
115 * Invokes when we leave conversation.
116 * Usually by closing chat wingow.
118 void
119 conf_session_close(struct sipe_core_private *sipe_private,
120 struct sip_session *session);
123 * Invoked to process message delivery notification
124 * in conference.
126 void
127 sipe_process_imdn(struct sipe_core_private *sipe_private,
128 struct sipmsg *msg);