core cleanup: 6 more modules are purple free
[siplcs.git] / src / core / sipe-chat.h
blob5e3d9b2a4c1fe9828daa3642f09ec8ec14ad2f52
1 /**
2 * @file sipe-chat.h
4 * pidgin-sipe
6 * Copyright (C) 2009 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
24 * Interface dependencies:
26 * <glib.h>
29 /* Forward declarations */
30 struct _PurpleConnection;
32 /**
33 * libpurple plugin callback to create a new chat from conversation menu
35 void sipe_chat_invite(struct _PurpleConnection *gc, int id,
36 const char *message, const char *name);
38 /**
39 * Returns purple's chat name for provided chat identification in protocol.
40 * Stores newly created chat title if not yet exist.
42 * @param proto_chat_id for 2007 conference this is (gchar *) Focus URI,
43 * for 2005 multiparty chat this is (gchar *) Call-Id of the conversation.
45 * @return chat name. Must be g_free()'d after use
47 gchar *
48 sipe_chat_get_name(const gchar *proto_chat_id);
50 /**
51 * Returns protocol id for provided purple's chat name
53 * @param chat_name chat name
55 * @return protocol id
57 const gchar *
58 sipe_chat_find_name(const gchar *chat_name);