VBoxVMSettingsNetwork.h revision 51b5a11e595811cfd0873a5ad86aa55d7584b5f3
/** @file
*
* VBox frontends: Qt4 GUI ("VirtualBox"):
* VBoxVMSettingsNetwork class declaration
*/
/*
* Copyright (C) 2006-2008 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;
* 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 __VBoxVMSettingsNetwork_h__
#define __VBoxVMSettingsNetwork_h__
#include "VBoxSettingsPage.h"
#include "VBoxVMSettingsNetwork.gen.h"
#include "COMDefs.h"
#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
#endif
/*
* QWidget sub-class which represents one tab-page per each network adapter.
* It has generated UI part.
*/
{
void putBackToAdapter();
#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
void setInterfaceName (const QString &);
QString interfaceName() const;
#endif
void retranslateUi();
void adapterToggled (bool aOn);
void genMACClicked();
#if defined (Q_WS_X11) && !defined (VBOX_WITH_NETFLT)
void tapSetupClicked();
void tapTerminateClicked();
#endif
void prepareComboboxes();
void setTapEnabled (bool aEnabled);
void setTapVisible (bool aVisible);
#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
#endif
};
#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
/*
* QGroupBox sub-class which represents network interface list.
*/
{
bool isWrongInterface() const;
#if defined (Q_WS_WIN) && defined(VBOX_WITH_NETFLT)
#endif
void listChanged();
void currentInterfaceChanged (const QString &);
void addHostInterface();
void delHostInterface();
void retranslateUi();
#if defined (Q_WS_WIN) && defined(VBOX_WITH_NETFLT)
#else
void populateInterfacesList();
#endif
# if defined (Q_WS_WIN)
# ifdef VBOX_WITH_NETFLT
# endif
# endif
};
#endif /* Q_WS_WIN || VBOX_WITH_NETFLT */
/*
* QWidget sub-class which represents network settings page itself.
*/
{
void putBackTo();
void retranslateUi();
void updateNetworksList();
#if defined (VBOX_WITH_NETFLT)
void updateInterfaceList();
#endif
#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
void onCurrentPageChanged (int);
void onCurrentInterfaceChanged (const QString &);
#endif
void populateNetworksList();
/* Widgets */
#if defined (Q_WS_WIN) || defined (VBOX_WITH_NETFLT)
#endif
/* Widget Validator*/
/* Lists */
/* Flags */
bool mLockNetworkListUpdate;
};
#endif // __VBoxVMSettingsNetwork_h__