VirtualBox

Changeset 94647 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 20, 2022 10:12:17 AM (3 years ago)
Author:
vboxsync
Message:

Main/Update check: Big overhaul of the API and functionality [build fix]. bugref:7983

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/UpdateAgentImpl.h

    r94646 r94647  
    6868    /** @name Wrapped IUpdateAgent attributes and methods
    6969     * @{ */
    70     virtual HRESULT check(ComPtr<IProgress> &aProgress);
     70    virtual HRESULT check(ComPtr<IProgress> &aProgress) = 0;
    7171    virtual HRESULT download(ComPtr<IProgress> &aProgress);
    7272    virtual HRESULT install(ComPtr<IProgress> &aProgress);
    73     virtual HRESULT rollback(void) RT_OVERRIDE;
     73    virtual HRESULT rollback(void);
    7474
    7575    virtual HRESULT getName(com::Utf8Str &aName);
     
    157157    /** @name Implemented (pure) virtual methods from UpdateAgent.
    158158     * @{ */
    159     HRESULT check(ComPtr<IProgress> &aProgress);
     159    virtual HRESULT check(ComPtr<IProgress> &aProgress);
    160160    /** @}  */
    161161
    162 #ifdef VBOX_WITH_UPDATE_AGENT
    163162    HRESULT i_updateAgentTask(UpdateAgentTask *pTask);
    164163    HRESULT i_checkForUpdate(void);
    165164    HRESULT i_checkForUpdateInner(RTHTTP hHttp, com::Utf8Str const &strUrl, com::Utf8Str const &strUserAgent);
    166 #endif
    167165};
    168166
  • trunk/src/VBox/Main/src-server/UpdateAgentImpl.cpp

    r94643 r94647  
    151151HRESULT UpdateAgent::rollback(void)
    152152{
    153     return S_OK; /* No-op by default. */
     153    return VBOX_E_NOT_SUPPORTED;
    154154}
    155155
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