VBoxManageList.cpp revision 70bb61ea2f96e80150e807529ce5df435607706b
26456d1900aba0e903e6e1beec552396618322e2vboxsync * VBoxManage - The 'list' command.
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync * Copyright (C) 2006-2009 Sun Microsystems, Inc.
26456d1900aba0e903e6e1beec552396618322e2vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
26456d1900aba0e903e6e1beec552396618322e2vboxsync * available from http://www.virtualbox.org. This file is free software;
26456d1900aba0e903e6e1beec552396618322e2vboxsync * you can redistribute it and/or modify it under the terms of the GNU
26456d1900aba0e903e6e1beec552396618322e2vboxsync * General Public License (GPL) as published by the Free Software
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
26456d1900aba0e903e6e1beec552396618322e2vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
26456d1900aba0e903e6e1beec552396618322e2vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * additional information or have any questions.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync/*******************************************************************************
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync* Header Files *
26456d1900aba0e903e6e1beec552396618322e2vboxsync*******************************************************************************/
26456d1900aba0e903e6e1beec552396618322e2vboxsyncusing namespace com;
26456d1900aba0e903e6e1beec552396618322e2vboxsyncstatic const char *getHostIfTypeText(HostNetworkInterfaceType_T enmType)
26456d1900aba0e903e6e1beec552396618322e2vboxsync case HostNetworkInterfaceType_Ethernet: return "Ethernet";
switch (enmStatus)
enum enOptionCodes
bool fOptLong = false;
int command = 0;
RTGetOptInit(&GetState, a->argc, a->argv, g_aListOptions, RT_ELEMENTS(g_aListOptions), 0, 0 /* fFlags */);
fOptLong = true;
case LISTVMS:
case LISTRUNNINGVMS:
case LISTOSTYPES:
case LISTHOSTDVDS:
case LISTHOSTFLOPPIES:
case LISTHOSTIFS:
case LISTHOSTINFO:
case LISTHDDBACKENDS:
case LISTHDDS:
case LISTDVDS:
case LISTFLOPPIES:
case LISTUSBHOST:
case LISTUSBFILTERS:
case LISTSYSTEMPROPERTIES:
if (command)
command = c;
if (!command)
switch (command)
case LISTVMS:
if (machines [i])
machines[i],
case LISTRUNNINGVMS:
if (machines [i])
switch (machineState)
case MachineState_Running:
case MachineState_Paused:
machines[i],
case LISTOSTYPES:
case LISTHOSTDVDS:
case LISTHOSTFLOPPIES:
case LISTHOSTIFS:
#ifndef VBOX_WITH_HOSTNETIF_API
case LISTHOSTINFO:
if (processorSpeed)
case LISTHDDBACKENDS:
switch (propertyTypes [a])
case LISTHDDS:
case LISTDVDS:
case LISTFLOPPIES:
case LISTUSBHOST:
return rc;
if (!fMore)
while (fMore)
return rc;
switch (state)
case USBDeviceState_Busy:
case USBDeviceState_Available:
case USBDeviceState_Held:
case USBDeviceState_Captured:
ASSERT (false);
return rc;
case LISTUSBFILTERS:
return rc;
if (!more)
while (more)
return rc;
switch (action)
return rc;
index ++;
case LISTSYSTEMPROPERTIES: