Mercurial > pidgin.yaz
annotate finch/gntconv.h @ 19178:c8ad802a6167
propagate from branch 'im.pidgin.soc.2007.finchfeat' (head f9bd1ff649a74b3722f5d3181f1533a92fc3d4f8)
to branch 'im.pidgin.pidgin' (head 391beabbbe9b94205d5c2d9ef073ecff207da387)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 11 Aug 2007 10:53:28 +0000 |
parents | 68a3b83795c6 |
children | 4ce4ff8a3c19 |
rev | line source |
---|---|
15818 | 1 /** |
2 * @file gntconv.h GNT Conversation API | |
16194
0f0832c13fcb
Rename the Doxygen group from gntui to finch and define the finch group
Richard Laager <rlaager@wiktel.com>
parents:
16168
diff
changeset
|
3 * @ingroup finch |
15818 | 4 * |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
5 * finch |
15818 | 6 * |
15871
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15823
diff
changeset
|
7 * Finch is the legal property of its developers, whose names are too numerous |
15818 | 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 | |
19100 | 33 /* Grabs the conv out of a PurpleConverstation */ |
34 #define FINCH_CONV(conv) ((FinchConv *)(conv)->ui_data) | |
35 | |
15818 | 36 /*************************************************************************** |
37 * @name GNT Conversations API | |
38 ***************************************************************************/ | |
39 /*@{*/ | |
40 | |
41 typedef struct _FinchConv FinchConv; | |
42 typedef struct _FinchConvChat FinchConvChat; | |
43 typedef struct _FinchConvIm FinchConvIm; | |
44 | |
45 struct _FinchConv | |
46 { | |
47 GList *list; | |
15823 | 48 PurpleConversation *active_conv; |
15818 | 49 |
50 GntWidget *window; /* the container */ | |
51 GntWidget *entry; /* entry */ | |
52 GntWidget *tv; /* text-view */ | |
16129
8bb00667532f
Add this now so we don't break abi right after release
Richard Nelson <wabz@pidgin.im>
parents:
15871
diff
changeset
|
53 GntWidget *menu; /* future use */ |
16128
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
54 GntWidget *info; |
16671
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
55 void *pad; |
15818 | 56 |
57 union | |
58 { | |
59 FinchConvChat *chat; | |
60 FinchConvIm *im; | |
61 } u; | |
62 }; | |
63 | |
64 struct _FinchConvChat | |
65 { | |
66 GntWidget *userlist; /* the userlist */ | |
16671
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
67 void *pad1; |
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
68 void *pad2; |
15818 | 69 }; |
70 | |
71 struct _FinchConvIm | |
72 { | |
73 void *nothing_for_now; | |
16671
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
74 void *something_for_later; |
15818 | 75 }; |
76 | |
77 /** | |
78 * Get the ui-functions. | |
79 * | |
15823 | 80 * @return The PurpleConversationUiOps populated with the appropriate functions. |
15818 | 81 */ |
15823 | 82 PurpleConversationUiOps *finch_conv_get_ui_ops(void); |
15818 | 83 |
84 /** | |
85 * Perform the necessary initializations. | |
86 */ | |
87 void finch_conversation_init(void); | |
88 | |
89 /** | |
90 * Perform the necessary uninitializations. | |
91 */ | |
92 void finch_conversation_uninit(void); | |
93 | |
94 /** | |
95 * Set a conversation as active in a contactized conversation | |
96 * | |
97 * @param conv The conversation to make active. | |
98 */ | |
15823 | 99 void finch_conversation_set_active(PurpleConversation *conv); |
15818 | 100 |
16128
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
101 /** |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
102 * Sets the information widget for the conversation window. |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
103 * |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
104 * @param conv The conversation. |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
105 * @param widget The widget containing the information. If @c NULL, |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
106 * the current information widget is removed. |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
107 */ |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
108 void finch_conversation_set_info_widget(PurpleConversation *conv, GntWidget *widget); |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15871
diff
changeset
|
109 |
15818 | 110 /*@}*/ |
111 | |
112 #endif |