VirtualBox

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


Ignore:
Timestamp:
Sep 23, 2009 9:57:11 AM (15 years ago)
Author:
vboxsync
Message:

medium: rename default IDE/FD storage controller names to IDE Controller and Floppy Controller

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

Legend:

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

    r23223 r23249  
    11951195            else
    11961196                uuid = Guid().toString();
    1197             CHECK_ERROR(machine, MountMedium(Bstr("IDE"), 1, 0, uuid));
     1197            CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid));
    11981198        }
    11991199        else if (!strcmp(a->argv[1], "floppyattach"))
     
    12501250            }
    12511251            floppyMedium->COMGETTER(Id)(uuid.asOutParam());
    1252             CHECK_ERROR(machine, MountMedium(Bstr("FD"), 0, 0, uuid));
     1252            CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid));
    12531253        }
    12541254#ifdef VBOX_WITH_MEM_BALLOONING
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r23223 r23249  
    449449    bool                       fFloppyEnabled = false;
    450450
    451     rc = machine->GetStorageControllerByName(Bstr("FD"), FloppyCtl.asOutParam());
     451    rc = machine->GetStorageControllerByName(Bstr("Floppy Controller"), FloppyCtl.asOutParam());
    452452    if (SUCCEEDED(rc))
    453453        fFloppyEnabled = true;
     
    470470        for (ULONG i = 0; i < cFloppyPorts; ++ i)
    471471        {
    472             rc = machine->GetMedium(Bstr("FD"), 0, i, floppyMedium.asOutParam());
     472            rc = machine->GetMedium(Bstr("Floppy Controller"), 0, i, floppyMedium.asOutParam());
    473473            if (SUCCEEDED(rc) && floppyMedium)
    474474            {
     
    548548    ComPtr<IStorageController> ideController;
    549549
    550     rc = machine->GetStorageControllerByName(Bstr("IDE"), ideController.asOutParam());
     550    rc = machine->GetStorageControllerByName(Bstr("IDE Controller"), ideController.asOutParam());
    551551    if (SUCCEEDED(rc) && ideController)
    552552    {
     
    578578    ComPtr<IMedium> hardDisk;
    579579    Bstr filePath;
    580     rc = machine->GetMedium(Bstr("IDE"), 0, 0, hardDisk.asOutParam());
     580    rc = machine->GetMedium(Bstr("IDE Controller"), 0, 0, hardDisk.asOutParam());
    581581    if (SUCCEEDED(rc) && hardDisk)
    582582    {
     
    596596            RTPrintf("hda=\"none\"\n");
    597597    }
    598     rc = machine->GetMedium(Bstr("IDE"), 0, 1, hardDisk.asOutParam());
     598    rc = machine->GetMedium(Bstr("IDE Controller"), 0, 1, hardDisk.asOutParam());
    599599    if (SUCCEEDED(rc) && hardDisk)
    600600    {
     
    614614            RTPrintf("hdb=\"none\"\n");
    615615    }
    616     rc = machine->GetMedium(Bstr("IDE"), 1, 1, hardDisk.asOutParam());
     616    rc = machine->GetMedium(Bstr("IDE Controller"), 1, 1, hardDisk.asOutParam());
    617617    if (SUCCEEDED(rc) && hardDisk)
    618618    {
     
    633633    }
    634634    ComPtr<IMedium> dvdMedium;
    635     rc = machine->GetMedium(Bstr("IDE"), 1, 0, dvdMedium.asOutParam());
     635    rc = machine->GetMedium(Bstr("IDE Controller"), 1, 0, dvdMedium.asOutParam());
    636636    if (SUCCEEDED(rc) && dvdMedium)
    637637    {
     
    648648        BOOL fPassthrough;
    649649        ComPtr<IMediumAttachment> dvdAttachment;
    650         machine->GetMediumAttachment(Bstr("IDE"), 1, 0, dvdAttachment.asOutParam());
     650        machine->GetMediumAttachment(Bstr("IDE Controller"), 1, 0, dvdAttachment.asOutParam());
    651651        dvdAttachment->COMGETTER(Passthrough)(&fPassthrough);
    652652        if (details == VMINFO_MACHINEREADABLE)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r23223 r23249  
    11741174            if (!strcmp(hdds[0], "none"))
    11751175            {
    1176                 machine->DetachDevice(Bstr("IDE"), 0, 0);
     1176                machine->DetachDevice(Bstr("IDE Controller"), 0, 0);
    11771177            }
    11781178            else
     
    11951195                {
    11961196                    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));
    11981198                }
    11991199                else
     
    12071207            if (!strcmp(hdds[1], "none"))
    12081208            {
    1209                 machine->DetachDevice(Bstr("IDE"), 0, 1);
     1209                machine->DetachDevice(Bstr("IDE Controller"), 0, 1);
    12101210            }
    12111211            else
     
    12281228                {
    12291229                    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));
    12311231                }
    12321232                else
     
    12401240            if (!strcmp(hdds[2], "none"))
    12411241            {
    1242                 machine->DetachDevice(Bstr("IDE"), 1, 1);
     1242                machine->DetachDevice(Bstr("IDE Controller"), 1, 1);
    12431243            }
    12441244            else
     
    12611261                {
    12621262                    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));
    12641264                }
    12651265                else
     
    13301330             * storage controllers. */
    13311331            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));
    13331333        }
    13341334        if (dvdpassthrough)
    13351335        {
    13361336            ComPtr<IMediumAttachment> dvdAttachment;
    1337             machine->GetMediumAttachment(Bstr("IDE"), 1, 0, dvdAttachment.asOutParam());
     1337            machine->GetMediumAttachment(Bstr("IDE Controller"), 1, 0, dvdAttachment.asOutParam());
    13381338            ASSERT(dvdAttachment);
    13391339
     
    13431343        {
    13441344            ComPtr<IStorageController> storageController;
    1345             CHECK_ERROR(machine, GetStorageControllerByName(Bstr("IDE"), storageController.asOutParam()));
     1345            CHECK_ERROR(machine, GetStorageControllerByName(Bstr("IDE Controller"), storageController.asOutParam()));
    13461346
    13471347            if (!RTStrICmp(idecontroller, "PIIX3"))
     
    13681368            ComPtr<IMedium> floppyMedium;
    13691369            ComPtr<IMediumAttachment> floppyAttachment;
    1370             machine->GetMediumAttachment(Bstr("FD"), 0, 0, floppyAttachment.asOutParam());
     1370            machine->GetMediumAttachment(Bstr("Floppy Controller"), 0, 0, floppyAttachment.asOutParam());
    13711371
    13721372            /* disable? */
     
    13751375                /* disable the controller */
    13761376                if (floppyAttachment)
    1377                     CHECK_ERROR(machine, DetachDevice(Bstr("FD"), 0, 0));
     1377                    CHECK_ERROR(machine, DetachDevice(Bstr("Floppy Controller"), 0, 0));
    13781378            }
    13791379            else
     
    13811381                /* enable the controller */
    13821382                if (!floppyAttachment)
    1383                     CHECK_ERROR(machine, AttachDevice(Bstr("FD"), 0, 0, DeviceType_Floppy, NULL));
     1383                    CHECK_ERROR(machine, AttachDevice(Bstr("Floppy Controller"), 0, 0, DeviceType_Floppy, NULL));
    13841384
    13851385                /* unmount? */
     
    14251425                }
    14261426                floppyMedium->COMGETTER(Id)(uuid.asOutParam());
    1427                 CHECK_ERROR(machine, MountMedium(Bstr("FD"), 0, 0, uuid));
     1427                CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid));
    14281428            }
    14291429        }
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r23223 r23249  
    15381538            Bstr uuid;
    15391539            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);
    15421542            /// @todo why is this attachment saved?
    15431543        }
     
    15851585        Bstr id;
    15861586        floppyMedium->COMGETTER(Id)(id.asOutParam());
    1587         CHECK_ERROR(gMachine, MountMedium(Bstr("FD"), 0, 0, id));
     1587        CHECK_ERROR(gMachine, MountMedium(Bstr("Floppy Controller"), 0, 0, id));
    15881588    }
    15891589    while (0);
     
    16271627        Bstr id;
    16281628        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));
    16301630    }
    16311631    while (0);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r23223 r23249  
    18601860    {
    18611861        mDevicesMountFloppyMenu->setEnabled (isRunningOrPaused);
    1862         CMedium floppy = cmachine.GetMedium("FD", 0, 0);
     1862        CMedium floppy = cmachine.GetMedium("Floppy Controller", 0, 0);
    18631863        bool mounted = !floppy.isNull();
    18641864        mDevicesUnmountFloppyAction->setEnabled (isRunningOrPaused && mounted);
     
    18831883    {
    18841884        mDevicesMountDVDMenu->setEnabled (isRunningOrPaused);
    1885         CMedium dvd = cmachine.GetMedium("IDE", 1, 0);
     1885        CMedium dvd = cmachine.GetMedium("IDE Controller", 1, 0);
    18861886        bool mounted = !dvd.isNull();
    18871887        mDevicesUnmountDVDAction->setEnabled (isRunningOrPaused && mounted);
     
    27982798        CMachine m = csession.GetMachine();
    27992799
    2800         m.MountMedium ("FD", 0, 0, dlg.selectedId());
     2800        m.MountMedium ("Floppy Controller", 0, 0, dlg.selectedId());
    28012801
    28022802        AssertWrapperOk (m);
     
    28182818
    28192819    CMachine m = csession.GetMachine();
    2820     m.MountMedium ("FD", 0, 0, NULL);
     2820    m.MountMedium ("Floppy Controller", 0, 0, NULL);
    28212821    if (m.isOk())
    28222822    {
     
    28292829    }
    28302830
    2831     if (!m.GetMedium ("FD", 0, 0).isNull())
     2831    if (!m.GetMedium ("Floppy Controller", 0, 0).isNull())
    28322832    {
    28332833        /* Looks like Main make no force unmounting here
     
    28562856        CMachine m = csession.GetMachine();
    28572857
    2858         m.MountMedium ("IDE", 1, 0, dlg.selectedId());
     2858        m.MountMedium ("IDE Controller", 1, 0, dlg.selectedId());
    28592859
    28602860        AssertWrapperOk (m);
     
    28772877
    28782878    CMachine m = csession.GetMachine();
    2879     m.MountMedium ("IDE", 1, 0, NULL);
     2879    m.MountMedium ("IDE Controller", 1, 0, NULL);
    28802880    AssertWrapperOk (m);
    28812881    if (m.isOk())
     
    28892889    }
    28902890
    2891     if (!m.GetMedium("IDE", 1, 0).isNull())
     2891    if (!m.GetMedium("IDE Controller", 1, 0).isNull())
    28922892    {
    28932893        /* Looks like Main make no force unmounting here
     
    30053005    Assert (!uuid.isNull());
    30063006    CMachine m = csession.GetMachine();
    3007     m.MountMedium ("IDE", 1, 0, uuid);
     3007    m.MountMedium ("IDE Controller", 1, 0, uuid);
    30083008    AssertWrapperOk (m);
    30093009    if (m.isOk())
     
    31203120    mDevicesMountFloppyMenu->clear();
    31213121
    3122     CMedium selected = csession.GetMachine().GetMedium("FD", 0, 0);
     3122    CMedium selected = csession.GetMachine().GetMedium("Floppy Controller", 0, 0);
    31233123
    31243124    hostFloppyMap.clear();
     
    31673167    mDevicesMountDVDMenu->clear();
    31683168
    3169     CMedium selected = csession.GetMachine().GetMedium("IDE", 2, 0);
     3169    CMedium selected = csession.GetMachine().GetMedium("IDE Controller", 1, 0);
    31703170
    31713171    hostDVDMap.clear();
     
    32413241
    32423242    CMachine m = csession.GetMachine();
    3243     m.MountMedium ("FD", 0, 0, d.GetId());
     3243    m.MountMedium ("Floppy Controller", 0, 0, d.GetId());
    32443244    AssertWrapperOk (m);
    32453245
     
    32673267
    32683268    CMachine m = csession.GetMachine();
    3269     m.MountMedium ("IDE", 1, 0, d.GetId());
     3269    m.MountMedium ("IDE Controller", 1, 0, d.GetId());
    32703270    AssertWrapperOk (m);
    32713271
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp

    r23225 r23249  
    12831283        case VBoxDefs::MediumType_DVD:
    12841284        {
    1285             machine.MountMedium ("IDE", 1, 0, NULL);
     1285            machine.MountMedium ("IDE Controller", 1, 0, NULL);
    12861286            if (!machine.isOk())
    12871287            {
     
    12941294        case VBoxDefs::MediumType_Floppy:
    12951295        {
    1296             machine.MountMedium ("FD", 0, 0, NULL);
     1296            machine.MountMedium ("Floppy Controller", 0, 0, NULL);
    12971297            if (!machine.isOk())
    12981298            {
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxNewVMWzd.cpp

    r23238 r23249  
    369369        {
    370370            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());
    372372            if (m.isOk())
    373373            {
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMFirstRunWzd.cpp

    r23223 r23249  
    121121            CMedium hostDrive = mHostDVDs [mCbHost->currentIndex()];
    122122            if (!hostDrive.isNull())
    123                 mMachine.MountMedium ("IDE", 1, 0, hostDrive.GetId());
     123                mMachine.MountMedium ("IDE Controller", 1, 0, hostDrive.GetId());
    124124        }
    125125        else if (mRbImage->isChecked())
    126             mMachine.MountMedium ("IDE", 1, 0, mCbImage->id());
     126            mMachine.MountMedium ("IDE Controller", 1, 0, mCbImage->id());
    127127    }
    128128    /* Floppy Media selected */
     
    133133            CMedium hostDrive = mHostFloppys [mCbHost->currentIndex()];
    134134            if (!hostDrive.isNull())
    135                 mMachine.MountMedium ("IDE", 1, 0, hostDrive.GetId());
     135                mMachine.MountMedium ("IDE Controller", 1, 0, hostDrive.GetId());
    136136        }
    137137        else if (mRbImage->isChecked())
    138             mMachine.MountMedium ("IDE", 1, 0, mCbImage->id());
     138            mMachine.MountMedium ("IDE Controller", 1, 0, mCbImage->id());
    139139    }
    140140
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp

    r23223 r23249  
    482482    {
    483483        QString hdStat;
    484         const QString ideCtl = QString("IDE");
     484        const QString ideCtl = QString("IDE Controller");
    485485        const QString sataCtl = QString("SATA");
    486486
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