finch
gntconv.h
Go to the documentation of this file.
1
6
/* finch
7
*
8
* Finch is the legal property of its developers, whose names are too numerous
9
* to list here. Please refer to the COPYRIGHT file distributed with this
10
* source distribution.
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25
*/
26
#ifndef _GNT_CONV_H
27
#define _GNT_CONV_H
28
29
#include <
gnt.h
>
30
#include <
gntwidget.h
>
31
#include <
gntmenuitem.h
>
32
33
#include "
conversation.h
"
34
35
/* Grabs the conv out of a PurpleConverstation */
36
#define FINCH_CONV(conv) ((FinchConv *)(conv)->ui_data)
37
38
/***************************************************************************
39
* @name GNT Conversations API
40
***************************************************************************/
43
typedef
struct
_FinchConv
FinchConv
;
44
typedef
struct
_FinchConvChat
FinchConvChat
;
45
typedef
struct
_FinchConvIm
FinchConvIm
;
46
47
typedef
enum
48
{
49
FINCH_CONV_NO_SOUND = 1 << 0,
50
} FinchConversationFlag;
51
52
struct
_FinchConv
53
{
54
GList *list;
55
PurpleConversation
*active_conv;
56
57
GntWidget
*window;
/* the container */
58
GntWidget
*entry;
/* entry */
59
GntWidget
*tv;
/* text-view */
60
GntWidget
*menu;
61
GntWidget
*info;
62
FinchConversationFlag flags;
63
64
union
65
{
66
FinchConvChat
*chat;
67
FinchConvIm
*im;
68
} u;
69
};
70
71
struct
_FinchConvChat
72
{
73
GntWidget
*userlist;
/* the userlist */
74
void
*pad1;
75
void
*pad2;
76
};
77
78
struct
_FinchConvIm
79
{
80
GntMenuItem
*sendto;
81
void
*something_for_later;
82
};
83
89
PurpleConversationUiOps
*
finch_conv_get_ui_ops
(
void
);
90
94
void
finch_conversation_init
(
void
);
95
99
void
finch_conversation_uninit
(
void
);
100
106
void
finch_conversation_set_active
(
PurpleConversation
*conv);
107
115
void
finch_conversation_set_info_widget
(
PurpleConversation
*conv,
GntWidget
*widget);
116
119
#endif
finch_conversation_set_active
void finch_conversation_set_active(PurpleConversation *conv)
Set a conversation as active in a contactized conversation.
_FinchConvIm
Definition:
gntconv.h:79
_GntWidget
Definition:
gntwidget.h:99
gnt.h
gntmenuitem.h
finch_conversation_set_info_widget
void finch_conversation_set_info_widget(PurpleConversation *conv, GntWidget *widget)
Sets the information widget for the conversation window.
_PurpleConversationUiOps
Conversation operations and events.
Definition:
conversation.h:162
finch_conv_get_ui_ops
PurpleConversationUiOps * finch_conv_get_ui_ops(void)
Get the ui-functions.
finch_conversation_init
void finch_conversation_init(void)
Perform the necessary initializations.
conversation.h
gntwidget.h
_GntMenuItem
Definition:
gntmenuitem.h:62
finch_conversation_uninit
void finch_conversation_uninit(void)
Perform the necessary uninitializations.
_PurpleConversation
A core representation of a conversation between two or more people.
Definition:
conversation.h:339
_FinchConvChat
Definition:
gntconv.h:72
_FinchConv
Definition:
gntconv.h:53