Changeset 92897 in vbox for trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
- Timestamp:
- Dec 14, 2021 1:53:27 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148852
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r92822 r92897 5 5 6 6 /* 7 * Copyright (C) 2012-202 0Oracle Corporation7 * Copyright (C) 2012-2021 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 91 91 } 92 92 93 /** 94 * Creates (and initializes / sets) the progress objects of a guest session task. 95 * 96 * @returns VBox status code. 97 * @param cOperations Number of operation the task wants to perform. 98 */ 93 99 int GuestSessionTask::createAndSetProgressObject(ULONG cOperations /* = 1 */) 94 100 { … … 128 134 #endif 129 135 136 /** 137 * Gets a guest property from the VM. 138 * 139 * @returns VBox status code. 140 * @param pGuest Guest object of VM to get guest property from. 141 * @param strPath Guest property to path to get. 142 * @param strValue Where to store the guest property value on success. 143 */ 130 144 int GuestSessionTask::getGuestProperty(const ComObjPtr<Guest> &pGuest, 131 145 const Utf8Str &strPath, Utf8Str &strValue) … … 148 162 } 149 163 164 /** 165 * Sets the percentage of a guest session task progress. 166 * 167 * @returns VBox status code. 168 * @param uPercent Percentage (0-100) to set. 169 */ 150 170 int GuestSessionTask::setProgress(ULONG uPercent) 151 171 { … … 171 191 } 172 192 193 /** 194 * Sets the task's progress object to succeeded. 195 * 196 * @returns VBox status code. 197 */ 173 198 int GuestSessionTask::setProgressSuccess(void) 174 199 { … … 1334 1359 } 1335 1360 1361 /** @copydoc GuestSessionTask::Run */ 1336 1362 int GuestSessionTaskOpen::Run(void) 1337 1363 { … … 1382 1408 } 1383 1409 1410 /** 1411 * Initializes a copy-from-guest task. 1412 * 1413 * @returns HRESULT 1414 * @param strTaskDesc Friendly task description. 1415 */ 1384 1416 HRESULT GuestSessionTaskCopyFrom::Init(const Utf8Str &strTaskDesc) 1385 1417 { … … 1544 1576 } 1545 1577 1578 /** @copydoc GuestSessionTask::Run */ 1546 1579 int GuestSessionTaskCopyFrom::Run(void) 1547 1580 { … … 1676 1709 } 1677 1710 1711 /** 1712 * Initializes a copy-to-guest task. 1713 * 1714 * @returns HRESULT 1715 * @param strTaskDesc Friendly task description. 1716 */ 1678 1717 HRESULT GuestSessionTaskCopyTo::Init(const Utf8Str &strTaskDesc) 1679 1718 { … … 1813 1852 } 1814 1853 1854 /** @copydoc GuestSessionTask::Run */ 1815 1855 int GuestSessionTaskCopyTo::Run(void) 1816 1856 { … … 2064 2104 } 2065 2105 2106 /** 2107 * Adds arguments to existing process arguments. 2108 * Identical / already existing arguments will be filtered out. 2109 * 2110 * @returns VBox status code. 2111 * @param aArgumentsDest Destination to add arguments to. 2112 * @param aArgumentsSource Arguments to add. 2113 */ 2066 2114 int GuestSessionTaskUpdateAdditions::addProcessArguments(ProcessArguments &aArgumentsDest, const ProcessArguments &aArgumentsSource) 2067 2115 { … … 2102 2150 } 2103 2151 2152 /** 2153 * Helper function to copy a file from a VISO to the guest. 2154 * 2155 * @returns VBox status code. 2156 * @param pSession Guest session to use. 2157 * @param hVfsIso VISO handle to use. 2158 * @param strFileSrc Source file path on VISO to copy. 2159 * @param strFileDst Destination file path on guest. 2160 * @param fOptional When set to \c true, the file is optional, i.e. can be skipped 2161 * when not found, \c false if not. 2162 */ 2104 2163 int GuestSessionTaskUpdateAdditions::copyFileToGuest(GuestSession *pSession, RTVFS hVfsIso, 2105 2164 Utf8Str const &strFileSrc, const Utf8Str &strFileDst, bool fOptional) … … 2160 2219 } 2161 2220 2221 /** 2222 * Helper function to run (start) a file on the guest. 2223 * 2224 * @returns VBox status code. 2225 * @param pSession Guest session to use. 2226 * @param procInfo Guest process startup info to use. 2227 */ 2162 2228 int GuestSessionTaskUpdateAdditions::runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo) 2163 2229 { … … 2209 2275 } 2210 2276 2277 /** @copydoc GuestSessionTask::Run */ 2211 2278 int GuestSessionTaskUpdateAdditions::Run(void) 2212 2279 {
Note:
See TracChangeset
for help on using the changeset viewer.