]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.h
MdeModulePkg/Application: Fix various typos
[mirror_edk2.git] / MdeModulePkg / Application / UiApp / FrontPageCustomizedUiSupport.h
CommitLineData
c9802c45
ED
1/** @file\r
2 This library class defines a set of interfaces to be used by customize Ui module\r
3\r
4Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
c9802c45
ED
6\r
7**/\r
8\r
9#ifndef __FRONTPAGE_CUSTOMIZE_UI_SUPPORT_UI_H__\r
10#define __FRONTPAGE_CUSTOMIZE_UI_SUPPORT_UI_H__\r
11\r
12/**\r
13 Create continue menu in the front page.\r
14\r
15 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
16 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
17\r
c9802c45
ED
18**/\r
19VOID\r
20UiCreateContinueMenu (\r
21 IN EFI_HII_HANDLE HiiHandle,\r
22 IN VOID *StartOpCodeHandle\r
23 );\r
24\r
25/**\r
26 Create empty line menu.\r
27\r
28 @param HiiHandle The hii handle for the Uiapp driver.\r
29 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
30\r
c9802c45
ED
31**/\r
32VOID\r
33UiCreateEmptyLine (\r
34 IN EFI_HII_HANDLE HiiHandle,\r
35 IN VOID *StartOpCodeHandle\r
36 );\r
37\r
38/**\r
39 Create Select language menu in the front page with oneof opcode.\r
40\r
41 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
42 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
43\r
c9802c45
ED
44**/\r
45VOID\r
46UiCreateLanguageMenu (\r
47 IN EFI_HII_HANDLE HiiHandle,\r
48 IN VOID *StartOpCodeHandle\r
49 );\r
50\r
51/**\r
52 Create Reset menu.\r
53\r
54 @param[in] HiiHandle The hii handle for the Uiapp driver.\r
55 @param[in] StartOpCodeHandle The opcode handle to save the new opcode.\r
56\r
c9802c45
ED
57**/\r
58VOID\r
59UiCreateResetMenu (\r
60 IN EFI_HII_HANDLE HiiHandle,\r
61 IN VOID *StartOpCodeHandle\r
62 );\r
63\r
64/**\r
65 Rename the driver name if necessary.\r
66\r
67 @param DriverName Input the driver name.\r
68 @param NewDriverName Return the new driver name.\r
69 @param EmptyLineAfter Whether need to insert empty line.\r
70\r
71 @retval New driver name if compared, else NULL.\r
72\r
73**/\r
74typedef\r
75BOOLEAN\r
76(EFIAPI *DRIVER_SPECIAL_HANDLER)(\r
77 IN CHAR16 *DriverName,\r
78 OUT CHAR16 **NewName,\r
79 OUT BOOLEAN *EmptyLineAfter\r
80);\r
81\r
82/**\r
83 Search the drivers in the system which need to show in the front page\r
84 and insert the menu to the front page.\r
85\r
86 @param HiiHandle The hii handle for the Uiapp driver.\r
87 @param ClassGuid The class guid for the driver which is the target.\r
02d7b797 88 @param SpecialHandlerFn The pointer to the special handler function, if any.\r
c9802c45 89 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
c9802c45
ED
90\r
91 @retval EFI_SUCCESS Search the driver success\r
92\r
93**/\r
94EFI_STATUS\r
95UiListThirdPartyDrivers (\r
96 IN EFI_HII_HANDLE HiiHandle,\r
97 IN EFI_GUID *ClassGuid,\r
98 IN DRIVER_SPECIAL_HANDLER SpecialHandlerFn,\r
99 IN VOID *StartOpCodeHandle\r
100 );\r
101\r
102/**\r
103 This function processes the results of changes in configuration.\r
104\r
105\r
106 @param HiiHandle Points to the hii handle for this formset.\r
107 @param Action Specifies the type of action taken by the browser.\r
108 @param QuestionId A unique value which is sent to the original exporting driver\r
109 so that it can identify the type of data to expect.\r
110 @param Type The type of value for the question.\r
111 @param Value A pointer to the data being sent to the original exporting driver.\r
112 @param ActionRequest On return, points to the action requested by the callback function.\r
113 @param Status Return the handle status.\r
114\r
115 @retval TRUE The callback successfully handled the action.\r
116 @retval FALSE The callback not supported in this handler.\r
117\r
118**/\r
119BOOLEAN\r
120UiSupportLibCallbackHandler (\r
121 IN EFI_HII_HANDLE HiiHandle,\r
122 IN EFI_BROWSER_ACTION Action,\r
123 IN EFI_QUESTION_ID QuestionId,\r
124 IN UINT8 Type,\r
125 IN EFI_IFR_TYPE_VALUE *Value,\r
126 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest,\r
127 OUT EFI_STATUS *Status\r
128 );\r
129\r
130#endif\r