Mercurial > pidgin
annotate finch/gntconv.h @ 19402:e95555316216
Use the changed volume when 'Test'ing.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 24 Aug 2007 15:04:19 +0000 (2007-08-24) |
parents | 4ce4ff8a3c19 |
children | 1a9b30a95fa6 |
rev | line source |
---|---|
15817 | 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 |
15817 | 4 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
5 * finch |
15817 | 6 * |
15870
66dff3dfdea6
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@wiktel.com>
parents:
15822
diff
changeset
|
7 * Finch 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> | |
19326
4ce4ff8a3c19
I broke the build. Sorry :(
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19100
diff
changeset
|
30 #include <gntmenuitem.h> |
15817 | 31 |
32 #include "conversation.h" | |
33 | |
19100 | 34 /* Grabs the conv out of a PurpleConverstation */ |
35 #define FINCH_CONV(conv) ((FinchConv *)(conv)->ui_data) | |
36 | |
15817 | 37 /*************************************************************************** |
38 * @name GNT Conversations API | |
39 ***************************************************************************/ | |
40 /*@{*/ | |
41 | |
42 typedef struct _FinchConv FinchConv; | |
43 typedef struct _FinchConvChat FinchConvChat; | |
44 typedef struct _FinchConvIm FinchConvIm; | |
45 | |
46 struct _FinchConv | |
47 { | |
48 GList *list; | |
15822 | 49 PurpleConversation *active_conv; |
15817 | 50 |
51 GntWidget *window; /* the container */ | |
52 GntWidget *entry; /* entry */ | |
53 GntWidget *tv; /* text-view */ | |
19326
4ce4ff8a3c19
I broke the build. Sorry :(
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19100
diff
changeset
|
54 GntWidget *menu; |
16128
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
55 GntWidget *info; |
16663
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
56 void *pad; |
15817 | 57 |
58 union | |
59 { | |
60 FinchConvChat *chat; | |
61 FinchConvIm *im; | |
62 } u; | |
63 }; | |
64 | |
65 struct _FinchConvChat | |
66 { | |
67 GntWidget *userlist; /* the userlist */ | |
16663
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
68 void *pad1; |
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
69 void *pad2; |
15817 | 70 }; |
71 | |
72 struct _FinchConvIm | |
73 { | |
19326
4ce4ff8a3c19
I broke the build. Sorry :(
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
19100
diff
changeset
|
74 GntMenuItem *sendto; |
16663
5e6f8b92a2a5
Preemptive padding.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
16194
diff
changeset
|
75 void *something_for_later; |
15817 | 76 }; |
77 | |
78 /** | |
79 * Get the ui-functions. | |
80 * | |
15822 | 81 * @return The PurpleConversationUiOps populated with the appropriate functions. |
15817 | 82 */ |
15822 | 83 PurpleConversationUiOps *finch_conv_get_ui_ops(void); |
15817 | 84 |
85 /** | |
86 * Perform the necessary initializations. | |
87 */ | |
88 void finch_conversation_init(void); | |
89 | |
90 /** | |
91 * Perform the necessary uninitializations. | |
92 */ | |
93 void finch_conversation_uninit(void); | |
94 | |
95 /** | |
96 * Set a conversation as active in a contactized conversation | |
97 * | |
98 * @param conv The conversation to make active. | |
99 */ | |
15822 | 100 void finch_conversation_set_active(PurpleConversation *conv); |
15817 | 101 |
16128
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
102 /** |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
103 * Sets the information widget for the conversation window. |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
104 * |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
105 * @param conv The conversation. |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
106 * @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:
15870
diff
changeset
|
107 * the current information widget is removed. |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
108 */ |
7a2ffa981c1a
Allow adding information widgets in the conversation window.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15870
diff
changeset
|
109 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:
15870
diff
changeset
|
110 |
15817 | 111 /*@}*/ |
112 | |
113 #endif |