VirtualBox

Changeset 84645 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jun 2, 2020 5:21:10 PM (5 years ago)
Author:
vboxsync
Message:

OCI: (bugref:9469) partial proxy implementation.

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r84564 r84645  
    22132213{
    22142214    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    2215     aProxy = ""; /// @todo turn schema map into string or something.
     2215    aProxy = mStrProxy; /// @todo turn schema map into string or something.
    22162216    return S_OK;
    22172217}
     
    22282228    {
    22292229        /* clear proxy config */
     2230        mStrProxy = "";
    22302231    }
    22312232    else
    22322233    {
    2233         /* Parse and set proxy config into a schema map or something along those lines. */
    2234         return E_NOTIMPL;
     2234        /** @todo Parse and set proxy config into a schema map or something along those lines. */
     2235        // return E_NOTIMPL;
     2236        mStrProxy = aProxy;
    22352237    }
    22362238    return S_OK;
     
    25452547}
    25462548
     2549Utf8Str const &Unattended::i_getProxy() const
     2550{
     2551    Assert(isReadLockedOnCurrentThread());
     2552    return mStrProxy;
     2553}
     2554
    25472555Utf8Str const &Unattended::i_getAdditionsIsoPath() const
    25482556{
  • trunk/src/VBox/Main/src-server/UnattendedScript.cpp

    r84564 r84645  
    418418    else if (IS_PLACEHOLDER_MATCH("HOSTNAME_DOMAIN"))
    419419        rValue.assign(mpUnattended->i_getHostname(), mpUnattended->i_getHostname().find(".") + 1);
     420    else if (IS_PLACEHOLDER_MATCH("PROXY"))
     421        rValue = mpUnattended->i_getProxy();
    420422    else
    421423    {
     
    469471    else if (IS_PLACEHOLDER_MATCH("IS_NOT_RTC_USING_UTC"))
    470472        *pfOutputting = !mpUnattended->i_isRtcUsingUtc();
     473    else if (IS_PLACEHOLDER_MATCH("HAS_PROXY"))
     474        *pfOutputting = mpUnattended->i_getProxy().isNotEmpty();
    471475    else
    472476        return mpSetError->setErrorBoth(E_FAIL, VERR_NOT_FOUND, mpSetError->tr("Unknown conditional placeholder '%.*s'"),
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