VirtualBox

Changeset 94702 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 25, 2022 8:12:05 AM (3 years ago)
Author:
vboxsync
Message:

Main/Update check: Docs, renaming. ​​bugref:7983

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

Legend:

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

    r94700 r94702  
    6868     * @{ */
    6969    friend UpdateAgentTask;
    70     virtual DECLCALLBACK(HRESULT) i_updateTask(UpdateAgentTask *pTask) = 0;
     70    virtual DECLCALLBACK(HRESULT) i_checkForUpdateTask(UpdateAgentTask *pTask) = 0;
    7171    /** @} */
    7272
     
    191191    HRESULT checkFor(ComPtr<IProgress> &aProgress);
    192192
    193     DECLCALLBACK(HRESULT) i_updateTask(UpdateAgentTask *pTask);
     193    DECLCALLBACK(HRESULT) i_checkForUpdateTask(UpdateAgentTask *pTask);
    194194    /** @}  */
    195195
  • trunk/src/VBox/Main/src-server/UpdateAgentImpl.cpp

    r94701 r94702  
    5050*********************************************************************************************************************************/
    5151
     52/**
     53 * Base task class for asynchronous update agent tasks.
     54 */
    5255class UpdateAgentTask : public ThreadTask
    5356{
     
    7780    AssertPtr(pUpdateAgent);
    7881
    79     HRESULT rc = pUpdateAgent->i_updateTask(this);
     82    /** @todo Differentiate tasks once we have more stuff to do (downloading, installing, ++). */
     83
     84    HRESULT rc = pUpdateAgent->i_checkForUpdateTask(this);
    8085
    8186    if (!m_pProgress.isNull())
     
    9095*********************************************************************************************************************************/
    9196
     97/**
     98 * Returns platform information as a string.
     99 *
     100 * @returns HRESULT
     101 */
    92102/* static */
    93103Utf8Str UpdateAgentBase::i_getPlatformInfo(void)
     
    606616*********************************************************************************************************************************/
    607617
     618/**
     619 * Loads the settings of the update agent base class.
     620 *
     621 * @returns HRESULT
     622 * @param   data                Where to load the settings from.
     623 */
    608624HRESULT UpdateAgent::i_loadSettings(const settings::UpdateAgent &data)
    609625{
     
    625641}
    626642
     643/**
     644 * Saves the settings of the update agent base class.
     645 *
     646 * @returns HRESULT
     647 * @param   data                Where to save the settings to.
     648 */
    627649HRESULT UpdateAgent::i_saveSettings(settings::UpdateAgent &data)
    628650{
     
    637659}
    638660
     661/**
     662 * Sets the update check count.
     663 *
     664 * @returns HRESULT
     665 * @param   aCount              Update check count to set.
     666 */
    639667HRESULT UpdateAgent::i_setCheckCount(ULONG aCount)
    640668{
     
    649677}
    650678
     679/**
     680 * Sets the last update check date.
     681 *
     682 * @returns HRESULT
     683 * @param   aDate               Last update check date to set.
     684 *                              Must be in ISO 8601 format (e.g. 2020-05-11T21:13:39.348416000Z).
     685 */
    651686HRESULT UpdateAgent::i_setLastCheckDate(const com::Utf8Str &aDate)
    652687{
     
    660695    return i_commitSettings(alock);
    661696}
    662 
    663697
    664698/**
     
    723757}
    724758
    725 void HostUpdateAgent::uninit()
     759void HostUpdateAgent::uninit(void)
    726760{
    727761    // Enclose the state transition Ready->InUninit->NotReady.
     
    762796*********************************************************************************************************************************/
    763797
    764 DECLCALLBACK(HRESULT) HostUpdateAgent::i_updateTask(UpdateAgentTask *pTask)
     798/**
     799 * Task callback to perform an update check for the VirtualBox host (core).
     800 *
     801 * @returns HRESULT
     802 * @param   pTask               Associated update agent task to use.
     803 */
     804DECLCALLBACK(HRESULT) HostUpdateAgent::i_checkForUpdateTask(UpdateAgentTask *pTask)
    765805{
    766806    RT_NOREF(pTask);
     
    862902}
    863903
     904/**
     905 * Inner function of the actual update checking mechanism.
     906 *
     907 * @returns HRESULT
     908 * @param   hHttp               HTTP client instance to use for checking.
     909 * @param   strUrl              URL of repository to check.
     910 * @param   strUserAgent        HTTP user agent to use for checking.
     911 */
    864912HRESULT HostUpdateAgent::i_checkForUpdateInner(RTHTTP hHttp, Utf8Str const &strUrl, Utf8Str const &strUserAgent)
    865913{
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