VirtualBox

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


Ignore:
Timestamp:
Aug 3, 2010 1:00:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64371
Message:

Main: rework new implementation of Machine::Unregister() and Machine::Delete() to be more flexible and still easy to use

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

Legend:

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

    r31332 r31333  
    181181        ComObjPtr<Snapshot> mFirstSnapshot;
    182182        ComObjPtr<Snapshot> mCurrentSnapshot;
     183
     184        // list of files to delete in Delete(); this list is filled by Unregister()
     185        std::list<Utf8Str>  llFilesToDelete;
    183186    };
    184187
     
    484487    STDMETHOD(SaveSettings)();
    485488    STDMETHOD(DiscardSettings)();
    486     STDMETHOD(Unregister) (BOOL fAutoCleanup, ComSafeArrayOut(BSTR, aFiles));
    487     STDMETHOD(Delete)();
     489    STDMETHOD(Unregister)(CleanupMode_T cleanupMode, ComSafeArrayOut(IMedium*, aMedia));
     490    STDMETHOD(Delete)(ComSafeArrayIn(IMedium*, aMedia), IProgress **aProgress);
    488491    STDMETHOD(Export)(IAppliance *aAppliance, IVirtualSystemDescription **aDescription);
    489492    STDMETHOD(GetSnapshot)(IN_BSTR aId, ISnapshot **aSnapshot);
     
    782785    HRESULT detachAllMedia(AutoWriteLock &writeLock,
    783786                           Snapshot *pSnapshot,
     787                           CleanupMode_T cleanupMode,
    784788                           MediaList &llMedia);
    785789
     
    792796    void commit();
    793797    void copyFrom(Machine *aThat);
     798
     799    struct DeleteTask;
     800    static DECLCALLBACK(int) deleteThread(RTTHREAD Thread, void *pvUser);
     801    HRESULT deleteTaskWorker(DeleteTask &task);
    794802
    795803#ifdef VBOX_WITH_GUEST_PROPS
  • trunk/src/VBox/Main/include/SnapshotImpl.h

    r31228 r31333  
    125125
    126126    HRESULT uninitRecursively(AutoWriteLock &writeLock,
     127                              CleanupMode_T cleanupMode,
    127128                              MediaList &llMedia,
    128129                              std::list<Utf8Str> &llFilenames);
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