]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This library class defines a set of interfaces to be used by customize Ui module\r | |
3 | \r | |
4 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials are licensed and made available under\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution.\r | |
7 | The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php.\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __FRONTPAGE_CUSTOMIZE_UI_SUPPORT_UI_H__\r | |
16 | #define __FRONTPAGE_CUSTOMIZE_UI_SUPPORT_UI_H__\r | |
17 | \r | |
18 | /**\r | |
19 | Create continue menu in the front page.\r | |
20 | \r | |
21 | @param[in] HiiHandle The hii handle for the Uiapp driver.\r | |
22 | @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r | |
23 | \r | |
24 | **/\r | |
25 | VOID\r | |
26 | UiCreateContinueMenu (\r | |
27 | IN EFI_HII_HANDLE HiiHandle,\r | |
28 | IN VOID *StartOpCodeHandle\r | |
29 | );\r | |
30 | \r | |
31 | /**\r | |
32 | Create empty line menu.\r | |
33 | \r | |
34 | @param HiiHandle The hii handle for the Uiapp driver.\r | |
35 | @param StartOpCodeHandle The opcode handle to save the new opcode.\r | |
36 | \r | |
37 | **/\r | |
38 | VOID\r | |
39 | UiCreateEmptyLine (\r | |
40 | IN EFI_HII_HANDLE HiiHandle,\r | |
41 | IN VOID *StartOpCodeHandle\r | |
42 | );\r | |
43 | \r | |
44 | /**\r | |
45 | Create Select language menu in the front page with oneof opcode.\r | |
46 | \r | |
47 | @param[in] HiiHandle The hii handle for the Uiapp driver.\r | |
48 | @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r | |
49 | \r | |
50 | **/\r | |
51 | VOID\r | |
52 | UiCreateLanguageMenu (\r | |
53 | IN EFI_HII_HANDLE HiiHandle,\r | |
54 | IN VOID *StartOpCodeHandle\r | |
55 | );\r | |
56 | \r | |
57 | /**\r | |
58 | Create Reset menu.\r | |
59 | \r | |
60 | @param[in] HiiHandle The hii handle for the Uiapp driver.\r | |
61 | @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r | |
62 | \r | |
63 | **/\r | |
64 | VOID\r | |
65 | UiCreateResetMenu (\r | |
66 | IN EFI_HII_HANDLE HiiHandle,\r | |
67 | IN VOID *StartOpCodeHandle\r | |
68 | );\r | |
69 | \r | |
70 | /**\r | |
71 | Rename the driver name if necessary.\r | |
72 | \r | |
73 | @param DriverName Input the driver name.\r | |
74 | @param NewDriverName Return the new driver name.\r | |
75 | @param EmptyLineAfter Whether need to insert empty line.\r | |
76 | \r | |
77 | @retval New driver name if compared, else NULL.\r | |
78 | \r | |
79 | **/\r | |
80 | typedef\r | |
81 | BOOLEAN\r | |
82 | (EFIAPI *DRIVER_SPECIAL_HANDLER)(\r | |
83 | IN CHAR16 *DriverName,\r | |
84 | OUT CHAR16 **NewName,\r | |
85 | OUT BOOLEAN *EmptyLineAfter\r | |
86 | );\r | |
87 | \r | |
88 | /**\r | |
89 | Search the drivers in the system which need to show in the front page\r | |
90 | and insert the menu to the front page.\r | |
91 | \r | |
92 | @param HiiHandle The hii handle for the Uiapp driver.\r | |
93 | @param ClassGuid The class guid for the driver which is the target.\r | |
94 | @param SpecialHandlerFn The pointer to the specail handler function, if any.\r | |
95 | @param StartOpCodeHandle The opcode handle to save the new opcode.\r | |
96 | \r | |
97 | @retval EFI_SUCCESS Search the driver success\r | |
98 | \r | |
99 | **/\r | |
100 | EFI_STATUS\r | |
101 | UiListThirdPartyDrivers (\r | |
102 | IN EFI_HII_HANDLE HiiHandle,\r | |
103 | IN EFI_GUID *ClassGuid,\r | |
104 | IN DRIVER_SPECIAL_HANDLER SpecialHandlerFn,\r | |
105 | IN VOID *StartOpCodeHandle\r | |
106 | );\r | |
107 | \r | |
108 | /**\r | |
109 | This function processes the results of changes in configuration.\r | |
110 | \r | |
111 | \r | |
112 | @param HiiHandle Points to the hii handle for this formset.\r | |
113 | @param Action Specifies the type of action taken by the browser.\r | |
114 | @param QuestionId A unique value which is sent to the original exporting driver\r | |
115 | so that it can identify the type of data to expect.\r | |
116 | @param Type The type of value for the question.\r | |
117 | @param Value A pointer to the data being sent to the original exporting driver.\r | |
118 | @param ActionRequest On return, points to the action requested by the callback function.\r | |
119 | @param Status Return the handle status.\r | |
120 | \r | |
121 | @retval TRUE The callback successfully handled the action.\r | |
122 | @retval FALSE The callback not supported in this handler.\r | |
123 | \r | |
124 | **/\r | |
125 | BOOLEAN\r | |
126 | UiSupportLibCallbackHandler (\r | |
127 | IN EFI_HII_HANDLE HiiHandle,\r | |
128 | IN EFI_BROWSER_ACTION Action,\r | |
129 | IN EFI_QUESTION_ID QuestionId,\r | |
130 | IN UINT8 Type,\r | |
131 | IN EFI_IFR_TYPE_VALUE *Value,\r | |
132 | OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest,\r | |
133 | OUT EFI_STATUS *Status\r | |
134 | );\r | |
135 | \r | |
136 | #endif\r |