1 /*
2  * strings.c: default UI strings
3  *
4  * Copyright (C) 2017 Frank Morgner <frankmorgner@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 
21 #ifndef _SC_STRINGS_H
22 #define _SC_STRINGS_H
23 
24 #include "libopensc/pkcs15.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 enum ui_str {
31 	MD_PINPAD_DLG_TITLE,
32 	MD_PINPAD_DLG_MAIN,
33 	MD_PINPAD_DLG_CONTENT_USER,
34 	MD_PINPAD_DLG_CONTENT_ADMIN,
35 	MD_PINPAD_DLG_EXPANDED,
36 	MD_PINPAD_DLG_CONTROL_COLLAPSED,
37 	MD_PINPAD_DLG_CONTROL_EXPANDED,
38 	MD_PINPAD_DLG_ICON,
39 	MD_PINPAD_DLG_CANCEL,
40     NOTIFY_CARD_INSERTED,
41     NOTIFY_CARD_INSERTED_TEXT,
42     NOTIFY_CARD_REMOVED,
43     NOTIFY_CARD_REMOVED_TEXT,
44     NOTIFY_PIN_GOOD,
45     NOTIFY_PIN_GOOD_TEXT,
46     NOTIFY_PIN_BAD,
47     NOTIFY_PIN_BAD_TEXT,
48 	MD_PINPAD_DLG_CONTENT_USER_SIGN,
49     NOTIFY_EXIT,
50 	MD_PINPAD_DLG_VERIFICATION,
51 };
52 
53 const char *ui_get_str(struct sc_context *ctx, struct sc_atr *atr,
54 	   	struct sc_pkcs15_card *p15card, enum ui_str id);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif
61