Changeset 79337 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 25, 2019 5:49:15 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131565
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r79205 r79337 2622 2622 } 2623 2623 2624 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 2624 2625 void VBoxGlobal::deleteMedium(const QUuid &uMediumID) 2625 2626 { … … 2632 2633 } 2633 2634 } 2635 #endif 2634 2636 2635 2637 QUuid VBoxGlobal::openMedium(UIMediumDeviceType enmMediumType, QString strMediumLocation, QWidget *pParent /* = 0 */) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r79205 r79337 494 494 /** Creates medium on the basis of passed @a guiMedium description. */ 495 495 void createMedium(const UIMedium &guiMedium); 496 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 496 497 /** Deletes medium with certain @a uMediumID. */ 497 498 void deleteMedium(const QUuid &uMediumID); 499 #endif 498 500 499 501 /** Opens external medium by passed @a strMediumLocation. -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r79234 r79337 166 166 } 167 167 168 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 168 169 void UIMediumEnumerator::deleteMedium(const QUuid &uMediumID) 169 170 { … … 180 181 emit sigMediumDeleted(uMediumID); 181 182 } 183 #endif 182 184 183 185 void UIMediumEnumerator::startMediumEnumeration(const CMediumVector &comMedia /* = CMediumVector() */) -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h
r79205 r79337 77 77 /** Creates UIMedium thus caching it internally on the basis of passed @a guiMedium information. */ 78 78 void createMedium(const UIMedium &guiMedium); 79 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 79 80 /** Deletes UIMedium with specified @a uMediumID thus removing it from internal cache. */ 80 81 void deleteMedium(const QUuid &uMediumID); 82 #endif 81 83 82 84 /** Returns whether consolidated medium-enumeration process is in progress. */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp
r78392 r79337 423 423 /* Remember some of hard-disk attributes: */ 424 424 CMedium hardDisk = medium().medium(); 425 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 425 426 QUuid uMediumID = id(); 427 #endif 426 428 427 429 /* Propose to remove medium storage: */ … … 437 439 } 438 440 441 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 439 442 /* Remove UIMedium finally: */ 440 443 vboxGlobal().deleteMedium(uMediumID); 444 #endif 441 445 442 446 /* True by default: */ … … 550 554 /* Remember some of optical-disk attributes: */ 551 555 CMedium image = medium().medium(); 556 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 552 557 QUuid uMediumID = id(); 558 #endif 553 559 554 560 /* Close optical-disk: */ … … 560 566 } 561 567 568 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 562 569 /* Remove UIMedium finally: */ 563 570 vboxGlobal().deleteMedium(uMediumID); 571 #endif 564 572 565 573 /* True by default: */ … … 621 629 /* Remember some of floppy-disk attributes: */ 622 630 CMedium image = medium().medium(); 631 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 623 632 QUuid uMediumID = id(); 633 #endif 624 634 625 635 /* Close floppy-disk: */ … … 631 641 } 632 642 643 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 633 644 /* Remove UIMedium finally: */ 634 645 vboxGlobal().deleteMedium(uMediumID); 646 #endif 635 647 636 648 /* True by default: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r77291 r79337 112 112 113 113 /* Remember virtual-disk attributes: */ 114 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 114 115 QUuid uMediumID = m_virtualDisk.GetId(); 116 #endif 115 117 QString strLocation = m_virtualDisk.GetLocation(); 116 118 /* Prepare delete storage progress: */ … … 126 128 msgCenter().cannotDeleteHardDiskStorage(m_virtualDisk, strLocation, thisImp()); 127 129 130 #ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS 128 131 /* Inform VBoxGlobal about it: */ 129 132 vboxGlobal().deleteMedium(uMediumID); 133 #endif 130 134 131 135 /* Detach virtual-disk anyway: */
Note:
See TracChangeset
for help on using the changeset viewer.