VirtualBox

Changeset 102381 in vbox for trunk/src


Ignore:
Timestamp:
Nov 29, 2023 2:51:33 PM (14 months ago)
Author:
vboxsync
Message:

Main/Unattended: Added stubs for IUnattended:keyboardLayout + IUnattended:keyboardVariant attributes. bugref:10553

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r102116 r102381  
    49624962  <interface
    49634963    name="IUnattended" extends="$unknown"
    4964     uuid="d1833215-78c9-4b42-9c2a-f44ef7b2d01f"
     4964    uuid="1136224d-0ba7-45d6-9aee-03b628da46b6"
    49654965    wsmap="managed"
    49664966    rest="managed"
     
    51095109              time zone formats.
    51105110        TODO: Take default from host (this requires mapping).
     5111      </desc>
     5112    </attribute>
     5113
     5114    <attribute name="keyboardLayout" type="wstring">
     5115      <desc>
     5116        Sets the keyboard layout of the guest, if available.
     5117
     5118        The 2 letter locale identifier, no codesets or such.
     5119
     5120        The format is two lower case country letter (ISO 3166-1 alpha-2).
     5121        For instance 'us', 'de', or 'no'.
     5122
     5123        The default is taken from the host if possible, with 'us' as fallback.
     5124
     5125        <result name="E_NOTIMPL">
     5126          Not implemented yet.
     5127        </result>
     5128      </desc>
     5129    </attribute>
     5130
     5131    <attribute name="keyboardVariant" type="wstring">
     5132      <desc>
     5133        Sets the keyboard variant of the guest, if available. Leave empty to use
     5134        the default variant for the current keyboard layout set.
     5135
     5136        TODO: Define + document a keyboard variants table (e.g. by using 'localectl list-x11-keymap-variants [layout]' as a base),
     5137              plus a mapping to Windows-based guests for that.
     5138
     5139        This depends on the current keyboard layout being set.
     5140
     5141        <result name="E_NOTIMPL">
     5142          Not implemented yet.
     5143        </result>
    51115144      </desc>
    51125145    </attribute>
  • trunk/src/VBox/Main/include/UnattendedImpl.h

    r102171 r102381  
    218218    HRESULT getTimeZone(com::Utf8Str &aTimezone);
    219219    HRESULT setTimeZone(const com::Utf8Str &aTimezone);
     220    HRESULT getKeyboardLayout(com::Utf8Str &aKeyboardLayout);
     221    HRESULT setKeyboardLayout(const com::Utf8Str &aKeyboardLayout);
     222    HRESULT getKeyboardVariant(com::Utf8Str &aKeyboardVariant);
     223    HRESULT setKeyboardVariant(const com::Utf8Str &aKeyboardVariant);
    220224    HRESULT getLocale(com::Utf8Str &aLocale);
    221225    HRESULT setLocale(const com::Utf8Str &aLocale);
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r102347 r102381  
    35763576}
    35773577
     3578HRESULT Unattended::getKeyboardLayout(com::Utf8Str &aKeyboardLayout)
     3579{
     3580    RT_NOREF(aKeyboardLayout);
     3581    return E_NOTIMPL;
     3582}
     3583
     3584HRESULT Unattended::setKeyboardLayout(const com::Utf8Str &aKeyboardLayout)
     3585{
     3586    RT_NOREF(aKeyboardLayout);
     3587    return E_NOTIMPL;
     3588}
     3589
     3590HRESULT Unattended::getKeyboardVariant(com::Utf8Str &aKeyboardVariant)
     3591{
     3592    RT_NOREF(aKeyboardVariant);
     3593    return E_NOTIMPL;
     3594}
     3595
     3596HRESULT Unattended::setKeyboardVariant(const com::Utf8Str &aKeyboardVariant)
     3597{
     3598    RT_NOREF(aKeyboardVariant);
     3599    return E_NOTIMPL;
     3600}
     3601
    35783602HRESULT Unattended::getLocale(com::Utf8Str &aLocale)
    35793603{
  • trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp

    r102360 r102381  
    288288}
    289289
     290HRESULT Unattended::getKeyboardLayout(com::Utf8Str &aKeyboardLayout)
     291{
     292    RT_NOREF(aKeyboardLayout);
     293    return E_NOTIMPL;
     294}
     295
     296HRESULT Unattended::setKeyboardLayout(const com::Utf8Str &aKeyboardLayout)
     297{
     298    RT_NOREF(aKeyboardLayout);
     299    return E_NOTIMPL;
     300}
     301
     302HRESULT Unattended::getKeyboardVariant(com::Utf8Str &aKeyboardVariant)
     303{
     304    RT_NOREF(aKeyboardVariant);
     305    return E_NOTIMPL;
     306}
     307
     308HRESULT Unattended::setKeyboardVariant(const com::Utf8Str &aKeyboardVariant)
     309{
     310    RT_NOREF(aKeyboardVariant);
     311    return E_NOTIMPL;
     312}
     313
    290314HRESULT Unattended::getLocale(com::Utf8Str &aLocale)
    291315{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette