Changeset 44948 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 7, 2013 10:36:42 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84157
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r44191 r44948 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 368 368 " acpishutdown]\n" 369 369 #endif 370 " [--defaultfrontend default|<name]\n" 370 371 "\n"); 371 372 } … … 624 625 " autostartdbpath null|<folder> |\n" 625 626 " loghistorycount <value>\n" 627 " defaultfrontend default|<name>\n" 626 628 "\n", SEP); 627 629 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r44028 r44948 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 713 713 SHOW_BOOLEAN_PROP( machine, AutostartEnabled, "autostart-enabled", "Autostart Enabled"); 714 714 SHOW_ULONG_PROP( machine, AutostartDelay, "autostart-delay", "Autostart Delay", ""); 715 SHOW_STRING_PROP( machine, DefaultFrontend, "defaultfrontend", "Default Frontend"); 715 716 716 717 /** @todo Convert the remainder of the function to SHOW_XXX macros and add error … … 1566 1567 RTPrintf("draganddrop=\"%s\"\n", psz); 1567 1568 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 } 1569 1587 } 1570 1588 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r43041 r44948 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 486 486 HRESULT rc = S_OK; 487 487 std::list<const char *> VMs; 488 Bstr sessionType = "gui";488 Bstr sessionType; 489 489 490 490 static const RTGETOPTDEF s_aStartVMOptions[] = … … 871 871 CHECK_ERROR(systemProperties, COMSETTER(AutostartDatabasePath)(Bstr(a->argv[1]).raw())); 872 872 } 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 } 873 880 else 874 881 return errorSyntax(USAGE_SETPROPERTY, "Invalid parameter '%s'", a->argv[0]); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r44528 r44948 197 197 MODIFYVM_VCP_HEIGHT, 198 198 #endif 199 MODIFYVM_CHIPSET 199 MODIFYVM_CHIPSET, 200 MODIFYVM_DEFAULTFRONTEND 200 201 }; 201 202 … … 352 353 { "--usbcardreader", MODIFYVM_USBCARDREADER, RTGETOPT_REQ_BOOL_ONOFF }, 353 354 #endif 355 { "--defaultfrontend", MODIFYVM_DEFAULTFRONTEND, RTGETOPT_REQ_STRING }, 354 356 }; 355 357 … … 1546 1548 1547 1549 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1548 if (RTStrCmp(ValueUnion.psz, "default") == 0)1550 if (RTStrCmp(ValueUnion.psz, "default") == 0) 1549 1551 { 1550 1552 aliasMode = 0; … … 2514 2516 #endif /* VBOX_WITH_USB_CARDREADER */ 2515 2517 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 2516 2527 default: 2517 2528 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r44710 r44948 4963 4963 env.append(QString("XAUTHORITY=%1\n").arg(xauth)); 4964 4964 #endif 4965 const QString strType = fHeadless ? "headless" : " GUI/Qt";4965 const QString strType = fHeadless ? "headless" : ""; 4966 4966 4967 4967 CProgress progress = machine.LaunchVMProcess(session, strType, env);
Note:
See TracChangeset
for help on using the changeset viewer.