]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/UiApp/FrontPageCustomizedUiSupport.h
MdeModulePkg/UiApp: Update RouteConfig function
[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
5This program and the accompanying materials are licensed and made available under\r
6the terms and conditions of the BSD License that accompanies this distribution.\r
7The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php.\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT 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
c9802c45
ED
24**/\r
25VOID\r
26UiCreateContinueMenu (\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
c9802c45
ED
37**/\r
38VOID\r
39UiCreateEmptyLine (\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
c9802c45
ED
50**/\r
51VOID\r
52UiCreateLanguageMenu (\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
c9802c45
ED
63**/\r
64VOID\r
65UiCreateResetMenu (\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
80typedef\r
81BOOLEAN\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
8caa3caa 94 @param SpecialHandlerFn The pointer to the specail handler function, if any.\r
c9802c45 95 @param StartOpCodeHandle The opcode handle to save the new opcode.\r
c9802c45
ED
96\r
97 @retval EFI_SUCCESS Search the driver success\r
98\r
99**/\r
100EFI_STATUS\r
101UiListThirdPartyDrivers (\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
125BOOLEAN\r
126UiSupportLibCallbackHandler (\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