Changeset 81047 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 27, 2019 11:04:07 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133650
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r80932 r81047 381 381 382 382 383 /* AbstractController Type */384 AbstractControllerType::AbstractControllerType (KStorageBus aBusType, KStorageControllerType aCtrType)383 /* Controller Type */ 384 ControllerType::ControllerType (KStorageBus aBusType, KStorageControllerType aCtrType) 385 385 : mBusType (aBusType) 386 386 , mCtrType (aCtrType) … … 394 394 } 395 395 396 KStorageBus AbstractControllerType::busType() const396 KStorageBus ControllerType::busType() const 397 397 { 398 398 return mBusType; 399 399 } 400 400 401 ControllerBusList AbstractControllerType::busTypes() const401 ControllerBusList ControllerType::busTypes() const 402 402 { 403 403 return m_buses; 404 404 } 405 405 406 KStorageControllerType AbstractControllerType::ctrType() const406 KStorageControllerType ControllerType::ctrType() const 407 407 { 408 408 return mCtrType; 409 409 } 410 410 411 ControllerTypeList AbstractControllerType::ctrTypes() const411 ControllerTypeList ControllerType::ctrTypes() const 412 412 { 413 413 return m_types; 414 414 } 415 415 416 PixmapType AbstractControllerType::pixmap(ItemState aState) const416 PixmapType ControllerType::pixmap(ItemState aState) const 417 417 { 418 418 return m_pixmaps.at(aState); 419 419 } 420 420 421 void AbstractControllerType::setCtrBusType(KStorageBus enmCtrBusType)421 void ControllerType::setCtrBusType(KStorageBus enmCtrBusType) 422 422 { 423 423 mBusType = enmCtrBusType; … … 428 428 } 429 429 430 void AbstractControllerType::setCtrType (KStorageControllerType aCtrType)430 void ControllerType::setCtrType (KStorageControllerType aCtrType) 431 431 { 432 432 mCtrType = aCtrType; 433 433 } 434 434 435 DeviceTypeList AbstractControllerType::deviceTypeList() const435 DeviceTypeList ControllerType::deviceTypeList() const 436 436 { 437 437 return uiCommon().virtualBox().GetSystemProperties().GetDeviceTypesForStorageBus (mBusType).toList(); 438 438 } 439 439 440 void AbstractControllerType::updateBusInfo()440 void ControllerType::updateBusInfo() 441 441 { 442 442 m_buses.clear(); … … 465 465 } 466 466 467 void AbstractControllerType::updateTypeInfo()467 void ControllerType::updateTypeInfo() 468 468 { 469 469 m_types.clear(); … … 503 503 } 504 504 505 void AbstractControllerType::updatePixmaps()505 void ControllerType::updatePixmaps() 506 506 { 507 507 m_pixmaps.clear(); … … 668 668 { 669 669 case KStorageBus_IDE: 670 mCtrType = new AbstractControllerType(KStorageBus_IDE, aControllerType);670 mCtrType = new ControllerType(KStorageBus_IDE, aControllerType); 671 671 break; 672 672 case KStorageBus_SATA: 673 mCtrType = new AbstractControllerType(KStorageBus_SATA, aControllerType);673 mCtrType = new ControllerType(KStorageBus_SATA, aControllerType); 674 674 break; 675 675 case KStorageBus_SCSI: 676 mCtrType = new AbstractControllerType(KStorageBus_SCSI, aControllerType);676 mCtrType = new ControllerType(KStorageBus_SCSI, aControllerType); 677 677 break; 678 678 case KStorageBus_Floppy: 679 mCtrType = new AbstractControllerType(KStorageBus_Floppy, aControllerType);679 mCtrType = new ControllerType(KStorageBus_Floppy, aControllerType); 680 680 break; 681 681 case KStorageBus_SAS: 682 mCtrType = new AbstractControllerType(KStorageBus_SAS, aControllerType);682 mCtrType = new ControllerType(KStorageBus_SAS, aControllerType); 683 683 break; 684 684 case KStorageBus_USB: 685 mCtrType = new AbstractControllerType(KStorageBus_USB, aControllerType);685 mCtrType = new ControllerType(KStorageBus_USB, aControllerType); 686 686 break; 687 687 case KStorageBus_PCIe: 688 mCtrType = new AbstractControllerType(KStorageBus_PCIe, aControllerType);688 mCtrType = new ControllerType(KStorageBus_PCIe, aControllerType); 689 689 break; 690 690 case KStorageBus_VirtioSCSI: 691 mCtrType = new AbstractControllerType(KStorageBus_VirtioSCSI, aControllerType);691 mCtrType = new ControllerType(KStorageBus_VirtioSCSI, aControllerType); 692 692 break; 693 693 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r80896 r81047 150 150 }; 151 151 152 /* AbstractController Type */153 class SHARED_LIBRARY_STUFF AbstractControllerType152 /* Controller Type */ 153 class SHARED_LIBRARY_STUFF ControllerType 154 154 { 155 155 public: 156 156 157 AbstractControllerType (KStorageBus aBusType, KStorageControllerType aCtrType);158 virtual ~ AbstractControllerType() {}157 ControllerType (KStorageBus aBusType, KStorageControllerType aCtrType); 158 virtual ~ControllerType() {} 159 159 160 160 KStorageBus busType() const; … … 305 305 QString mOldCtrName; 306 306 QString mCtrName; 307 AbstractControllerType *mCtrType;307 ControllerType *mCtrType; 308 308 uint mPortCount; 309 309 bool mUseIoCache;
Note:
See TracChangeset
for help on using the changeset viewer.