gtkplugin.h

Go to the documentation of this file.
00001 
00006 /* pidgin
00007  *
00008  * Pidgin is the legal property of its developers, whose names are too numerous
00009  * to list here.  Please refer to the COPYRIGHT file distributed with this
00010  * source distribution.
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00025  */
00026 #ifndef _PIDGINPLUGIN_H_
00027 #define _PIDGINPLUGIN_H_
00028 
00029 #include "pidgin.h"
00030 #include "plugin.h"
00031 
00032 typedef struct _PidginPluginUiInfo PidginPluginUiInfo;
00033 
00037 struct _PidginPluginUiInfo
00038 {
00039     GtkWidget *(*get_config_frame)(PurplePlugin *plugin);
00040 
00041     int page_num;                                         
00043     /* padding */
00044     void (*_pidgin_reserved1)(void);
00045     void (*_pidgin_reserved2)(void);
00046     void (*_pidgin_reserved3)(void);
00047     void (*_pidgin_reserved4)(void);
00048 };
00049 
00050 #define PIDGIN_PLUGIN_TYPE PIDGIN_UI
00051 
00052 #define PIDGIN_IS_PIDGIN_PLUGIN(plugin) \
00053     ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \
00054      !strcmp((plugin)->info->ui_requirement, PIDGIN_PLUGIN_TYPE))
00055 
00056 #define PIDGIN_PLUGIN_UI_INFO(plugin) \
00057     ((PidginPluginUiInfo *)(plugin)->info->ui_info)
00058 
00068 GtkWidget *pidgin_plugin_get_config_frame(PurplePlugin *plugin);
00069 
00073 void pidgin_plugins_save(void);
00074 
00078 void pidgin_plugin_dialog_show(void);
00079 
00080 #endif /* _PIDGINPLUGIN_H_ */