2012-11-04 18:31:49 -05:00
|
|
|
/*
|
|
|
|
* room_chat.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 James Booth <boothj5@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of Profanity.
|
|
|
|
*
|
|
|
|
* Profanity is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Profanity is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Profanity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2012-11-08 17:51:49 -05:00
|
|
|
#ifndef ROOM_CHAT_H
|
|
|
|
#define ROOM_CHAT_H
|
|
|
|
|
2012-11-05 15:29:57 -05:00
|
|
|
#include <glib.h>
|
|
|
|
|
2012-11-04 18:31:49 -05:00
|
|
|
void room_join(const char * const jid, const char * const nick);
|
2012-11-05 19:00:25 -05:00
|
|
|
void room_leave(const char * const jid);
|
2012-11-06 19:02:43 -05:00
|
|
|
gboolean room_is_active(const char * const jid);
|
2012-11-05 16:36:32 -05:00
|
|
|
char * room_get_nick_for_room(const char * const jid);
|
2012-11-09 22:30:27 -05:00
|
|
|
char * room_get_room_for_full_jid(const char * const jid);
|
2012-11-06 18:56:47 -05:00
|
|
|
gboolean room_parse_room_jid(const char * const room_jid, char **room,
|
|
|
|
char **nick);
|
2012-11-07 17:24:50 -05:00
|
|
|
void room_add_to_roster(const char * const jid, const char * const nick);
|
2012-11-07 19:05:32 -05:00
|
|
|
GList * room_get_roster(const char * const jid);
|
2012-11-07 17:59:48 -05:00
|
|
|
void room_set_roster_received(const char * const jid);
|
|
|
|
gboolean room_get_roster_received(const char * const jid);
|
2012-11-07 19:05:32 -05:00
|
|
|
void room_remove_from_roster(const char * const jid, const char * const nick);
|
2012-11-08 17:51:49 -05:00
|
|
|
|
|
|
|
#endif
|