VirtualBox

Ignore:
Timestamp:
Dec 14, 2021 1:53:27 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148852
Message:

Guest Control/Main: Added lots of missing docs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r92822 r92897  
    55
    66/*
    7  * Copyright (C) 2012-2020 Oracle Corporation
     7 * Copyright (C) 2012-2021 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    9191}
    9292
     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 */
    9399int GuestSessionTask::createAndSetProgressObject(ULONG cOperations /* = 1 */)
    94100{
     
    128134#endif
    129135
     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 */
    130144int GuestSessionTask::getGuestProperty(const ComObjPtr<Guest> &pGuest,
    131145                                       const Utf8Str &strPath, Utf8Str &strValue)
     
    148162}
    149163
     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 */
    150170int GuestSessionTask::setProgress(ULONG uPercent)
    151171{
     
    171191}
    172192
     193/**
     194 * Sets the task's progress object to succeeded.
     195 *
     196 * @returns VBox status code.
     197 */
    173198int GuestSessionTask::setProgressSuccess(void)
    174199{
     
    13341359}
    13351360
     1361/** @copydoc GuestSessionTask::Run */
    13361362int GuestSessionTaskOpen::Run(void)
    13371363{
     
    13821408}
    13831409
     1410/**
     1411 * Initializes a copy-from-guest task.
     1412 *
     1413 * @returns HRESULT
     1414 * @param   strTaskDesc         Friendly task description.
     1415 */
    13841416HRESULT GuestSessionTaskCopyFrom::Init(const Utf8Str &strTaskDesc)
    13851417{
     
    15441576}
    15451577
     1578/** @copydoc GuestSessionTask::Run */
    15461579int GuestSessionTaskCopyFrom::Run(void)
    15471580{
     
    16761709}
    16771710
     1711/**
     1712 * Initializes a copy-to-guest task.
     1713 *
     1714 * @returns HRESULT
     1715 * @param   strTaskDesc         Friendly task description.
     1716 */
    16781717HRESULT GuestSessionTaskCopyTo::Init(const Utf8Str &strTaskDesc)
    16791718{
     
    18131852}
    18141853
     1854/** @copydoc GuestSessionTask::Run */
    18151855int GuestSessionTaskCopyTo::Run(void)
    18161856{
     
    20642104}
    20652105
     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 */
    20662114int GuestSessionTaskUpdateAdditions::addProcessArguments(ProcessArguments &aArgumentsDest, const ProcessArguments &aArgumentsSource)
    20672115{
     
    21022150}
    21032151
     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 */
    21042163int GuestSessionTaskUpdateAdditions::copyFileToGuest(GuestSession *pSession, RTVFS hVfsIso,
    21052164                                                     Utf8Str const &strFileSrc, const Utf8Str &strFileDst, bool fOptional)
     
    21602219}
    21612220
     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 */
    21622228int GuestSessionTaskUpdateAdditions::runFileOnGuest(GuestSession *pSession, GuestProcessStartupInfo &procInfo)
    21632229{
     
    22092275}
    22102276
     2277/** @copydoc GuestSessionTask::Run */
    22112278int GuestSessionTaskUpdateAdditions::Run(void)
    22122279{
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette