Home | History | Annotate | Download | only in UserProfileManagerDxe
      1 /** @file
      2   User Profile Manager formset.
      3 
      4 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
      5 This program and the accompanying materials
      6 are licensed and made available under the terms and conditions of the BSD License
      7 which accompanies this distribution.  The full text of the license may be found at
      8 http://opensource.org/licenses/bsd-license.php
      9 
     10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     12 
     13 **/
     14 
     15 #include "UserProfileManagerData.h"
     16 
     17 #define USER_MANAGER_CLASS       0x00
     18 #define USER_MANAGER_SUBCLASS    0x04
     19 
     20 formset
     21   guid     = USER_PROFILE_MANAGER_GUID,
     22   title    = STRING_TOKEN(STR_FORMSET_TITLE),
     23   help     = STRING_TOKEN(STR_TITLE_HELP),
     24 
     25   // User manager form
     26   form formid = FORMID_USER_MANAGE,
     27     title     = STRING_TOKEN(STR_USERMAN_TITLE);
     28 
     29     label LABEL_USER_MANAGE_FUNC;
     30     label LABEL_END;
     31 
     32     suppressif TRUE;
     33       text
     34         help   = STRING_TOKEN(STR_NULL_STRING),
     35         text   = STRING_TOKEN(STR_NULL_STRING),
     36         flags  = INTERACTIVE,
     37         key    = QUESTIONID_USER_MANAGE;
     38     endif;
     39 
     40   endform;
     41 
     42   // Modify user profile form
     43   form formid = FORMID_MODIFY_USER,
     44     title     = STRING_TOKEN(STR_MODIFY_USER_TITLE);
     45 
     46     label LABEL_USER_MOD_FUNC;
     47     label LABEL_END;
     48 
     49   endform;
     50 
     51   // Delete user profile form
     52   form formid = FORMID_DEL_USER,
     53     title     = STRING_TOKEN(STR_DELETE_USER_TITLE);
     54 
     55     label LABEL_USER_DEL_FUNC;
     56     label LABEL_END;
     57 
     58     subtitle
     59       text   = STRING_TOKEN(STR_NULL_STRING);
     60   endform;
     61 
     62   //
     63   // User profile information form
     64   //
     65   form formid = FORMID_USER_INFO,
     66     title     = STRING_TOKEN(STR_USER_INFO);
     67 
     68     text
     69       help   = STRING_TOKEN(STR_USER_NAME_VAL),
     70       text   = STRING_TOKEN(STR_USER_NAME),
     71       flags  = INTERACTIVE,
     72       key    = KEY_MODIFY_USER_NAME;
     73 
     74     text
     75       help   = STRING_TOKEN(STR_CREATE_DATE_VAL),
     76       text   = STRING_TOKEN(STR_CREATE_DATE);
     77 
     78     text
     79       help   = STRING_TOKEN(STR_USAGE_DATE_VAL),
     80       text   = STRING_TOKEN(STR_USAGE_DATE);
     81 
     82     text
     83       help   = STRING_TOKEN(STR_USAGE_COUNT_VAL),
     84       text   = STRING_TOKEN(STR_USAGE_COUNT);
     85 
     86     label LABEL_USER_INFO_FUNC;
     87     label LABEL_END;
     88 
     89   endform;
     90 
     91   //
     92   // Identify policy modify form
     93   //
     94   form formid = FORMID_MODIFY_IP,
     95     title     = STRING_TOKEN(STR_IDENTIFY_POLICY);
     96 
     97     text
     98       help   = STRING_TOKEN(STR_IDENTIFY_POLICY_HELP),
     99       text   = STRING_TOKEN(STR_IDENTIFY_POLICY),
    100         text   = STRING_TOKEN(STR_IDENTIFY_POLICY_VALUE);
    101 
    102     label LABEL_IP_MOD_FUNC;
    103     label LABEL_END;
    104 
    105     text
    106       help   = STRING_TOKEN(STR_ADD_OPTION_HELP),
    107       text   = STRING_TOKEN(STR_ADD_OPTION),
    108       flags  = INTERACTIVE,
    109       key    = KEY_ADD_LOGICAL_OP;
    110 
    111     subtitle
    112       text   = STRING_TOKEN(STR_NULL_STRING);
    113 
    114     text
    115       help   = STRING_TOKEN(STR_IDENTIFY_SAVE_HELP),
    116       text   = STRING_TOKEN(STR_SAVE),
    117       flags  = INTERACTIVE,
    118       key    = KEY_IP_RETURN;
    119 
    120   endform;
    121 
    122   //
    123   // Access policy modify form
    124   //
    125   form formid = FORMID_MODIFY_AP,
    126     title     = STRING_TOKEN(STR_ACCESS_POLICY);
    127 
    128     label LABEL_AP_MOD_FUNC;
    129     label LABEL_END;
    130 
    131     goto FORMID_LOAD_DP,
    132       prompt  = STRING_TOKEN(STR_LOAD),
    133       help    = STRING_TOKEN(STR_LOAD_HELP),
    134       flags   = INTERACTIVE,
    135       key     = KEY_LOAD_DP;
    136 
    137     goto FORMID_CONNECT_DP,
    138       prompt  = STRING_TOKEN(STR_CONNECT),
    139       help    = STRING_TOKEN(STR_CONNECT_HELP),
    140       flags   = INTERACTIVE,
    141       key     = KEY_CONN_DP;
    142 
    143     subtitle
    144       text   = STRING_TOKEN(STR_NULL_STRING);
    145 
    146     text
    147       help   = STRING_TOKEN(STR_ACCESS_SAVE_HELP),
    148       text   = STRING_TOKEN(STR_SAVE),
    149       flags  = INTERACTIVE,
    150       key    = KEY_AP_RETURN;
    151 
    152   endform;
    153 
    154   //
    155   // Load device path form
    156   //
    157   form formid = FORMID_LOAD_DP,
    158     title     = STRING_TOKEN(STR_LOAD);
    159 
    160     goto FORMID_PERMIT_LOAD_DP,
    161       prompt  = STRING_TOKEN(STR_LOAD_PERMIT),
    162       help    = STRING_TOKEN(STR_LOAD_PERMIT_HELP),
    163       flags   = INTERACTIVE,
    164       key     = KEY_LOAD_PERMIT;
    165 
    166     goto FORMID_FORBID_LOAD_DP,
    167       prompt  = STRING_TOKEN(STR_LOAD_FORBID),
    168       help    = STRING_TOKEN(STR_LOAD_FORBID_HELP),
    169       flags   = INTERACTIVE,
    170       key     = KEY_LOAD_FORBID;
    171 
    172   endform;
    173 
    174   //
    175   // Permit load device path form
    176   //
    177   form formid = FORMID_PERMIT_LOAD_DP,
    178     title     = STRING_TOKEN(STR_LOAD_PERMIT);
    179 
    180     label LABEL_PERMIT_LOAD_FUNC;
    181     label LABEL_END;
    182 
    183     subtitle
    184       text   = STRING_TOKEN(STR_NULL_STRING);
    185 
    186   endform;
    187 
    188   //
    189   // Forbid load device path form
    190   //
    191   form formid = FORMID_FORBID_LOAD_DP,
    192     title     = STRING_TOKEN(STR_LOAD_FORBID);
    193 
    194     label LABLE_FORBID_LOAD_FUNC;
    195     label LABEL_END;
    196 
    197     subtitle
    198       text   = STRING_TOKEN(STR_NULL_STRING);
    199 
    200   endform;
    201 
    202   //
    203   // Connect device path form
    204   //
    205   form formid = FORMID_CONNECT_DP,
    206     title     = STRING_TOKEN(STR_CONNECT);
    207 
    208     goto FORMID_PERMIT_CONNECT_DP,
    209       prompt  = STRING_TOKEN(STR_CONNECT_PERMIT),
    210       help    = STRING_TOKEN(STR_CONNECT_PERMIT_HELP),
    211       flags   = INTERACTIVE,
    212       key     = KEY_CONNECT_PERMIT;
    213 
    214     goto FORMID_FORBID_CONNECT_DP,
    215       prompt  = STRING_TOKEN(STR_CONNECT_FORBID),
    216       help    = STRING_TOKEN(STR_CONNECT_FORBID_HELP),
    217       flags   = INTERACTIVE,
    218       key     = KEY_CONNECT_FORBID;
    219 
    220   endform;
    221 
    222   //
    223   // Permit connect device path form
    224   //
    225   form formid = FORMID_PERMIT_CONNECT_DP,
    226     title     = STRING_TOKEN(STR_CONNECT_PERMIT);
    227 
    228     subtitle
    229       text   = STRING_TOKEN(STR_NULL_STRING);
    230 
    231   endform;
    232 
    233   //
    234   // Forbid connect device path form
    235   //
    236   form formid = FORMID_FORBID_CONNECT_DP,
    237     title     = STRING_TOKEN(STR_CONNECT_FORBID);
    238 
    239    subtitle
    240      text   = STRING_TOKEN(STR_NULL_STRING);
    241 
    242   endform;
    243 
    244 endformset;
    245