VirtualBox

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


Ignore:
Timestamp:
Dec 7, 2010 2:51:18 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68597
Message:

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

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

Legend:

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

    r34714 r34787  
    4646    HRESULT     FinalConstruct();
    4747    void        FinalRelease();
    48     HRESULT     initWithFile(const char *a_pszFile);
     48    HRESULT     initWithFile(const char *a_pszFile, class ExtPackManager *a_pExtPackMgr);
    4949    void        uninit();
     50    RTMEMEF_NEW_AND_DELETE_OPERATORS();
    5051    /** @}  */
    5152
     
    6768    STDMETHOD(Install)(void);
    6869    /** @}  */
     70
     71private:
     72    /** @name Misc init helpers
     73     * @{ */
     74    HRESULT     initFailed(const char *a_pszWhyFmt, ...);
     75    /** @} */
    6976
    7077private:
     
    102109    HRESULT     initWithDir(VBOXEXTPACKCTX a_enmContext, const char *a_pszName, const char *a_pszDir);
    103110    void        uninit();
     111    RTMEMEF_NEW_AND_DELETE_OPERATORS();
    104112    /** @}  */
    105113
     
    188196                     VBOXEXTPACKCTX a_enmContext);
    189197    void        uninit();
     198    RTMEMEF_NEW_AND_DELETE_OPERATORS();
    190199    /** @}  */
    191200
     
    195204    STDMETHOD(Find)(IN_BSTR a_bstrName, IExtPack **a_pExtPack);
    196205    STDMETHOD(OpenExtPackFile)(IN_BSTR a_bstrTarball, IExtPackFile **a_ppExtPackFile);
    197     STDMETHOD(Install)(IN_BSTR a_bstrTarball, BSTR *a_pbstrName);
    198206    STDMETHOD(Uninstall)(IN_BSTR a_bstrName, BOOL a_fForcedRemoval);
    199207    STDMETHOD(Cleanup)(void);
     
    203211    /** @name Internal interfaces used by other Main classes.
    204212     * @{ */
    205     void        processDropZone(void);
     213    HRESULT     doInstall(ExtPackFile *a_pExtPackFile);
     214    /*void        processDropZone(void);*/
    206215    void        callAllVirtualBoxReadyHooks(void);
    207216    void        callAllConsoleReadyHooks(IConsole *a_pConsole);
  • trunk/src/VBox/Main/include/ExtPackUtil.h

    r34579 r34787  
    2121#include <iprt/cpp/ministring.h>
    2222#include <iprt/fs.h>
     23#include <iprt/vfs.h>
    2324
    2425
     
    4748 * certificates are installed.  Relative to RTPathAppPrivateNoArch. */
    4849#define VBOX_EXTPACK_CERT_DIR           "ExtPackCertificates"
     50
     51/** The maximum entry name length.
     52 * Play short and safe. */
     53#define VBOX_EXTPACK_MAX_MEMBER_NAME_LENGTH 128
    4954
    5055
     
    98103
    99104iprt::MiniString   *VBoxExtPackLoadDesc(const char *a_pszDir, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo);
     105iprt::MiniString   *VBoxExtPackLoadDescFromVfsFile(RTVFSFILE hVfsFile, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo);
    100106iprt::MiniString   *VBoxExtPackExtractNameFromTarballPath(const char *pszTarball);
    101107void                VBoxExtPackFreeDesc(PVBOXEXTPACKDESC a_pExtPackDesc);
     
    108114bool                VBoxExtPackIsValidModuleString(const char *pszModule);
    109115
     116int                 VBoxExtPackValidateMember(const char *pszName, RTVFSOBJTYPE enmType, RTVFSOBJ hVfsObj, char *pszError, size_t cbError);
     117int                 VBoxExtPackOpenTarFss(RTFILE hTarballFile, char *pszError, size_t cbError, PRTVFSFSSTREAM phTarFss);
     118int                 VBoxExtPackValidateTarball(RTFILE hTarballFile, const char *pszExtPackName, const char *pszTarball,
     119                                               char *pszError, size_t cbError, PRTMANIFEST phValidManifest, PRTVFSFILE phXmlFile);
     120
    110121
    111122#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