VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/include/VBoxImportAppliance.h@ 16736

Last change on this file since 16736 was 16736, checked in by vboxsync, 16 years ago

FE/Qt4-OVF: Displays the OS types as menu with submenus.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * VBoxImportAppliance class declaration
5 */
6
7/*
8 * Copyright (C) 2009 Sun Microsystems, Inc.
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 *
18 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
19 * Clara, CA 95054 USA or visit http://www.sun.com if you need
20 * additional information or have any questions.
21 */
22
23#ifndef __VBoxImportAppliance_h__
24#define __VBoxImportAppliance_h__
25
26#include "VBoxImportApplianceDlg.gen.h"
27#include "QIWithRetranslateUI.h"
28#include "QIDialog.h"
29
30class CAppliance;
31class CVirtualSystemDescription;
32class VirtualSystemModel;
33
34class VBoxImportAppliance
35{
36public:
37 static void import (QWidget *aParent = NULL);
38
39 static int minGuestRAM() { return mMinGuestRAM; }
40 static int maxGuestRAM() { return mMaxGuestRAM; }
41 static int minGuestCPUCount() { return mMinGuestCPUCount; }
42 static int maxGuestCPUCount() { return mMaxGuestCPUCount; }
43
44private:
45 /* Private member vars */
46 static void initSystemSettings();
47
48 static int mMinGuestRAM;
49 static int mMaxGuestRAM;
50 static int mMinGuestCPUCount;
51 static int mMaxGuestCPUCount;
52};
53
54class VBoxImportApplianceDlg : public QIWithRetranslateUI<QIDialog>,
55 public Ui::VBoxImportApplianceDlg
56{
57 Q_OBJECT;
58
59public:
60 VBoxImportApplianceDlg (CAppliance *aAppliance, QWidget *aParent);
61
62public slots:
63 void accept();
64
65protected:
66 void retranslateUi();
67
68private slots:
69 void restoreDefaults();
70
71private:
72 /* Private member vars */
73 CAppliance *mAppliance;
74 VirtualSystemModel *mModel;
75};
76
77#endif /* __VBoxImportAppliance_h__ */
78
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