Changeset 24754 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Nov 18, 2009 12:09:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r24416 r24754 552 552 Bstr uuid; 553 553 hdd->COMGETTER(Id)(uuid.asOutParam()); 554 RTPrintf("UUID: 554 RTPrintf("UUID: %s\n", Utf8Str(uuid).raw()); 555 555 Bstr format; 556 556 hdd->COMGETTER(Format)(format.asOutParam()); 557 RTPrintf("Format: 557 RTPrintf("Format: %lS\n", format.raw()); 558 558 Bstr filepath; 559 559 hdd->COMGETTER(Location)(filepath.asOutParam()); 560 RTPrintf("Location: 560 RTPrintf("Location: %lS\n", filepath.raw()); 561 561 MediumState_T enmState; 562 562 /// @todo NEWMEDIA check accessibility of all parents 563 563 /// @todo NEWMEDIA print the full state value 564 564 hdd->RefreshState(&enmState); 565 RTPrintf("Accessible: 565 RTPrintf("Accessible: %s\n", enmState != MediumState_Inaccessible ? "yes" : "no"); 566 566 567 567 MediumType_T type; … … 580 580 break; 581 581 } 582 RTPrintf("Type: 582 RTPrintf("Type: %s\n", typeStr); 583 583 584 584 com::SafeArray<BSTR> machineIds; … … 593 593 machine->COMGETTER(Id)(uuid.asOutParam()); 594 594 RTPrintf("%s%lS (UUID: %lS)\n", 595 j == 0 ? "Usage: " : "",595 j == 0 ? "Usage: " : " ", 596 596 name.raw(), machineIds[j]); 597 597 } … … 620 620 dvdImage->RefreshState(&enmState); 621 621 RTPrintf("Accessible: %s\n", enmState != MediumState_Inaccessible ? "yes" : "no"); 622 /** @todo usage */ 622 623 com::SafeArray<BSTR> machineIds; 624 dvdImage->COMGETTER(MachineIds)(ComSafeArrayAsOutParam(machineIds)); 625 for (size_t j = 0; j < machineIds.size(); ++ j) 626 { 627 ComPtr<IMachine> machine; 628 CHECK_ERROR(a->virtualBox, GetMachine(machineIds[j], machine.asOutParam())); 629 ASSERT(machine); 630 Bstr name; 631 machine->COMGETTER(Name)(name.asOutParam()); 632 machine->COMGETTER(Id)(uuid.asOutParam()); 633 RTPrintf("%s%lS (UUID: %lS)\n", 634 j == 0 ? "Usage: " : " ", 635 name.raw(), machineIds[j]); 636 } 623 637 RTPrintf("\n"); 624 638 } … … 642 656 floppyImage->RefreshState(&enmState); 643 657 RTPrintf("Accessible: %s\n", enmState != MediumState_Inaccessible ? "yes" : "no"); 644 /** @todo usage */ 658 659 com::SafeArray<BSTR> machineIds; 660 floppyImage->COMGETTER(MachineIds)(ComSafeArrayAsOutParam(machineIds)); 661 for (size_t j = 0; j < machineIds.size(); ++ j) 662 { 663 ComPtr<IMachine> machine; 664 CHECK_ERROR(a->virtualBox, GetMachine(machineIds[j], machine.asOutParam())); 665 ASSERT(machine); 666 Bstr name; 667 machine->COMGETTER(Name)(name.asOutParam()); 668 machine->COMGETTER(Id)(uuid.asOutParam()); 669 RTPrintf("%s%lS (UUID: %lS)\n", 670 j == 0 ? "Usage: " : " ", 671 name.raw(), machineIds[j]); 672 } 645 673 RTPrintf("\n"); 646 674 }
Note:
See TracChangeset
for help on using the changeset viewer.