blob: da6b690e32cc214faa70482dc0e08d1de7d79a08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* trust-prompt.h
*
* This library is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef TRUST_PROMPT_H
#define TRUST_PROMPT_H
/* XXX Yeah, yeah... */
#define GCR_API_SUBJECT_TO_CHANGE
#include <gcr/gcr.h>
#include <libebackend/libebackend.h>
/* This shows a trust-prompt. The function may not block and returns whether
* showed a dialog or not. It calls e_user_prompter_server_extension_response()
* when a user responded to the dialog with one of the TRUST_PROMPT_RESPONSE values.
*/
#define TRUST_PROMPT_RESPONSE_UNKNOWN -1
#define TRUST_PROMPT_RESPONSE_REJECT 0
#define TRUST_PROMPT_RESPONSE_ACCEPT_PERMANENTLY 1
#define TRUST_PROMPT_RESPONSE_ACCEPT_TEMPORARILY 2
gboolean
trust_prompt_show (EUserPrompterServerExtension *extension,
gint prompt_id,
const gchar *host,
const gchar *markup,
GcrParsed *parsed,
const gchar *reason);
#endif /* TRUST_PROMPT_H */
|