gntconv.h

Go to the documentation of this file.
00001 
00025 #ifndef _GNT_CONV_H
00026 #define _GNT_CONV_H
00027 
00028 #include <gnt.h>
00029 #include <gntwidget.h>
00030 
00031 #include "conversation.h"
00032 
00033 /***************************************************************************
00034  * @name GNT Conversations API
00035  ***************************************************************************/
00038 typedef struct _FinchConv FinchConv;
00039 typedef struct _FinchConvChat FinchConvChat;
00040 typedef struct _FinchConvIm FinchConvIm;
00041 
00042 struct _FinchConv
00043 {
00044     GList *list;
00045     PurpleConversation *active_conv;
00046 
00047     GntWidget *window;        /* the container */
00048     GntWidget *entry;         /* entry */
00049     GntWidget *tv;            /* text-view */
00050     GntWidget *menu;          /* future use */
00051     GntWidget *info;
00052     void *pad;
00053 
00054     union
00055     {
00056         FinchConvChat *chat;
00057         FinchConvIm *im;
00058     } u;
00059 };
00060 
00061 struct _FinchConvChat
00062 {
00063     GntWidget *userlist;       /* the userlist */
00064     void *pad1;
00065     void *pad2;
00066 };
00067 
00068 struct _FinchConvIm
00069 {
00070     void *nothing_for_now;
00071     void *something_for_later;
00072 };
00073 
00079 PurpleConversationUiOps *finch_conv_get_ui_ops(void);
00080 
00084 void finch_conversation_init(void);
00085 
00089 void finch_conversation_uninit(void);
00090 
00096 void finch_conversation_set_active(PurpleConversation *conv);
00097 
00105 void finch_conversation_set_info_widget(PurpleConversation *conv, GntWidget *widget);
00106 
00109 #endif