Merged in qulogic/pidgin (pull request #607)
[pidgin-git.git] / finch / gntrequest.h
blobffea31b86c1daa672b5d5b025501ebaebefb5815
1 /*
2 * finch
4 * Finch is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23 #ifndef FINCH_REQUEST_H
24 #define FINCH_REQUEST_H
26 /**
27 * SECTION:gntrequest
28 * @section_id: finch-gntrequest
29 * @short_description: <filename>gntrequest.h</filename>
30 * @title: Request API
33 #include "request.h"
34 #include "gnt.h"
36 /**********************************************************************
37 * GNT Request API
38 **********************************************************************/
40 /**
41 * finch_request_get_ui_ops:
43 * Get the ui-functions.
45 * Returns: The PurpleRequestUiOps structure populated with the appropriate functions.
47 PurpleRequestUiOps *finch_request_get_ui_ops(void);
49 /**
50 * finch_request_init:
52 * Perform necessary initializations.
54 void finch_request_init(void);
56 /**
57 * finch_request_uninit:
59 * Perform necessary uninitializations.
61 void finch_request_uninit(void);
63 /**
64 * finch_request_save_in_prefs:
65 * @data: No longer used, set to %NULL.
66 * @fields: The #PurpleRequestFields to save.
68 * Save the request fields in preferences where the id attribute of each field is the
69 * id of a preference.
71 void finch_request_save_in_prefs(gpointer data, PurpleRequestFields *fields);
73 /**
74 * finch_request_field_get_widget:
75 * @field: The request field.
77 * Create a widget field for a request-field.
79 * Returns: (transfer full): A GntWidget for the request field.
81 GntWidget *finch_request_field_get_widget(PurpleRequestField *field);
83 #endif /* FINCH_REQUEST_H */