VirtualBox

Ignore:
Timestamp:
Dec 7, 2010 2:51:18 PM (14 years ago)
Author:
vboxsync
Message:

Main,VBoxManage,FE/Qt: Implemented IExtPackFile and dropped IExtPackManager::Install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r34610 r34787  
    2121*******************************************************************************/
    2222#ifndef VBOX_ONLY_DOCS
    23 #include <VBox/com/com.h>
    24 #include <VBox/com/string.h>
    25 #include <VBox/com/Guid.h>
    26 #include <VBox/com/array.h>
    27 #include <VBox/com/ErrorInfo.h>
    28 #include <VBox/com/errorprint.h>
    29 #include <VBox/com/EventQueue.h>
    30 
    31 #include <VBox/com/VirtualBox.h>
     23# include <VBox/com/com.h>
     24# include <VBox/com/string.h>
     25# include <VBox/com/Guid.h>
     26# include <VBox/com/array.h>
     27# include <VBox/com/ErrorInfo.h>
     28# include <VBox/com/errorprint.h>
     29# include <VBox/com/EventQueue.h>
     30
     31# include <VBox/com/VirtualBox.h>
    3232#endif /* !VBOX_ONLY_DOCS */
    3333
     
    912912        Bstr bstrTarball(szPath);
    913913        Bstr bstrName;
    914         CHECK_ERROR2_RET(ptrExtPackMgr, Install(bstrTarball.raw(), bstrName.asOutParam()), RTEXITCODE_FAILURE);
     914        ComPtr<IExtPackFile> ptrExtPackFile;
     915        CHECK_ERROR2_RET(ptrExtPackMgr, OpenExtPackFile(bstrTarball.raw(), ptrExtPackFile.asOutParam()), RTEXITCODE_FAILURE);
     916        CHECK_ERROR2_RET(ptrExtPackFile, COMGETTER(Name)(bstrName.asOutParam()), RTEXITCODE_FAILURE);
     917        CHECK_ERROR2_RET(ptrExtPackFile, Install(), RTEXITCODE_FAILURE);
    915918        RTPrintf("Successfully installed \"%lS\".\n", bstrName.raw());
    916919    }
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