VirtualBox

source: vbox/trunk/src/VBox/Main/include/MachineImplCloneVM.h@ 38038

Last change on this file since 38038 was 37971, checked in by vboxsync, 14 years ago

Main/Machine: implement creating linked clones.
Frontends/VBoxManage: enable creating linked clones

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/** @file
2 * Definition of MachineCloneVM
3 */
4
5/*
6 * Copyright (C) 2011 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef ____H_MACHINEIMPLCLONEVM
18#define ____H_MACHINEIMPLCLONEVM
19
20#include "MachineImpl.h"
21#include "ProgressImpl.h"
22
23/* Forward declaration of the d-pointer. */
24struct MachineCloneVMPrivate;
25
26class MachineCloneVM
27{
28public:
29 MachineCloneVM(ComObjPtr<Machine> pSrcMachine, ComObjPtr<Machine> pTrgMachine, CloneMode_T mode, const RTCList<CloneOptions_T> &opts);
30 ~MachineCloneVM();
31
32 HRESULT start(IProgress **pProgress);
33
34protected:
35 HRESULT run();
36 HRESULT createDiffHelper(const ComObjPtr<Medium> &pParent,
37 const Utf8Str &strSnapshotFolder,
38 RTCList<ComObjPtr<Medium> > *pNewMedia,
39 ComObjPtr<Medium> *ppDiff);
40 void destroy();
41
42 /* d-pointer */
43 MachineCloneVM(MachineCloneVMPrivate &d);
44 MachineCloneVMPrivate *d_ptr;
45
46 friend struct MachineCloneVMPrivate;
47};
48
49#endif // ____H_MACHINEIMPLCLONEVM
50/* vi: set tabstop=4 shiftwidth=4 expandtab: */
51
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette