VirtualBox

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
Location:
trunk/src/VBox/Frontends/VirtualBox/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r17475 r17669  
    409409    }
    410410
    411     QString toString (KIDEControllerType t) const
    412     {
    413         AssertMsg (!mIDEControllerTypes.value (t).isNull(), ("No text for %d", t));
    414         return mIDEControllerTypes.value (t);
    415     }
    416 
    417     KIDEControllerType toIDEControllerType (const QString &s) const
    418     {
    419         QULongStringHash::const_iterator it =
    420             qFind (mIDEControllerTypes.begin(), mIDEControllerTypes.end(), s);
    421         AssertMsg (it != mIDEControllerTypes.end(), ("No value for {%s}",
    422                                                      s.toLatin1().constData()));
    423         return KIDEControllerType (it.key());
     411    QString toString (KStorageControllerType t) const
     412    {
     413        AssertMsg (!mStorageControllerTypes.value (t).isNull(), ("No text for %d", t));
     414        return mStorageControllerTypes.value (t);
     415    }
     416
     417    KStorageControllerType toIDEControllerType (const QString &s) const
     418    {
     419        QULongStringHash::const_iterator it =
     420            qFind (mStorageControllerTypes.begin(), mStorageControllerTypes.end(), s);
     421        AssertMsg (it != mStorageControllerTypes.end(), ("No value for {%s}",
     422                                                         s.toLatin1().constData()));
     423        return KStorageControllerType (it.key());
    424424    }
    425425
     
    877877    QULongStringHash mNetworkAttachmentTypes;
    878878    QULongStringHash mClipboardTypes;
    879     QULongStringHash mIDEControllerTypes;
     879    QULongStringHash mStorageControllerTypes;
    880880    QULongStringHash mUSBDeviceStates;
    881881
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMInformationDlg.h

    r12695 r17669  
    7272
    7373    QString formatValue (const QString &aValueName, const QString &aValue, int aMaxSize);
    74     QString formatHardDisk (KStorageBus aBus, LONG aChannel, LONG aDevice, const QString &aBelongsTo);
     74    QString formatHardDisk (const QString &ctlName, LONG aChannel, LONG aDevice, const QString &aBelongsTo);
    7575    QString formatAdapter (ULONG aSlot, const QString &aBelongsTo);
    7676
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