1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-08-11 18:54:16 -04:00
profanity/src/room_chat.h

57 lines
2.3 KiB
C
Raw Normal View History

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-10 13:24:33 -05:00
void room_join(const char * const room, const char * const nick);
2012-11-18 13:36:17 -05:00
void room_change_nick(const char * const room, const char * const nick);
2012-11-10 13:24:33 -05:00
void room_leave(const char * const room);
gboolean room_is_active(const char * const full_room_jid);
char * room_get_nick_for_room(const char * const room);
2012-11-10 13:40:46 -05:00
char * room_get_room_from_full_jid(const char * const full_room_jid);
char * room_get_nick_from_full_jid(const char * const full_room_jid);
2012-11-10 13:24:33 -05:00
gboolean room_parse_room_jid(const char * const full_room_jid, char **room,
2012-11-06 18:56:47 -05:00
char **nick);
gboolean room_add_to_roster(const char * const room, const char * const nick,
2012-11-18 16:46:58 -05:00
const char * const show, const char * const status);
void room_add_pending_nick_change(const char * const room,
const char * const new_nick, const char * const old_nick);
char* room_complete_pending_nick_change(const char * const room,
const char * const nick);
2012-11-18 19:26:31 -05:00
gboolean room_nick_in_roster(const char * const room, const char * const nick);
2012-11-19 17:15:53 -05:00
gboolean room_from_jid_is_room(const char * const room_jid);
2012-11-18 16:46:58 -05:00
2012-11-10 13:24:33 -05:00
GList * room_get_roster(const char * const room);
void room_set_roster_received(const char * const room);
gboolean room_get_roster_received(const char * const room);
void room_remove_from_roster(const char * const room, const char * const nick);
char * room_create_full_room_jid(const char * const room,
const char * const nick);
void room_set_pending_nick_change(const char * const room);
gboolean room_is_pending_nick_change(const char * const room);
2012-11-19 19:33:11 -05:00
GList* room_get_rooms(void);
2012-11-08 17:51:49 -05:00
#endif