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 |
|
---|
30 | class CAppliance;
|
---|
31 | class CVirtualSystemDescription;
|
---|
32 | class VirtualSystemModel;
|
---|
33 |
|
---|
34 | class VBoxImportAppliance
|
---|
35 | {
|
---|
36 | public:
|
---|
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 |
|
---|
44 | private:
|
---|
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 |
|
---|
54 | class VBoxImportApplianceDlg : public QIWithRetranslateUI<QIDialog>,
|
---|
55 | public Ui::VBoxImportApplianceDlg
|
---|
56 | {
|
---|
57 | Q_OBJECT;
|
---|
58 |
|
---|
59 | public:
|
---|
60 | VBoxImportApplianceDlg (CAppliance *aAppliance, QWidget *aParent);
|
---|
61 |
|
---|
62 | public slots:
|
---|
63 | void accept();
|
---|
64 |
|
---|
65 | protected:
|
---|
66 | void retranslateUi();
|
---|
67 |
|
---|
68 | private slots:
|
---|
69 | void restoreDefaults();
|
---|
70 |
|
---|
71 | private:
|
---|
72 | /* Private member vars */
|
---|
73 | CAppliance *mAppliance;
|
---|
74 | VirtualSystemModel *mModel;
|
---|
75 | };
|
---|
76 |
|
---|
77 | #endif /* __VBoxImportAppliance_h__ */
|
---|
78 |
|
---|