VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.h@ 104158

Last change on this file since 104158 was 104037, checked in by vboxsync, 10 months ago

FE/Qt: Fixing build (some missing includes).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: UIWizardNewVMUnattendedPage.h 104037 2024-03-25 13:28:11Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIWizardNewVMUnattendedPage 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_newvm_UIWizardNewVMUnattendedPage_h
29#define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QSet>
36
37/* GUI includes: */
38#include "UINativeWizardPage.h"
39
40/* Forward declarations: */
41class QIRichTextLabel;
42class UIAdditionalUnattendedOptions;
43class UIGAInstallationGroupBox;
44class UIUserNamePasswordGroupBox;
45class UIWindowsISOImageSelector;
46
47namespace UIWizardNewVMUnattendedCommon
48{
49 /** Returns false if ISO path selector is non empty but has invalid file path. */
50 bool checkGAISOFile(const QString &strPatho);
51}
52
53class UIWizardNewVMUnattendedPage : public UINativeWizardPage
54{
55 Q_OBJECT;
56
57public:
58
59 UIWizardNewVMUnattendedPage();
60
61private slots:
62
63 void sltInstallGACheckBoxToggle(bool fChecked);
64 void sltGAISOPathChanged(const QString &strPath);
65 void sltPasswordChanged(const QString &strPassword);
66 void sltUserNameChanged(const QString &strUserName);
67 void sltHostnameDomainNameChanged(const QString &strHostnameDomainName, bool fIsComplete);
68 void sltProductKeyChanged(const QString &strProductKey);
69 void sltStartHeadlessChanged(bool fStartHeadless);
70 void sltSelectedWindowsImageChanged(ulong uImageIndex);
71 virtual void sltRetranslateUI() RT_OVERRIDE RT_FINAL;
72
73private:
74
75 void prepare();
76 void createConnections();
77 void initializePage() RT_OVERRIDE;
78 bool isComplete() const RT_OVERRIDE;
79 /** Returns true if we show the widgets for guest os product key. */
80 bool isProductKeyWidgetEnabled() const;
81 void markWidgets() const;
82
83 /** @name Widgets
84 * @{ */
85 QIRichTextLabel *m_pLabel;
86 UIAdditionalUnattendedOptions *m_pAdditionalOptionsContainer;
87 UIGAInstallationGroupBox *m_pGAInstallationISOContainer;
88 UIUserNamePasswordGroupBox *m_pUserNamePasswordGroupBox;
89 /** @} */
90 QSet<QString> m_userModifiedParameters;
91};
92
93#endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage_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