NetworkAdapterImpl.h revision 682f1ceceda80f94fe639cf98943794a4072b2f8
/* $Id$ */
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2007 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 ____H_NETWORKADAPTER
#define ____H_NETWORKADAPTER
#include "VirtualBoxBase.h"
#include "Collection.h"
{
struct Data
{
Data()
#ifndef VBOX_WITH_UNIXY_TAP_NETWORKING
#else
, mTAPFD (NIL_RTFILE)
#endif
{}
{
#endif
}
#endif
};
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// INetworkAdapter properties
#ifndef RT_OS_WINDOWS /** @todo ifdef VBOX_WITH_UNIXY_TAP_NETWORKING: need to find a way to exclude this in the xidl... */
#endif
// INetworkAdapter methods
STDMETHOD(AttachToNAT)();
// public methods only for internal purposes
bool rollback();
void commit();
// public methods for internal purposes only
// (ensure there is a caller and a read lock before calling them!)
// for VirtualBoxSupportErrorInfoImpl
void detach();
void generateMACAddress();
};
#endif // ____H_NETWORKADAPTER