1 /*
2  * prompt-user.h
3  *
4  * This library is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11  * for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library. If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #ifndef PROMPT_USER_H
19 #define PROMPT_USER_H
20 
21 #include <libebackend/libebackend.h>
22 
23 /* initialize the GUI subsystem */
24 void
25 prompt_user_init (gint *argc,
26 		  gchar ***argv);
27 
28 /* This is called when a request is initiated. The callback should not block,
29  * and when a user responds, the e_user_prompter_server_response() should be called.
30  */
31 
32 void
33 prompt_user_show (EUserPrompterServer *server,
34 		  gint id,
35 		  const gchar *type,
36 		  const gchar *title,
37 		  const gchar *primary_text,
38 		  const gchar *secondary_text,
39 		  gboolean use_markup,
40 		  const GSList *button_captions);
41 
42 #endif /* PROMPT_USER_H */
43