SnapshotImpl.cpp revision ce301280f2c2614b2101123e9f5819bfd46cc075
a9be0b7162b90cfed2910a8fb8a6032064b28967vboxsync * VirtualBox COM class implementation
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync * available from http://www.virtualbox.org. This file is free software;
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * additional information or have any questions.
a9be0b7162b90cfed2910a8fb8a6032064b28967vboxsync// private snapshot data
a9be0b7162b90cfed2910a8fb8a6032064b28967vboxsync////////////////////////////////////////////////////////////////////////////////
a9be0b7162b90cfed2910a8fb8a6032064b28967vboxsynctypedef std::list< ComPtr<Snapshot> > SnapshotsList;
Data()
~Data()
return S_OK;
uninit();
m = new Data;
if (aParent)
return S_OK;
++it)
if (mParent)
++ it)
if (this == pParentsChild)
if (m->pMachine)
++it)
if (mParent)
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
return S_OK;
++it)
return count;
return getAllChildrenCountImpl();
return m->id;
return m->name;
return m->timeStamp;
child = this;
++it)
return child;
child = this;
++it)
return child;
++it)
using namespace settings;
if (!aAttrsOnly)
if (aAttrsOnly)
return S_OK;
if (stateFilePath())
++it)
return S_OK;