]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/HiiPopup.h
MdePkg FirmwareManagement.h: Fix typo EFI_SECURITY_VIOLATIO
[mirror_edk2.git] / MdePkg / Include / Protocol / HiiPopup.h
CommitLineData
3413fe86
DB
1/** @file\r
2 This protocol provides services to display a popup window.\r
3 The protocol is typically produced by the forms browser and consumed by a driver callback handler.\r
4\r
5 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
6 This program and the accompanying materials are licensed and made available under\r
7 the terms and conditions of the BSD License that accompanies this distribution.\r
8 The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __HII_POPUP_H__\r
17#define __HII_POPUP_H__\r
18\r
19#define EFI_HII_POPUP_PROTOCOL_GUID \\r
20 {0x4311edc0, 0x6054, 0x46d4, {0x9e, 0x40, 0x89, 0x3e, 0xa9, 0x52, 0xfc, 0xcc}}\r
21\r
22#define EFI_HII_POPUP_PROTOCOL_REVISION 1\r
23\r
24typedef struct _EFI_HII_POPUP_PROTOCOL EFI_HII_POPUP_PROTOCOL;\r
25\r
26typedef enum {\r
27 EfiHiiPopupStyleInfo,\r
28 EfiHiiPopupStyleWarning,\r
29 EfiHiiPopupStyleError\r
30} EFI_HII_POPUP_STYLE;\r
31\r
32typedef enum {\r
33 EfiHiiPopupTypeOk,\r
34 EfiHiiPopupTypeOkCancel,\r
35 EfiHiiPopupTypeYesNo,\r
36 EfiHiiPopupTypeYesNoCancel\r
37} EFI_HII_POPUP_TYPE;\r
38\r
39typedef enum {\r
40 EfiHiiPopupSelectionOk,\r
41 EfiHiiPopupSelectionCancel,\r
42 EfiHiiPopupSelectionYes,\r
43 EfiHiiPopupSelectionNo\r
44} EFI_HII_POPUP_SELECTION;\r
45\r
46/**\r
47 Displays a popup window.\r
48\r
49 @param This A pointer to the EFI_HII_POPUP_PROTOCOL instance.\r
50 @param PopupStyle Popup style to use.\r
51 @param PopupType Type of the popup to display.\r
52 @param HiiHandle HII handle of the string pack containing Message\r
53 @param Message A message to display in the popup box.\r
54 @param UserSelection User selection.\r
55\r
56 @retval EFI_SUCCESS The popup box was successfully displayed.\r
57 @retval EFI_INVALID_PARAMETER HiiHandle and Message do not define a valid HII string.\r
58 @retval EFI_INVALID_PARAMETER PopupType is not one of the values defined by this specification.\r
59 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to display the popup box.\r
60\r
61**/\r
62typedef\r
63EFI_STATUS\r
64(EFIAPI * EFI_HII_CREATE_POPUP) (\r
65 IN EFI_HII_POPUP_PROTOCOL *This,\r
66 IN EFI_HII_POPUP_STYLE PopupStyle,\r
67 IN EFI_HII_POPUP_TYPE PopupType,\r
68 IN EFI_HII_HANDLE HiiHandle,\r
69 IN EFI_STRING_ID Message,\r
70 OUT EFI_HII_POPUP_SELECTION *UserSelection OPTIONAL\r
71);\r
72\r
73typedef struct _EFI_HII_POPUP_PROTOCOL {\r
74 UINT64 Revision;\r
75 EFI_HII_CREATE_POPUP CreatePopup;\r
76} EFI_HII_POPUP_PROTOCOL;\r
77\r
78extern EFI_GUID gEfiHiiPopupProtocolGuid;\r
79\r
80#endif\r
81\r