Fri, 16 Nov 2007 23:00:12 +0000
merge of '872d9eb1be5723381977cd6aad9d3c6d7dcd9329'
and 'a3b64f274ab3b3ca737f2f634446d6a039ebb9bd'
| 5205 | 1 | /** |
| 2 | * @file gtkplugin.h GTK+ Plugin API | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* pidgin |
| 5205 | 7 | * |
| 15572 | 8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
|
15692
ecda27df58b9
Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents:
15577
diff
changeset
|
11 | * |
| 5205 | 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16749
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5205 | 25 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
26 | #ifndef _PIDGINPLUGIN_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
27 | #define _PIDGINPLUGIN_H_ |
| 5205 | 28 | |
| 15577 | 29 | #include "pidgin.h" |
| 5205 | 30 | #include "plugin.h" |
| 31 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
32 | typedef struct _PidginPluginUiInfo PidginPluginUiInfo; |
| 5205 | 33 | |
| 34 | /** | |
| 35 | * A GTK+ UI structure for plugins. | |
| 36 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
37 | struct _PidginPluginUiInfo |
| 5205 | 38 | { |
| 15884 | 39 | GtkWidget *(*get_config_frame)(PurplePlugin *plugin); |
| 5205 | 40 | |
|
10759
c6600b133594
[gaim-migrate @ 12362]
Mark Doliner <markdoliner@pidgin.im>
parents:
9791
diff
changeset
|
41 | int page_num; /**< Reserved */ |
|
16749
14a3fdc0aed7
Default plugins are done, for the release i'm not that concerned about plugins that do _NOT_ compile by default
Gary Kramlich <grim@reaperworld.com>
parents:
16254
diff
changeset
|
42 | |
|
14a3fdc0aed7
Default plugins are done, for the release i'm not that concerned about plugins that do _NOT_ compile by default
Gary Kramlich <grim@reaperworld.com>
parents:
16254
diff
changeset
|
43 | /* padding */ |
|
14a3fdc0aed7
Default plugins are done, for the release i'm not that concerned about plugins that do _NOT_ compile by default
Gary Kramlich <grim@reaperworld.com>
parents:
16254
diff
changeset
|
44 | void (*_pidgin_reserved1)(void); |
|
14a3fdc0aed7
Default plugins are done, for the release i'm not that concerned about plugins that do _NOT_ compile by default
Gary Kramlich <grim@reaperworld.com>
parents:
16254
diff
changeset
|
45 | void (*_pidgin_reserved2)(void); |
|
14a3fdc0aed7
Default plugins are done, for the release i'm not that concerned about plugins that do _NOT_ compile by default
Gary Kramlich <grim@reaperworld.com>
parents:
16254
diff
changeset
|
46 | void (*_pidgin_reserved3)(void); |
|
14a3fdc0aed7
Default plugins are done, for the release i'm not that concerned about plugins that do _NOT_ compile by default
Gary Kramlich <grim@reaperworld.com>
parents:
16254
diff
changeset
|
47 | void (*_pidgin_reserved4)(void); |
| 5205 | 48 | }; |
| 49 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
50 | #define PIDGIN_PLUGIN_TYPE PIDGIN_UI |
| 5205 | 51 | |
|
15692
ecda27df58b9
Some more pidgininfication
Daniel Atallah <datallah@pidgin.im>
parents:
15577
diff
changeset
|
52 | #define PIDGIN_IS_PIDGIN_PLUGIN(plugin) \ |
| 5205 | 53 | ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
54 | !strcmp((plugin)->info->ui_requirement, PIDGIN_PLUGIN_TYPE)) |
| 5205 | 55 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
56 | #define PIDGIN_PLUGIN_UI_INFO(plugin) \ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
57 | ((PidginPluginUiInfo *)(plugin)->info->ui_info) |
| 5205 | 58 | |
| 59 | /** | |
| 60 | * Returns the configuration frame widget for a GTK+ plugin, if one | |
| 61 | * exists. | |
| 62 | * | |
| 63 | * @param plugin The plugin. | |
| 64 | * | |
| 65 | * @return The frame, if the plugin is a GTK+ plugin and provides a | |
| 66 | * configuration frame. | |
| 67 | */ | |
| 15884 | 68 | GtkWidget *pidgin_plugin_get_config_frame(PurplePlugin *plugin); |
| 5205 | 69 | |
|
5981
c91ece01ad12
[gaim-migrate @ 6429]
Christian Hammond <chipx86@chipx86.com>
parents:
5205
diff
changeset
|
70 | /** |
|
c91ece01ad12
[gaim-migrate @ 6429]
Christian Hammond <chipx86@chipx86.com>
parents:
5205
diff
changeset
|
71 | * Saves all loaded plugins. |
|
c91ece01ad12
[gaim-migrate @ 6429]
Christian Hammond <chipx86@chipx86.com>
parents:
5205
diff
changeset
|
72 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
73 | void pidgin_plugins_save(void); |
|
5981
c91ece01ad12
[gaim-migrate @ 6429]
Christian Hammond <chipx86@chipx86.com>
parents:
5205
diff
changeset
|
74 | |
| 11740 | 75 | /** |
| 76 | * Shows the Plugins dialog | |
| 77 | */ | |
| 20705 | 78 | void pidgin_plugin_dialog_show(void); |
| 79 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
80 | #endif /* _PIDGINPLUGIN_H_ */ |