15817
|
1 /**
|
|
2 * @file gntconv.h GNT Conversation API
|
|
3 * @ingroup gntui
|
|
4 *
|
15822
|
5 * purple
|
15817
|
6 *
|
15822
|
7 * Purple is the legal property of its developers, whose names are too numerous
|
15817
|
8 * to list here. Please refer to the COPYRIGHT file distributed with this
|
|
9 * source distribution.
|
|
10 *
|
|
11 * This program is free software; you can redistribute it and/or modify
|
|
12 * it under the terms of the GNU General Public License as published by
|
|
13 * the Free Software Foundation; either version 2 of the License, or
|
|
14 * (at your option) any later version.
|
|
15 *
|
|
16 * This program is distributed in the hope that it will be useful,
|
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 * GNU General Public License for more details.
|
|
20 *
|
|
21 * You should have received a copy of the GNU General Public License
|
|
22 * along with this program; if not, write to the Free Software
|
|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
24 */
|
|
25 #ifndef _GNT_CONV_H
|
|
26 #define _GNT_CONV_H
|
|
27
|
|
28 #include <gnt.h>
|
|
29 #include <gntwidget.h>
|
|
30
|
|
31 #include "conversation.h"
|
|
32
|
|
33 /***************************************************************************
|
|
34 * @name GNT Conversations API
|
|
35 ***************************************************************************/
|
|
36 /*@{*/
|
|
37
|
|
38 typedef struct _FinchConv FinchConv;
|
|
39 typedef struct _FinchConvChat FinchConvChat;
|
|
40 typedef struct _FinchConvIm FinchConvIm;
|
|
41
|
|
42 struct _FinchConv
|
|
43 {
|
|
44 GList *list;
|
15822
|
45 PurpleConversation *active_conv;
|
15817
|
46
|
|
47 GntWidget *window; /* the container */
|
|
48 GntWidget *entry; /* entry */
|
|
49 GntWidget *tv; /* text-view */
|
|
50
|
|
51 union
|
|
52 {
|
|
53 FinchConvChat *chat;
|
|
54 FinchConvIm *im;
|
|
55 } u;
|
|
56 };
|
|
57
|
|
58 struct _FinchConvChat
|
|
59 {
|
|
60 GntWidget *userlist; /* the userlist */
|
|
61 };
|
|
62
|
|
63 struct _FinchConvIm
|
|
64 {
|
|
65 void *nothing_for_now;
|
|
66 };
|
|
67
|
|
68 /**
|
|
69 * Get the ui-functions.
|
|
70 *
|
15822
|
71 * @return The PurpleConversationUiOps populated with the appropriate functions.
|
15817
|
72 */
|
15822
|
73 PurpleConversationUiOps *finch_conv_get_ui_ops(void);
|
15817
|
74
|
|
75 /**
|
|
76 * Perform the necessary initializations.
|
|
77 */
|
|
78 void finch_conversation_init(void);
|
|
79
|
|
80 /**
|
|
81 * Perform the necessary uninitializations.
|
|
82 */
|
|
83 void finch_conversation_uninit(void);
|
|
84
|
|
85 /**
|
|
86 * Set a conversation as active in a contactized conversation
|
|
87 *
|
|
88 * @param conv The conversation to make active.
|
|
89 */
|
15822
|
90 void finch_conversation_set_active(PurpleConversation *conv);
|
15817
|
91
|
|
92 /*@}*/
|
|
93
|
|
94 #endif
|