NetworkAdapterImpl.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
/** @file
*
* VBox frontends: Basic Frontend (BFE):
* Implementation of NetworkAdapter class
*
* This is adapted from frontends/VirtualBox/NetworkAdapter.cpp.
*/
/*
* Copyright (C) 2006-2007 Oracle Corporation
*
* 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.
*/
#include <NetworkAdapterImpl.h>
#include <NATDriver.h>
#include <COMDefs.h>
#include <ConsoleImpl.h>
/**
* Returns the host interface the adapter is attached to
*
* @returns COM status code
* @param hostInterface address of result string
*/
{
if (!hostInterface)
return E_POINTER;
// CHECK_READY();
// mData->mHostInterface.cloneTo(hostInterface);
return S_OK;
}
{
}
{
}
int
{
return S_OK;
}
{
if (!slot)
return E_POINTER;
// CHECK_READY();
return S_OK;
}
{
if (!enabled)
return E_POINTER;
// CHECK_READY();
return S_OK;
}
{
// CHECK_READY();
// CHECK_MACHINE_MUTABILITY (mParent);
{
// mData.backup();
/* notify parent */
mParent->onNetworkAdapterChange (this);
}
return S_OK;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
#ifdef RT_OS_LINUX
// empty strings are not allowed as path names
if (hostInterface && !(*hostInterface))
return E_INVALIDARG;
#endif
// CHECK_READY();
// CHECK_MACHINE_MUTABILITY (mParent);
{
// mData.backup();
/* notify parent */
mParent->onNetworkAdapterChange(this);
}
return S_OK;
}
{
if (!tapFileDescriptor)
return E_POINTER;
// CHECK_READY();
return S_OK;
}
{
/*
* Validate input.
*/
{
// setError VirtualBoxSupportErrorInfoImplBase which
// is a parent class of NetworAdapter in the COM flavored version
// return setError (E_INVALIDARG,
// tr ("Invalid file descriptor: %ld"), tapFileDescriptor);
return S_OK;
}
// CHECK_READY();
// CHECK_MACHINE_MUTABILITY (mParent);
{
// mData.backup();
/* notify parent */
mParent->onNetworkAdapterChange(this);
}
return S_OK;
}
{
if (!tapSetupApplication)
return E_POINTER;
// CHECK_READY();
/* we don't have to be in TAP mode to support this call */
return S_OK;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
if (!connected)
return E_POINTER;
// CHECK_READY();
return S_OK;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
// INetworkAdapter methods
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
{
AssertMsg(0,("Not implemented yet\n"));
return 0;
}
void
{
AssertMsg(0,("Not implemented yet\n"));
}
void
{
AssertMsg(0,("Not implemented yet\n"));
}