[55401] | 1 | /* $Id: MachineImplCloneVM.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
[1] | 2 | /** @file
|
---|
[37491] | 3 | * Definition of MachineCloneVM
|
---|
[1] | 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
[98103] | 7 | * Copyright (C) 2011-2023 Oracle and/or its affiliates.
|
---|
[1] | 8 | *
|
---|
[96407] | 9 | * This file is part of VirtualBox base platform packages, as
|
---|
| 10 | * available from https://www.virtualbox.org.
|
---|
| 11 | *
|
---|
| 12 | * This program is free software; you can redistribute it and/or
|
---|
| 13 | * modify it under the terms of the GNU General Public License
|
---|
| 14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
| 15 | * License.
|
---|
| 16 | *
|
---|
| 17 | * This program is distributed in the hope that it will be useful, but
|
---|
| 18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 20 | * General Public License for more details.
|
---|
| 21 | *
|
---|
| 22 | * You should have received a copy of the GNU General Public License
|
---|
| 23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 24 | *
|
---|
| 25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
[1] | 26 | */
|
---|
| 27 |
|
---|
[76562] | 28 | #ifndef MAIN_INCLUDED_MachineImplCloneVM_h
|
---|
| 29 | #define MAIN_INCLUDED_MachineImplCloneVM_h
|
---|
[76487] | 30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
| 31 | # pragma once
|
---|
| 32 | #endif
|
---|
[1] | 33 |
|
---|
[37491] | 34 | #include "MachineImpl.h"
|
---|
[33848] | 35 | #include "ProgressImpl.h"
|
---|
[1] | 36 |
|
---|
[37491] | 37 | /* Forward declaration of the d-pointer. */
|
---|
| 38 | struct MachineCloneVMPrivate;
|
---|
[1] | 39 |
|
---|
[91312] | 40 | class MachineCloneVM
|
---|
[30764] | 41 | {
|
---|
[1] | 42 | public:
|
---|
[90828] | 43 | DECLARE_TRANSLATE_METHODS(MachineCloneVM)
|
---|
| 44 |
|
---|
[37531] | 45 | MachineCloneVM(ComObjPtr<Machine> pSrcMachine, ComObjPtr<Machine> pTrgMachine, CloneMode_T mode, const RTCList<CloneOptions_T> &opts);
|
---|
[37491] | 46 | ~MachineCloneVM();
|
---|
[1] | 47 |
|
---|
[37491] | 48 | HRESULT start(IProgress **pProgress);
|
---|
[26046] | 49 |
|
---|
[22173] | 50 | protected:
|
---|
[37491] | 51 | HRESULT run();
|
---|
| 52 | void destroy();
|
---|
[22173] | 53 |
|
---|
[37491] | 54 | /* d-pointer */
|
---|
| 55 | MachineCloneVM(MachineCloneVMPrivate &d);
|
---|
| 56 | MachineCloneVMPrivate *d_ptr;
|
---|
[1] | 57 |
|
---|
[37533] | 58 | friend struct MachineCloneVMPrivate;
|
---|
[1] | 59 | };
|
---|
| 60 |
|
---|
[76562] | 61 | #endif /* !MAIN_INCLUDED_MachineImplCloneVM_h */
|
---|
[37491] | 62 | /* vi: set tabstop=4 shiftwidth=4 expandtab: */
|
---|
[1] | 63 |
|
---|