Frameworks/libpurple.framework/Versions/0.6.2/Headers/yahoochat.h
author Zachary West <zacw@adium.im>
Fri Aug 21 13:25:11 2009 -0700 (2009-08-21)
changeset 2592 e8d15275025e
parent 2571 Frameworks/libpurple.framework/Versions/0.6.0/Headers/yahoochat.h@75fb8ee8f2e6
permissions -rw-r--r--
im.pidgin.adium.1-4 at 267c6165e02e34318a1823960bd04c0639952f73
Evan@653
     1
/**
Evan@653
     2
 * @file yahoochat.h The Yahoo! protocol plugin, chat and conference stuff
Evan@653
     3
 *
Evan@653
     4
 * purple
Evan@653
     5
 *
Evan@653
     6
 * Purple is the legal property of its developers, whose names are too numerous
Evan@653
     7
 * to list here.  Please refer to the COPYRIGHT file distributed with this
Evan@653
     8
 * source distribution.
Evan@653
     9
 *
Evan@653
    10
 * This program is free software; you can redistribute it and/or modify
Evan@653
    11
 * it under the terms of the GNU General Public License as published by
Evan@653
    12
 * the Free Software Foundation; either version 2 of the License, or
Evan@653
    13
 * (at your option) any later version.
Evan@653
    14
 *
Evan@653
    15
 * This program is distributed in the hope that it will be useful,
Evan@653
    16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Evan@653
    17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Evan@653
    18
 * GNU General Public License for more details.
Evan@653
    19
 *
Evan@653
    20
 * You should have received a copy of the GNU General Public License
Evan@653
    21
 * along with this program; if not, write to the Free Software
Evan@653
    22
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
Evan@653
    23
 */
Evan@653
    24
Evan@653
    25
#ifndef _YAHOOCHAT_H_
Evan@653
    26
#define _YAHOOCHAT_H_
Evan@653
    27
Evan@653
    28
#include "roomlist.h"
Evan@653
    29
#include "yahoo_packet.h"
Evan@653
    30
Evan@653
    31
void yahoo_process_conference_invite(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    32
void yahoo_process_conference_decline(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    33
void yahoo_process_conference_logon(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    34
void yahoo_process_conference_logoff(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    35
void yahoo_process_conference_message(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    36
Evan@653
    37
void yahoo_process_chat_online(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    38
void yahoo_process_chat_logout(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    39
void yahoo_process_chat_join(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    40
void yahoo_process_chat_exit(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    41
void yahoo_process_chat_message(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    42
void yahoo_process_chat_addinvite(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    43
void yahoo_process_chat_goto(PurpleConnection *gc, struct yahoo_packet *pkt);
Evan@653
    44
Evan@653
    45
void yahoo_c_leave(PurpleConnection *gc, int id);
Evan@653
    46
int yahoo_c_send(PurpleConnection *gc, int id, const char *what, PurpleMessageFlags flags);
Evan@653
    47
GList *yahoo_c_info(PurpleConnection *gc);
Evan@653
    48
GHashTable *yahoo_c_info_defaults(PurpleConnection *gc, const char *chat_name);
Evan@653
    49
void yahoo_c_join(PurpleConnection *gc, GHashTable *data);
Evan@653
    50
char *yahoo_get_chat_name(GHashTable *data);
Evan@653
    51
void yahoo_c_invite(PurpleConnection *gc, int id, const char *msg, const char *name);
Evan@653
    52
Evan@2571
    53
void yahoo_conf_leave(YahooData *yd, const char *room, const char *dn, GList *who);
Evan@653
    54
Evan@653
    55
void yahoo_chat_goto(PurpleConnection *gc, const char *name);
Evan@653
    56
Evan@653
    57
/* room listing functions */
Evan@653
    58
PurpleRoomlist *yahoo_roomlist_get_list(PurpleConnection *gc);
Evan@653
    59
void yahoo_roomlist_cancel(PurpleRoomlist *list);
Evan@653
    60
void yahoo_roomlist_expand_category(PurpleRoomlist *list, PurpleRoomlistRoom *category);
Evan@653
    61
Evan@653
    62
/* util */
Evan@653
    63
void yahoo_chat_add_users(PurpleConvChat *chat, GList *newusers);
Evan@653
    64
void yahoo_chat_add_user(PurpleConvChat *chat, const char *user, const char *reason);
Evan@653
    65
Evan@653
    66
#endif /* _YAHOO_CHAT_H_ */