VirtualBox

Ignore:
Timestamp:
Dec 2, 2009 5:37:39 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55574
Message:

Main: kill VirtualBoxBaseWithTypedChildren template and rework Medium to no longer use it; adjust Snapshot for consistency

File:
1 edited

Legend:

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

    r24196 r25152  
    7373    void beginDiscard();
    7474
     75    void deparent();
     76
    7577    // ISnapshot properties
    7678    STDMETHOD(COMGETTER(Id)) (BSTR *aId);
     
    8890
    8991    // public methods only for internal purposes
     92    const ComObjPtr<Snapshot>& getParent() const;
    9093
    9194    const Utf8Str& stateFilePath() const;
    92 
    93     ComObjPtr<Snapshot> parent() const
    94     {
    95         return (Snapshot*)mParent;
    96     }
    9795
    9896    ULONG getChildrenCount();
     
    10098    ULONG getAllChildrenCountImpl();
    10199
    102     ComPtr<SnapshotMachine> getSnapshotMachine();
     100    const ComObjPtr<SnapshotMachine>& getSnapshotMachine() const;
    103101
    104102    Guid getId() const;
     
    124122
    125123private:
    126 
    127     /** weak VirtualBox parent */
    128     const ComObjPtr<VirtualBox, ComWeakRef> mVirtualBox;
    129 
    130     ComObjPtr<Snapshot, ComWeakRef> mParent;
    131 
    132124    struct Data;            // opaque, defined in SnapshotImpl.cpp
    133125    Data *m;
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