VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.h@ 104158

Last change on this file since 104158 was 103982, checked in by vboxsync, 11 months ago

FE/Qt: bugref:10624. Replacing override and final keywords with RT_OVERRIDE and RT_FINAL defines.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1/* $Id: UIWizardCloneVD.h 103982 2024-03-21 11:43:53Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardCloneVD class declaration.
4 */
5
6/*
7 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
8 *
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
26 */
27
28#ifndef FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVD_h
29#define FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVD_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* GUI includes: */
35#include "UINativeWizard.h"
36
37/* COM includes: */
38#include "CMedium.h"
39#include "CMediumFormat.h"
40
41/* Forward declarations: */
42class QUuid;
43
44/** Clone Virtual Disk wizard: */
45class UIWizardCloneVD : public UINativeWizard
46{
47 Q_OBJECT;
48
49public:
50
51 /** Constructs wizard to clone medium referenced by @a uMediumId, passing @a pParent to the base-class. */
52 UIWizardCloneVD(QWidget *pParent, const QUuid &uMediumId);
53
54 /** Returns source virtual-disk. */
55 const CMedium &sourceVirtualDisk() const;
56
57 /** Makes a copy of source virtual-disk. */
58 bool copyVirtualDisk();
59
60 /** @name Parameter setter/getters
61 * @{ */
62 /** Returns the source virtual-disk device type. */
63 KDeviceType deviceType() const;
64
65 const CMediumFormat &mediumFormat() const;
66 void setMediumFormat(const CMediumFormat &comMediumFormat);
67
68 qulonglong mediumVariant() const;
69 void setMediumVariant(qulonglong uMediumVariant);
70
71 qulonglong mediumSize() const;
72 void setMediumSize(qulonglong uMediumSize);
73
74 const QString &mediumPath() const;
75 void setMediumPath(const QString &strPath);
76
77 qulonglong sourceDiskLogicalSize() const;
78 QString sourceDiskFilePath() const;
79 QString sourceDiskName() const;
80 /** @} */
81
82protected:
83
84 virtual void populatePages() RT_OVERRIDE RT_FINAL;
85
86private slots:
87
88 /** Handles translation event. */
89 virtual void sltRetranslateUI() RT_OVERRIDE;
90
91private:
92
93 void setMediumVariantPageVisibility();
94
95 /** @name Parameters needed during medium cloning
96 * @{ */
97 CMediumFormat m_comMediumFormat;
98 qulonglong m_uMediumVariant;
99 /** Holds the source virtual disk wrapper. */
100 CMedium m_comSourceVirtualDisk;
101
102 /** Holds the source virtual-disk device type. */
103 KDeviceType m_enmDeviceType;
104 int m_iMediumVariantPageIndex;
105 qulonglong m_uMediumSize;
106 QString m_strMediumPath;
107 QString m_strSourceDiskPath;
108 /** @} */
109};
110
111#endif /* !FEQT_INCLUDED_SRC_wizards_clonevd_UIWizardCloneVD_h */
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