merge of 'c965c78fc4196475e8fd004312be08c074958764'
[pidgin-git.git] / finch / gntrequest.h
blob2e1c33fde5f4245930740b09d5d8d5f73ba4aace
1 /**
2 * @file gntrequest.h GNT Request API
3 * @ingroup finch
4 */
6 /* finch
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.
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.
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.
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
26 #ifndef _GNT_REQUEST_H
27 #define _GNT_REQUEST_H
29 #include "request.h"
30 #include "gnt.h"
32 /**********************************************************************
33 * @name GNT Request API
34 **********************************************************************/
35 /*@{*/
37 /**
38 * Get the ui-functions.
40 * @return The PurpleRequestUiOps structure populated with the appropriate functions.
42 PurpleRequestUiOps *finch_request_get_ui_ops(void);
44 /**
45 * Perform necessary initializations.
47 void finch_request_init(void);
49 /**
50 * Perform necessary uninitializations.
52 void finch_request_uninit(void);
54 /**
55 * Save the request fields in preferences where the id attribute of each field is the
56 * id of a preference.
58 void finch_request_save_in_prefs(gpointer null, PurpleRequestFields *fields);
60 /**
61 * Create a widget field for a request-field.
63 * @param field The request field.
65 * @return A GntWidget for the request field.
66 * @since 2.4.0
68 GntWidget *finch_request_field_get_widget(PurpleRequestField *field);
69 /*@}*/
71 #endif