VirtualBox

Changeset 44948 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 7, 2013 10:36:42 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84157
Message:

Main/SystemProperties+Machine: new config setting for default VM frontend.
Frontend/VirtualBox+VBoxManage: changes to use the default VM frontend when starting a VM, other minor cleanups
Main/xml/*.xsd: attempt to bring the XML schema close to reality
doc/manual: document the new possibilities, and fix a few long standing inaccuracies

Location:
trunk/src/VBox/Frontends
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r44191 r44948  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    368368                     "                                             acpishutdown]\n"
    369369#endif
     370                     "                            [--defaultfrontend default|<name]\n"
    370371                     "\n");
    371372    }
     
    624625                     "                            autostartdbpath null|<folder> |\n"
    625626                     "                            loghistorycount <value>\n"
     627                     "                            defaultfrontend default|<name>\n"
    626628                     "\n", SEP);
    627629
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r44028 r44948  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    713713    SHOW_BOOLEAN_PROP(    machine,  AutostartEnabled,           "autostart-enabled",        "Autostart Enabled");
    714714    SHOW_ULONG_PROP(      machine,  AutostartDelay,             "autostart-delay",          "Autostart Delay", "");
     715    SHOW_STRING_PROP(     machine,  DefaultFrontend,            "defaultfrontend",          "Default Frontend");
    715716
    716717/** @todo Convert the remainder of the function to SHOW_XXX macros and add error
     
    15661567            RTPrintf("draganddrop=\"%s\"\n", psz);
    15671568        else
    1568             RTPrintf("Drag'n'drop Mode:  %s\n", psz);
     1569            RTPrintf("Drag'n'drop Mode: %s\n", psz);
     1570    }
     1571
     1572    {
     1573        SessionState_T sessState;
     1574        rc = machine->COMGETTER(SessionState)(&sessState);
     1575        if (SUCCEEDED(rc) && sessState != SessionState_Unlocked)
     1576        {
     1577            Bstr sessType;
     1578            rc = machine->COMGETTER(SessionType)(sessType.asOutParam());
     1579            if (SUCCEEDED(rc) && !sessType.isEmpty())
     1580            {
     1581                if (details == VMINFO_MACHINEREADABLE)
     1582                    RTPrintf("SessionType=\"%ls\"\n", sessType.raw());
     1583                else
     1584                    RTPrintf("Session type:    %ls\n", sessType.raw());
     1585            }
     1586        }
    15691587    }
    15701588
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r43041 r44948  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    486486    HRESULT rc = S_OK;
    487487    std::list<const char *> VMs;
    488     Bstr sessionType = "gui";
     488    Bstr sessionType;
    489489
    490490    static const RTGETOPTDEF s_aStartVMOptions[] =
     
    871871            CHECK_ERROR(systemProperties, COMSETTER(AutostartDatabasePath)(Bstr(a->argv[1]).raw()));
    872872    }
     873    else if (!strcmp(a->argv[0], "defaultfrontend"))
     874    {
     875        Bstr bstrDefaultFrontend(a->argv[1]);
     876        if (!strcmp(a->argv[1], "default"))
     877            bstrDefaultFrontend.setNull();
     878        CHECK_ERROR(systemProperties, COMSETTER(DefaultFrontend)(bstrDefaultFrontend.raw()));
     879    }
    873880    else
    874881        return errorSyntax(USAGE_SETPROPERTY, "Invalid parameter '%s'", a->argv[0]);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r44528 r44948  
    197197    MODIFYVM_VCP_HEIGHT,
    198198#endif
    199     MODIFYVM_CHIPSET
     199    MODIFYVM_CHIPSET,
     200    MODIFYVM_DEFAULTFRONTEND
    200201};
    201202
     
    352353    { "--usbcardreader",            MODIFYVM_USBCARDREADER,             RTGETOPT_REQ_BOOL_ONOFF },
    353354#endif
     355    { "--defaultfrontend",          MODIFYVM_DEFAULTFRONTEND,           RTGETOPT_REQ_STRING },
    354356};
    355357
     
    15461548
    15471549                CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam()));
    1548                 if (RTStrCmp(ValueUnion.psz,"default") == 0)
     1550                if (RTStrCmp(ValueUnion.psz, "default") == 0)
    15491551                {
    15501552                    aliasMode = 0;
     
    25142516#endif /* VBOX_WITH_USB_CARDREADER */
    25152517
     2518            case MODIFYVM_DEFAULTFRONTEND:
     2519            {
     2520                Bstr bstr(ValueUnion.psz);
     2521                if (bstr == "default")
     2522                    bstr = Bstr::Empty;
     2523                CHECK_ERROR(machine, COMSETTER(DefaultFrontend)(bstr.raw()));
     2524                break;
     2525            }
     2526
    25162527            default:
    25172528            {
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r44710 r44948  
    49634963        env.append(QString("XAUTHORITY=%1\n").arg(xauth));
    49644964#endif
    4965     const QString strType = fHeadless ? "headless" : "GUI/Qt";
     4965    const QString strType = fHeadless ? "headless" : "";
    49664966
    49674967    CProgress progress = machine.LaunchVMProcess(session, strType, env);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette