VBoxImportAppliance.h revision 94eb4c40aabf9f75b9b827c9069a789015f33b81
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* VBoxImportAppliance class declaration
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef __VBoxImportAppliance_h__
#define __VBoxImportAppliance_h__
#include "VBoxImportApplianceDlg.gen.h"
#include "QIWithRetranslateUI.h"
#include "QIDialog.h"
#include <QSortFilterProxyModel>
class CAppliance;
class CVirtualSystemDescription;
class VirtualSystemModel;
class VBoxImportAppliance
{
public:
static void import (QWidget *aParent = NULL);
static int minGuestRAM() { return mMinGuestRAM; }
static int maxGuestRAM() { return mMaxGuestRAM; }
static int minGuestCPUCount() { return mMinGuestCPUCount; }
static int maxGuestCPUCount() { return mMaxGuestCPUCount; }
private:
/* Private member vars */
static void initSystemSettings();
static int mMinGuestRAM;
static int mMaxGuestRAM;
static int mMinGuestCPUCount;
static int mMaxGuestCPUCount;
};
class VBoxImportApplianceDlg : public QIWithRetranslateUI<QIDialog>,
public Ui::VBoxImportApplianceDlg
{
Q_OBJECT;
public:
VBoxImportApplianceDlg (CAppliance *aAppliance, QWidget *aParent);
public slots:
void accept();
protected:
void retranslateUi();
private slots:
void restoreDefaults();
private:
/* Private member vars */
CAppliance *mAppliance;
VirtualSystemModel *mModel;
};
#endif /* __VBoxImportAppliance_h__ */