VirtualBox

Changeset 17669 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Mar 11, 2009 9:56:29 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44161
Message:

Main: Rework storage controller handling to allow an arbitrary number of different storage controllers and remove code duplication:

  • XML format changed
  • New StorageController class
  • Removed SATAController (obsolete)
  • Removed the IDE controller code from BIOSSettings, handled in StorageController now
File:
1 edited

Legend:

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

    r17255 r17669  
    558558
    559559    STDMETHOD(OnSharedFolderChange) (Scope_T aScope)
     560    {
     561        return S_OK;
     562    }
     563
     564    STDMETHOD(OnStorageControllerChange) ()
    560565    {
    561566        return S_OK;
     
    16751680            Guid uuid;
    16761681            hardDisk->COMGETTER(Id)(uuid.asOutParam());
    1677             gMachine->DetachHardDisk(StorageBus_IDE, 0, 0);
    1678             gMachine->AttachHardDisk(uuid, StorageBus_IDE, 0, 0);
     1682            gMachine->DetachHardDisk(Bstr("IDE"), 0, 0);
     1683            gMachine->AttachHardDisk(uuid, Bstr("IDE"), 0, 0);
    16791684            /// @todo why is this attachment saved?
    16801685        }
Note: See TracChangeset for help on using the changeset viewer.

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