Changeset 23249 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 23, 2009 9:57:11 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r23223 r23249 1195 1195 else 1196 1196 uuid = Guid().toString(); 1197 CHECK_ERROR(machine, MountMedium(Bstr("IDE "), 1, 0, uuid));1197 CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid)); 1198 1198 } 1199 1199 else if (!strcmp(a->argv[1], "floppyattach")) … … 1250 1250 } 1251 1251 floppyMedium->COMGETTER(Id)(uuid.asOutParam()); 1252 CHECK_ERROR(machine, MountMedium(Bstr("F D"), 0, 0, uuid));1252 CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid)); 1253 1253 } 1254 1254 #ifdef VBOX_WITH_MEM_BALLOONING -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r23223 r23249 449 449 bool fFloppyEnabled = false; 450 450 451 rc = machine->GetStorageControllerByName(Bstr("F D"), FloppyCtl.asOutParam());451 rc = machine->GetStorageControllerByName(Bstr("Floppy Controller"), FloppyCtl.asOutParam()); 452 452 if (SUCCEEDED(rc)) 453 453 fFloppyEnabled = true; … … 470 470 for (ULONG i = 0; i < cFloppyPorts; ++ i) 471 471 { 472 rc = machine->GetMedium(Bstr("F D"), 0, i, floppyMedium.asOutParam());472 rc = machine->GetMedium(Bstr("Floppy Controller"), 0, i, floppyMedium.asOutParam()); 473 473 if (SUCCEEDED(rc) && floppyMedium) 474 474 { … … 548 548 ComPtr<IStorageController> ideController; 549 549 550 rc = machine->GetStorageControllerByName(Bstr("IDE "), ideController.asOutParam());550 rc = machine->GetStorageControllerByName(Bstr("IDE Controller"), ideController.asOutParam()); 551 551 if (SUCCEEDED(rc) && ideController) 552 552 { … … 578 578 ComPtr<IMedium> hardDisk; 579 579 Bstr filePath; 580 rc = machine->GetMedium(Bstr("IDE "), 0, 0, hardDisk.asOutParam());580 rc = machine->GetMedium(Bstr("IDE Controller"), 0, 0, hardDisk.asOutParam()); 581 581 if (SUCCEEDED(rc) && hardDisk) 582 582 { … … 596 596 RTPrintf("hda=\"none\"\n"); 597 597 } 598 rc = machine->GetMedium(Bstr("IDE "), 0, 1, hardDisk.asOutParam());598 rc = machine->GetMedium(Bstr("IDE Controller"), 0, 1, hardDisk.asOutParam()); 599 599 if (SUCCEEDED(rc) && hardDisk) 600 600 { … … 614 614 RTPrintf("hdb=\"none\"\n"); 615 615 } 616 rc = machine->GetMedium(Bstr("IDE "), 1, 1, hardDisk.asOutParam());616 rc = machine->GetMedium(Bstr("IDE Controller"), 1, 1, hardDisk.asOutParam()); 617 617 if (SUCCEEDED(rc) && hardDisk) 618 618 { … … 633 633 } 634 634 ComPtr<IMedium> dvdMedium; 635 rc = machine->GetMedium(Bstr("IDE "), 1, 0, dvdMedium.asOutParam());635 rc = machine->GetMedium(Bstr("IDE Controller"), 1, 0, dvdMedium.asOutParam()); 636 636 if (SUCCEEDED(rc) && dvdMedium) 637 637 { … … 648 648 BOOL fPassthrough; 649 649 ComPtr<IMediumAttachment> dvdAttachment; 650 machine->GetMediumAttachment(Bstr("IDE "), 1, 0, dvdAttachment.asOutParam());650 machine->GetMediumAttachment(Bstr("IDE Controller"), 1, 0, dvdAttachment.asOutParam()); 651 651 dvdAttachment->COMGETTER(Passthrough)(&fPassthrough); 652 652 if (details == VMINFO_MACHINEREADABLE) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r23223 r23249 1174 1174 if (!strcmp(hdds[0], "none")) 1175 1175 { 1176 machine->DetachDevice(Bstr("IDE "), 0, 0);1176 machine->DetachDevice(Bstr("IDE Controller"), 0, 0); 1177 1177 } 1178 1178 else … … 1195 1195 { 1196 1196 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 1197 CHECK_ERROR(machine, AttachDevice(Bstr("IDE "), 0, 0, DeviceType_HardDisk, uuid));1197 CHECK_ERROR(machine, AttachDevice(Bstr("IDE Controller"), 0, 0, DeviceType_HardDisk, uuid)); 1198 1198 } 1199 1199 else … … 1207 1207 if (!strcmp(hdds[1], "none")) 1208 1208 { 1209 machine->DetachDevice(Bstr("IDE "), 0, 1);1209 machine->DetachDevice(Bstr("IDE Controller"), 0, 1); 1210 1210 } 1211 1211 else … … 1228 1228 { 1229 1229 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 1230 CHECK_ERROR(machine, AttachDevice(Bstr("IDE "), 0, 1, DeviceType_HardDisk, uuid));1230 CHECK_ERROR(machine, AttachDevice(Bstr("IDE Controller"), 0, 1, DeviceType_HardDisk, uuid)); 1231 1231 } 1232 1232 else … … 1240 1240 if (!strcmp(hdds[2], "none")) 1241 1241 { 1242 machine->DetachDevice(Bstr("IDE "), 1, 1);1242 machine->DetachDevice(Bstr("IDE Controller"), 1, 1); 1243 1243 } 1244 1244 else … … 1261 1261 { 1262 1262 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 1263 CHECK_ERROR(machine, AttachDevice(Bstr("IDE "), 1, 1, DeviceType_HardDisk, uuid));1263 CHECK_ERROR(machine, AttachDevice(Bstr("IDE Controller"), 1, 1, DeviceType_HardDisk, uuid)); 1264 1264 } 1265 1265 else … … 1330 1330 * storage controllers. */ 1331 1331 dvdMedium->COMGETTER(Id)(uuid.asOutParam()); 1332 CHECK_ERROR(machine, MountMedium(Bstr("IDE "), 1, 0, uuid));1332 CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid)); 1333 1333 } 1334 1334 if (dvdpassthrough) 1335 1335 { 1336 1336 ComPtr<IMediumAttachment> dvdAttachment; 1337 machine->GetMediumAttachment(Bstr("IDE "), 1, 0, dvdAttachment.asOutParam());1337 machine->GetMediumAttachment(Bstr("IDE Controller"), 1, 0, dvdAttachment.asOutParam()); 1338 1338 ASSERT(dvdAttachment); 1339 1339 … … 1343 1343 { 1344 1344 ComPtr<IStorageController> storageController; 1345 CHECK_ERROR(machine, GetStorageControllerByName(Bstr("IDE "), storageController.asOutParam()));1345 CHECK_ERROR(machine, GetStorageControllerByName(Bstr("IDE Controller"), storageController.asOutParam())); 1346 1346 1347 1347 if (!RTStrICmp(idecontroller, "PIIX3")) … … 1368 1368 ComPtr<IMedium> floppyMedium; 1369 1369 ComPtr<IMediumAttachment> floppyAttachment; 1370 machine->GetMediumAttachment(Bstr("F D"), 0, 0, floppyAttachment.asOutParam());1370 machine->GetMediumAttachment(Bstr("Floppy Controller"), 0, 0, floppyAttachment.asOutParam()); 1371 1371 1372 1372 /* disable? */ … … 1375 1375 /* disable the controller */ 1376 1376 if (floppyAttachment) 1377 CHECK_ERROR(machine, DetachDevice(Bstr("F D"), 0, 0));1377 CHECK_ERROR(machine, DetachDevice(Bstr("Floppy Controller"), 0, 0)); 1378 1378 } 1379 1379 else … … 1381 1381 /* enable the controller */ 1382 1382 if (!floppyAttachment) 1383 CHECK_ERROR(machine, AttachDevice(Bstr("F D"), 0, 0, DeviceType_Floppy, NULL));1383 CHECK_ERROR(machine, AttachDevice(Bstr("Floppy Controller"), 0, 0, DeviceType_Floppy, NULL)); 1384 1384 1385 1385 /* unmount? */ … … 1425 1425 } 1426 1426 floppyMedium->COMGETTER(Id)(uuid.asOutParam()); 1427 CHECK_ERROR(machine, MountMedium(Bstr("F D"), 0, 0, uuid));1427 CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid)); 1428 1428 } 1429 1429 } -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r23223 r23249 1538 1538 Bstr uuid; 1539 1539 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 1540 gMachine->DetachDevice(Bstr("IDE "), 0, 0);1541 gMachine->AttachDevice(Bstr("IDE "), 0, 0, DeviceType_HardDisk, uuid);1540 gMachine->DetachDevice(Bstr("IDE Controller"), 0, 0); 1541 gMachine->AttachDevice(Bstr("IDE Controller"), 0, 0, DeviceType_HardDisk, uuid); 1542 1542 /// @todo why is this attachment saved? 1543 1543 } … … 1585 1585 Bstr id; 1586 1586 floppyMedium->COMGETTER(Id)(id.asOutParam()); 1587 CHECK_ERROR(gMachine, MountMedium(Bstr("F D"), 0, 0, id));1587 CHECK_ERROR(gMachine, MountMedium(Bstr("Floppy Controller"), 0, 0, id)); 1588 1588 } 1589 1589 while (0); … … 1627 1627 Bstr id; 1628 1628 dvdMedium->COMGETTER(Id)(id.asOutParam()); 1629 CHECK_ERROR(gMachine, MountMedium(Bstr("IDE "), 1, 0, id));1629 CHECK_ERROR(gMachine, MountMedium(Bstr("IDE Controller"), 1, 0, id)); 1630 1630 } 1631 1631 while (0); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r23223 r23249 1860 1860 { 1861 1861 mDevicesMountFloppyMenu->setEnabled (isRunningOrPaused); 1862 CMedium floppy = cmachine.GetMedium("F D", 0, 0);1862 CMedium floppy = cmachine.GetMedium("Floppy Controller", 0, 0); 1863 1863 bool mounted = !floppy.isNull(); 1864 1864 mDevicesUnmountFloppyAction->setEnabled (isRunningOrPaused && mounted); … … 1883 1883 { 1884 1884 mDevicesMountDVDMenu->setEnabled (isRunningOrPaused); 1885 CMedium dvd = cmachine.GetMedium("IDE ", 1, 0);1885 CMedium dvd = cmachine.GetMedium("IDE Controller", 1, 0); 1886 1886 bool mounted = !dvd.isNull(); 1887 1887 mDevicesUnmountDVDAction->setEnabled (isRunningOrPaused && mounted); … … 2798 2798 CMachine m = csession.GetMachine(); 2799 2799 2800 m.MountMedium ("F D", 0, 0, dlg.selectedId());2800 m.MountMedium ("Floppy Controller", 0, 0, dlg.selectedId()); 2801 2801 2802 2802 AssertWrapperOk (m); … … 2818 2818 2819 2819 CMachine m = csession.GetMachine(); 2820 m.MountMedium ("F D", 0, 0, NULL);2820 m.MountMedium ("Floppy Controller", 0, 0, NULL); 2821 2821 if (m.isOk()) 2822 2822 { … … 2829 2829 } 2830 2830 2831 if (!m.GetMedium ("F D", 0, 0).isNull())2831 if (!m.GetMedium ("Floppy Controller", 0, 0).isNull()) 2832 2832 { 2833 2833 /* Looks like Main make no force unmounting here … … 2856 2856 CMachine m = csession.GetMachine(); 2857 2857 2858 m.MountMedium ("IDE ", 1, 0, dlg.selectedId());2858 m.MountMedium ("IDE Controller", 1, 0, dlg.selectedId()); 2859 2859 2860 2860 AssertWrapperOk (m); … … 2877 2877 2878 2878 CMachine m = csession.GetMachine(); 2879 m.MountMedium ("IDE ", 1, 0, NULL);2879 m.MountMedium ("IDE Controller", 1, 0, NULL); 2880 2880 AssertWrapperOk (m); 2881 2881 if (m.isOk()) … … 2889 2889 } 2890 2890 2891 if (!m.GetMedium("IDE ", 1, 0).isNull())2891 if (!m.GetMedium("IDE Controller", 1, 0).isNull()) 2892 2892 { 2893 2893 /* Looks like Main make no force unmounting here … … 3005 3005 Assert (!uuid.isNull()); 3006 3006 CMachine m = csession.GetMachine(); 3007 m.MountMedium ("IDE ", 1, 0, uuid);3007 m.MountMedium ("IDE Controller", 1, 0, uuid); 3008 3008 AssertWrapperOk (m); 3009 3009 if (m.isOk()) … … 3120 3120 mDevicesMountFloppyMenu->clear(); 3121 3121 3122 CMedium selected = csession.GetMachine().GetMedium("F D", 0, 0);3122 CMedium selected = csession.GetMachine().GetMedium("Floppy Controller", 0, 0); 3123 3123 3124 3124 hostFloppyMap.clear(); … … 3167 3167 mDevicesMountDVDMenu->clear(); 3168 3168 3169 CMedium selected = csession.GetMachine().GetMedium("IDE ", 2, 0);3169 CMedium selected = csession.GetMachine().GetMedium("IDE Controller", 1, 0); 3170 3170 3171 3171 hostDVDMap.clear(); … … 3241 3241 3242 3242 CMachine m = csession.GetMachine(); 3243 m.MountMedium ("F D", 0, 0, d.GetId());3243 m.MountMedium ("Floppy Controller", 0, 0, d.GetId()); 3244 3244 AssertWrapperOk (m); 3245 3245 … … 3267 3267 3268 3268 CMachine m = csession.GetMachine(); 3269 m.MountMedium ("IDE ", 1, 0, d.GetId());3269 m.MountMedium ("IDE Controller", 1, 0, d.GetId()); 3270 3270 AssertWrapperOk (m); 3271 3271 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r23225 r23249 1283 1283 case VBoxDefs::MediumType_DVD: 1284 1284 { 1285 machine.MountMedium ("IDE ", 1, 0, NULL);1285 machine.MountMedium ("IDE Controller", 1, 0, NULL); 1286 1286 if (!machine.isOk()) 1287 1287 { … … 1294 1294 case VBoxDefs::MediumType_Floppy: 1295 1295 { 1296 machine.MountMedium ("F D", 0, 0, NULL);1296 machine.MountMedium ("Floppy Controller", 0, 0, NULL); 1297 1297 if (!machine.isOk()) 1298 1298 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxNewVMWzd.cpp
r23238 r23249 369 369 { 370 370 CMachine m = session.GetMachine(); 371 m.AttachDevice ("IDE ", 0, 0, KDeviceType_HardDisk, mHDCombo->id());371 m.AttachDevice ("IDE Controller", 0, 0, KDeviceType_HardDisk, mHDCombo->id()); 372 372 if (m.isOk()) 373 373 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMFirstRunWzd.cpp
r23223 r23249 121 121 CMedium hostDrive = mHostDVDs [mCbHost->currentIndex()]; 122 122 if (!hostDrive.isNull()) 123 mMachine.MountMedium ("IDE ", 1, 0, hostDrive.GetId());123 mMachine.MountMedium ("IDE Controller", 1, 0, hostDrive.GetId()); 124 124 } 125 125 else if (mRbImage->isChecked()) 126 mMachine.MountMedium ("IDE ", 1, 0, mCbImage->id());126 mMachine.MountMedium ("IDE Controller", 1, 0, mCbImage->id()); 127 127 } 128 128 /* Floppy Media selected */ … … 133 133 CMedium hostDrive = mHostFloppys [mCbHost->currentIndex()]; 134 134 if (!hostDrive.isNull()) 135 mMachine.MountMedium ("IDE ", 1, 0, hostDrive.GetId());135 mMachine.MountMedium ("IDE Controller", 1, 0, hostDrive.GetId()); 136 136 } 137 137 else if (mRbImage->isChecked()) 138 mMachine.MountMedium ("IDE ", 1, 0, mCbImage->id());138 mMachine.MountMedium ("IDE Controller", 1, 0, mCbImage->id()); 139 139 } 140 140 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp
r23223 r23249 482 482 { 483 483 QString hdStat; 484 const QString ideCtl = QString("IDE ");484 const QString ideCtl = QString("IDE Controller"); 485 485 const QString sataCtl = QString("SATA"); 486 486
Note:
See TracChangeset
for help on using the changeset viewer.