VirtualBox

Changeset 78428 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 7, 2019 11:03:49 AM (6 years ago)
Author:
vboxsync
Message:

bugref:9416. The part of OCI import logic. New functions - OciRestClient::exportImage, createImageFromInstance; new API functions - ICloudClient::importInstance, getInstanceInfo; new helper classes - HandleRestBinaryResponse, DownloadSession; changes in the Appliance import and export parts.

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

Legend:

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

    r78255 r78428  
    102102    HRESULT createVFSExplorer(const com::Utf8Str &aURI,
    103103                              ComPtr<IVFSExplorer> &aExplorer);
    104     HRESULT createVirtualSystemDescriptions(ULONG aRequested, ULONG *aCreated);
    105104    HRESULT write(const com::Utf8Str &aFormat,
    106105                  const std::vector<ExportOptions_T> &aOptions,
     
    112111    HRESULT addPasswords(const std::vector<com::Utf8Str> &aIdentifiers,
    113112                         const std::vector<com::Utf8Str> &aPasswords);
    114 
     113    HRESULT createVirtualSystemDescriptions(ULONG aRequested, ULONG *aCreated);
    115114    /** weak VirtualBox parent */
    116115    VirtualBox* const mVirtualBox;
     
    124123    Data *m;
    125124
    126     enum SetUpProgressMode { ImportFile, ImportS3, WriteFile, WriteS3, ExportCloud };
     125    enum SetUpProgressMode { ImportFile, ImportS3, WriteFile, WriteS3, ExportCloud, ImportCloud };
    127126
    128127    /** @name General stuff
     
    143142    static void i_importOrExportThreadTask(TaskOVF *pTask);
    144143    static void i_exportOPCThreadTask(TaskOPC *pTask);
    145     static void i_exportCloudThreadTask(TaskCloud *pTask);
     144    static void i_importOrExportCloudThreadTask(TaskCloud *pTask);
    146145
    147146    HRESULT i_initBackendNames();
     
    171170    HRESULT i_readSignatureFile(TaskOVF *pTask, RTVFSIOSTREAM hIosCert, const char *pszSubFileNm);
    172171    HRESULT i_readTailProcessing(TaskOVF *pTask);
     172    HRESULT i_gettingCloudData(TaskCloud *pTask);
     173
    173174    /** @}  */
    174175
     
    215216    void    i_importDecompressFile(ImportStack &stack, Utf8Str const &rstrSrcPath, Utf8Str const &rstrDstPath,
    216217                                   const char *pszManifestEntry);
     218    HRESULT i_importCloudImpl(TaskCloud *pTask);
    217219    /** @} */
    218220
     
    228230    HRESULT i_writeFSOVA(TaskOVF *pTask, AutoWriteLockBase& writeLock);
    229231    HRESULT i_writeFSOPC(TaskOPC *pTask);
    230     HRESULT i_writeFSCloud(TaskCloud *pTask);
     232    HRESULT i_exportCloudImpl(TaskCloud *pTask);
    231233    HRESULT i_writeFSImpl(TaskOVF *pTask, AutoWriteLockBase &writeLock, RTVFSFSSTREAM hVfsFssDst);
    232234    HRESULT i_writeBufferToFile(RTVFSFSSTREAM hVfsFssDst, const char *pszFilename, const void *pvContent, size_t cbContent);
  • trunk/src/VBox/Main/include/ApplianceImplPrivate.h

    r76562 r78428  
    339339    enum TaskType
    340340    {
    341         Export
     341        Export,
     342        Import,
     343        ReadData
    342344    };
    343345
     
    353355        rc(S_OK)
    354356    {
    355         m_strTaskName = "CloudExpt";
     357        switch (taskType)
     358        {
     359            case TaskCloud::Export:    m_strTaskName = "CloudExpt"; break;
     360            case TaskCloud::Import:    m_strTaskName = "CloudImpt"; break;
     361            case TaskCloud::ReadData:  m_strTaskName = "CloudRead"; break;
     362            default:                   m_strTaskName = "CloudTask"; break;
     363        }
    356364    }
    357365
     
    371379    void handler()
    372380    {
    373         Appliance::i_exportCloudThreadTask(this);
     381        Appliance::i_importOrExportCloudThreadTask(this);
    374382    }
    375383};
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