Changeset 94702 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 25, 2022 8:12:05 AM (3 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/UpdateAgentImpl.h
r94700 r94702 68 68 * @{ */ 69 69 friend UpdateAgentTask; 70 virtual DECLCALLBACK(HRESULT) i_ updateTask(UpdateAgentTask *pTask) = 0;70 virtual DECLCALLBACK(HRESULT) i_checkForUpdateTask(UpdateAgentTask *pTask) = 0; 71 71 /** @} */ 72 72 … … 191 191 HRESULT checkFor(ComPtr<IProgress> &aProgress); 192 192 193 DECLCALLBACK(HRESULT) i_ updateTask(UpdateAgentTask *pTask);193 DECLCALLBACK(HRESULT) i_checkForUpdateTask(UpdateAgentTask *pTask); 194 194 /** @} */ 195 195 -
trunk/src/VBox/Main/src-server/UpdateAgentImpl.cpp
r94701 r94702 50 50 *********************************************************************************************************************************/ 51 51 52 /** 53 * Base task class for asynchronous update agent tasks. 54 */ 52 55 class UpdateAgentTask : public ThreadTask 53 56 { … … 77 80 AssertPtr(pUpdateAgent); 78 81 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); 80 85 81 86 if (!m_pProgress.isNull()) … … 90 95 *********************************************************************************************************************************/ 91 96 97 /** 98 * Returns platform information as a string. 99 * 100 * @returns HRESULT 101 */ 92 102 /* static */ 93 103 Utf8Str UpdateAgentBase::i_getPlatformInfo(void) … … 606 616 *********************************************************************************************************************************/ 607 617 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 */ 608 624 HRESULT UpdateAgent::i_loadSettings(const settings::UpdateAgent &data) 609 625 { … … 625 641 } 626 642 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 */ 627 649 HRESULT UpdateAgent::i_saveSettings(settings::UpdateAgent &data) 628 650 { … … 637 659 } 638 660 661 /** 662 * Sets the update check count. 663 * 664 * @returns HRESULT 665 * @param aCount Update check count to set. 666 */ 639 667 HRESULT UpdateAgent::i_setCheckCount(ULONG aCount) 640 668 { … … 649 677 } 650 678 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 */ 651 686 HRESULT UpdateAgent::i_setLastCheckDate(const com::Utf8Str &aDate) 652 687 { … … 660 695 return i_commitSettings(alock); 661 696 } 662 663 697 664 698 /** … … 723 757 } 724 758 725 void HostUpdateAgent::uninit( )759 void HostUpdateAgent::uninit(void) 726 760 { 727 761 // Enclose the state transition Ready->InUninit->NotReady. … … 762 796 *********************************************************************************************************************************/ 763 797 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 */ 804 DECLCALLBACK(HRESULT) HostUpdateAgent::i_checkForUpdateTask(UpdateAgentTask *pTask) 765 805 { 766 806 RT_NOREF(pTask); … … 862 902 } 863 903 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 */ 864 912 HRESULT HostUpdateAgent::i_checkForUpdateInner(RTHTTP hHttp, Utf8Str const &strUrl, Utf8Str const &strUserAgent) 865 913 {
Note:
See TracChangeset
for help on using the changeset viewer.