1/* 2 * Author: William Chia-Wei Cheng (bill.cheng@acm.org) 3 * 4 * Copyright (C) 2001-2009, William Chia-Wei Cheng. 5 * 6 * This file may be distributed under the terms of the Q Public License 7 * as defined by Trolltech AS of Norway and appearing in the file 8 * LICENSE.QPL included in the packaging of this file. 9 * 10 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 11 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 12 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 13 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 14 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 16 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * 18 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/chat.e,v 1.6 2011/05/16 16:21:56 william Exp $ 19 */ 20 21#ifndef _CHAT_E_ 22#define _CHAT_E_ 23 24#include "tidget.h" 25 26extern char *cmdLineChatNickName; 27 28#ifdef _INCLUDE_FROM_CHAT_C_ 29#undef extern 30#define extern 31#endif /*_INCLUDE_FROM_CHAT_C_*/ 32 33extern void RedrawChatWindow ARGS_DECL((void)); 34extern void MoveResizeChatWindow ARGS_DECL((int x, int y, int w, int h)); 35extern void ChatEventHandler ARGS_DECL((XEvent*, TidgetInfo*)); 36extern int IsChatWindowEvent ARGS_DECL((XEvent*, TidgetInfo**)); 37 38extern int GetInitialChatWindowHeight ARGS_DECL((void)); 39extern void SetChatWindowGeom ARGS_DECL((void)); 40extern void MapChatSubWindows ARGS_DECL((void)); 41extern int CreateChatSubWindows ARGS_DECL((void)); 42 43extern void ChatAppendChatLine ARGS_DECL((TextFormatInfo*, char *nick_name, 44 char *encoding, char *buf)); 45extern void ChatAddUser ARGS_DECL((char*)); 46 47extern int InitChat ARGS_DECL((void)); 48extern void CleanUpChat ARGS_DECL((void)); 49 50#ifdef _INCLUDE_FROM_CHAT_C_ 51#undef extern 52#ifndef _NO_RECURSIVE_EXTERN 53#define extern extern 54#endif /* ~_NO_RECURSIVE_EXTERN */ 55#endif /*_INCLUDE_FROM_CHAT_C_*/ 56 57#endif /*_CHAT_E_*/ 58