VirtualBox

Changeset 74146 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 7, 2018 5:08:21 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124918
Message:

OCI: POC on setting Progress data from ExtPack. Shows fake data, but works OK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r74136 r74146  
    10011001        }
    10021002
     1003#ifndef VBOX_WITH_CLOUD_PROVIDERS_NO_COMMANDS
    10031004        SetUpProgressMode mode = ExportOCI;
    10041005
     
    10081009        if (FAILED(rc))
    10091010            return rc;
    1010 
     1011#else
     1012        // we need to do that as otherwise Task won't be created successfully
     1013        aProgress.createObject();
     1014#endif
    10111015        // Initialize our worker task
    10121016        TaskOCI* task = NULL;
     
    24782482        LogRel(("Appliance::i_writeFSOCI(): calling OCICloudClient::exportVM\n"));
    24792483
     2484        /// @todo that's to be moved to ExpTack, but we need to have that method
     2485        /// exposed in .xidl
    24802486        if (m->virtualSystemDescriptions.size() == 1) {
     2487            pTask->pProgress->init(mVirtualBox, static_cast<IAppliance*>(this),
     2488                         Bstr("Test progress").raw(),
     2489                         TRUE /* aCancelable */,
     2490                         5, // ULONG cOperations,
     2491                         100, // ULONG ulTotalOperationsWeight,
     2492                         Bstr("Do something").raw(), // aFirstOperationDescription
     2493                         25); // ULONG ulFirstOperationWeight,
     2494
    24812495            cloudClient->ExportVM(m->virtualSystemDescriptions.front(), pTask->pProgress);
    24822496        } else {
    2483             /// @todo Fail here with user notification. We do export 1 VM only
    2484         }
     2497            /// @todo Fail here with user notification. We do export 1 VM only        }
    24852498    }
    24862499#endif
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