VirtualBox

Changeset 84645 in vbox


Ignore:
Timestamp:
Jun 2, 2020 5:21:10 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138396
Message:

OCI: (bugref:9469) partial proxy implementation.

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp

    r84644 r84645  
    22962296    if (aProxy.isNotEmpty())
    22972297    {
    2298         hrc = unattended->COMSETTER(ExtraInstallKernelParameters)(BstrFmt(" ks=cdrom:/ks.cfg proxy=\"%ls\"", aProxy.raw()).raw());
     2298        hrc = unattended->COMSETTER(Proxy)(aProxy.raw());
    22992299        if (errorOccured(hrc, "Failed to set post install script template for the unattended installer."))
    23002300            return hrc;
  • trunk/src/VBox/Main/include/UnattendedImpl.h

    r82968 r84645  
    5656    Utf8Str const &i_getFullUserName() const;
    5757    Utf8Str const &i_getProductKey() const;
     58    Utf8Str const &i_getProxy() const;
    5859    Utf8Str const &i_getAdditionsIsoPath() const;
    5960    bool           i_getInstallGuestAdditions() const;
     
    122123    RTCList<RTCString, RTCString *> mDetectedOSLanguages; /**< (only relevant for windows at the moment) */
    123124    Utf8Str         mStrDetectedOSHints;
     125    Utf8Str         mStrProxy;
    124126    /** @} */
    125127
  • 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