VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/include/VBoxExportApplianceWzd.h@ 25045

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

FE/Qt4: enable upload to cloud in the GUI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/** @file
2 *
3 * VBox frontends: Qt4 GUI ("VirtualBox"):
4 * VBoxExportApplianceWzd 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 __VBoxExportApplianceWzd_h__
24#define __VBoxExportApplianceWzd_h__
25
26#include "VBoxExportApplianceWzd.gen.h"
27#include "QIAbstractWizard.h"
28#include "QIWithRetranslateUI.h"
29
30class QIWidgetValidator;
31class CAppliance;
32
33class VBoxExportApplianceWzd : public QIWithRetranslateUI<QIAbstractWizard>,
34 public Ui::VBoxExportApplianceWzd
35{
36 Q_OBJECT;
37
38 enum StorageType
39 {
40 Filesystem,
41 SunCloud,
42 S3
43 };
44
45
46public:
47 VBoxExportApplianceWzd (QWidget* aParent = NULL, const QString& aSelectName = QString::null);
48
49protected:
50 void retranslateUi();
51
52private slots:
53 void revalidate (QIWidgetValidator *aWval);
54 void enableNext (const QIWidgetValidator *aWval);
55
56 void accept();
57
58 void showNextPage();
59 void onPageShow();
60
61private:
62 void addListViewVMItems (const QString& aSelectName);
63 bool prepareSettingsWidget();
64 bool exportVMs (CAppliance &aAppliance);
65 QString uri() const;
66 StorageType currentStorageType() const;
67 void setCurrentStorageType(VBoxExportApplianceWzd::StorageType aType);
68
69 void storageTypeChanged();
70
71 /* Private member vars */
72 QString mDefaultApplianceName;
73
74 QIWidgetValidator *mWValVMSelector;
75 QIWidgetValidator *mWValFileSelector;
76
77 QString mExportToFileSystemDesc;
78 QString mExportToSunCloudDesc;
79 QString mExportToS3Desc;
80};
81
82#endif /* __VBoxExportApplianceWzd_h__ */
83
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