VirtualBox

Changeset 2567 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
May 9, 2007 4:38:24 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21034
Message:

Main & All Frontends: replaced the IGuestOSType IMachine::OSType property with the wstring IMachine::OSTypeId property (+ converted IGuest and IGuestOSType to VirtualBoxBaseNEXT semantics).

Location:
trunk/src/VBox/Main/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r2333 r2567  
    562562        ComPtr <IGuestOSType> guestOSType;
    563563        Bstr type = L"os2warp45";
    564         CHECK_ERROR_BREAK (virtualBox, FindGuestOSType (type, guestOSType.asOutParam()));
     564        CHECK_ERROR_BREAK (virtualBox, GetGuestOSType (type, guestOSType.asOutParam()));
    565565
    566566        printf ("Saving new machine settings...\n");
  • trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp

    r1 r2567  
    122122                printf("\tMemory size: %uMB\n", memorySize);
    123123
     124                nsXPIDLString typeId;
     125                machine->GetOSTypeId(getter_Copies(typeId));
    124126                IGuestOSType *osType = nsnull;
    125                 machine->GetOSType(&osType);
     127                virtualBox->GetGuestOSType (typeId.get(), &osType);
    126128                nsXPIDLString osName;
    127129                osType->GetDescription(getter_Copies(osName));
     
    178180    IGuestOSType *osType = nsnull;
    179181    char win2k[] = "win2k";
    180     rc = virtualBox->FindGuestOSType(NS_ConvertUTF8toUTF16((char*)win2k).get(), &osType);
     182    rc = virtualBox->GetGuestOSType(NS_ConvertUTF8toUTF16((char*) win2k).get(), &osType);
    181183    if (NS_FAILED(rc) || !osType)
    182184    {
     
    185187    else
    186188    {
    187         machine->SetOSType(osType);
     189        machine->SetOSTypeId (NS_ConvertUTF8toUTF16((char*) win2k).get());
    188190        osType->Release();
    189191    }
Note: See TracChangeset for help on using the changeset viewer.

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