Changeset 87251 in vbox
- Timestamp:
- Jan 14, 2021 4:20:01 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r87219 r87251 114 114 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \ 115 115 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \ 116 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \117 116 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \ 118 117 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \ … … 172 171 $(if $(VBOX_WITH_NETFLT)$(eq $(KBUILD_TARGET),freebsd),VBOX_WITH_NETFLT) \ 173 172 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \ 174 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \175 173 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \ 176 174 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \ … … 225 223 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE) \ 226 224 $(if $(VBOX_WITH_KCHMVIEWER),VBOX_WITH_KCHMVIEWER) \ 227 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK) \228 225 $(if $(VBOX_WITH_HARDENING),VBOXR3_HARDENED_DLL) \ 229 226 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP) \ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r85662 r87251 3444 3444 3445 3445 /* Recache extension-pack related action restrictions: */ 3446 #ifdef VBOX_WITH_EXTPACK 3447 CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName); 3448 #else 3449 CExtPack extPack; 3450 #endif 3451 bool fExtensionPackOperationsAllowed = !extPack.isNull() && extPack.GetUsable(); 3452 if (!fExtensionPackOperationsAllowed) 3446 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 3447 if (!extPackManager.isNull() && !extPackManager.IsExtPackUsable(GUI_ExtPackName)) 3453 3448 { 3454 3449 m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuViewActionType) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r86996 r87251 3657 3657 QWidget *pParent, QString *pstrExtPackName) const 3658 3658 { 3659 /* If the extension pack manager isn't available, skip any attempts to install: */ 3660 CExtPackManager extPackManager = virtualBox().GetExtensionPackManager(); 3661 if (extPackManager.isNull()) 3662 return; 3659 3663 /* Open the extpack tarball via IExtPackManager: */ 3660 CExtPackManager comManager = virtualBox().GetExtensionPackManager();3661 3664 CExtPackFile comExtPackFile; 3662 3665 if (strDigest.isEmpty()) 3663 comExtPackFile = comManager.OpenExtPackFile(strFilePath);3666 comExtPackFile = extPackManager.OpenExtPackFile(strFilePath); 3664 3667 else 3665 3668 { 3666 3669 QString strFileAndHash = QString("%1::SHA-256=%2").arg(strFilePath).arg(strDigest); 3667 comExtPackFile = comManager.OpenExtPackFile(strFileAndHash);3668 } 3669 if (! comManager.isOk())3670 { 3671 msgCenter().cannotOpenExtPack(strFilePath, comManager, pParent);3670 comExtPackFile = extPackManager.OpenExtPackFile(strFileAndHash); 3671 } 3672 if (!extPackManager.isOk()) 3673 { 3674 msgCenter().cannotOpenExtPack(strFilePath, extPackManager, pParent); 3672 3675 return; 3673 3676 } … … 3685 3688 /* Check if there is a version of the extension pack already 3686 3689 * installed on the system and let the user decide what to do about it. */ 3687 CExtPack comExtPackCur = comManager.Find(strPackName);3690 CExtPack comExtPackCur = extPackManager.Find(strPackName); 3688 3691 bool fReplaceIt = comExtPackCur.isOk(); 3689 3692 if (fReplaceIt) -
trunk/src/VBox/Frontends/VirtualBox/src/networking/UIUpdateManager.cpp
r86996 r87251 409 409 } 410 410 411 /* Get extension pack manager: */ 412 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 413 /* Return if extension pack manager is NOT available: */ 414 if (extPackManager.isNull()) 415 { 416 emit sigStepComplete(); 417 return; 418 } 419 411 420 /* Get extension pack: */ 412 CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);421 CExtPack extPack = extPackManager.Find(GUI_ExtPackName); 413 422 /* Return if extension pack is NOT installed: */ 414 423 if (extPack.isNull()) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r86986 r87251 55 55 56 56 /* COM includes: */ 57 #include "CExtPackManager.h" 57 58 #include "CGraphicsAdapter.h" 58 59 #include "CUSBController.h" … … 325 326 break; 326 327 } 328 case GlobalSettingsPageType_Extensions: 329 return !uiCommon().virtualBox().GetExtensionPackManager().isNull(); 327 330 default: 328 331 break; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r86045 r87251 708 708 message.first = UICommon::removeAccelMark(m_pTabWidget->tabText(1)); 709 709 710 #ifdef VBOX_WITH_EXTPACK711 710 /* VRDE Extension Pack presence test: */ 712 CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName); 713 if (m_pCheckboxRemoteDisplay->isChecked() && (extPack.isNull() || !extPack.GetUsable())) 711 if (m_pCheckboxRemoteDisplay->isChecked()) 714 712 { 715 message.second << tr("Remote Display is currently enabled for this virtual machine. " 716 "However, this requires the <i>%1</i> to be installed. " 717 "Please install the Extension Pack from the VirtualBox download site as " 718 "otherwise your VM will be started with Remote Display disabled.") 719 .arg(GUI_ExtPackName); 713 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 714 if (!extPackManager.isNull() && !extPackManager.IsExtPackUsable(GUI_ExtPackName)) 715 { 716 message.second << tr("Remote Display is currently enabled for this virtual machine. " 717 "However, this requires the <i>%1</i> to be installed. " 718 "Please install the Extension Pack from the VirtualBox download site as " 719 "otherwise your VM will be started with Remote Display disabled.") 720 .arg(GUI_ExtPackName); 721 } 720 722 } 721 #endif /* VBOX_WITH_EXTPACK */722 723 723 724 /* Check VRDE server port: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r86772 r87251 414 414 if (m_pCheckBoxEncryption->isChecked()) 415 415 { 416 #ifdef VBOX_WITH_EXTPACK417 416 /* Encryption Extension Pack presence test: */ 418 const CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);419 if ( extPack.isNull() || !extPack.GetUsable())417 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 418 if (!extPackManager.isNull() && !extPackManager.IsExtPackUsable(GUI_ExtPackName)) 420 419 { 421 420 message.second << tr("You are trying to enable disk encryption for this virtual machine. " … … 425 424 fPass = false; 426 425 } 427 #endif /* VBOX_WITH_EXTPACK */428 426 429 427 /* Cipher should be chosen if once changed: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r86233 r87251 524 524 bool fPass = true; 525 525 526 #ifdef VBOX_WITH_EXTPACK527 526 /* USB 2.0/3.0 Extension Pack presence test: */ 528 const CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);529 527 if ( m_pCheckBoxUSB->isChecked() 530 && (m_pRadioButtonUSB2->isChecked() || m_pRadioButtonUSB3->isChecked()) 531 && (extPack.isNull() || !extPack.GetUsable())) 532 { 533 /* Prepare message: */ 534 UIValidationMessage message; 535 message.second << tr("USB 2.0/3.0 is currently enabled for this virtual machine. " 536 "However, this requires the <i>%1</i> to be installed. " 537 "Please install the Extension Pack from the VirtualBox download site " 538 "or disable USB 2.0/3.0 to be able to start the machine.") 539 .arg(GUI_ExtPackName); 540 /* Serialize message: */ 541 if (!message.second.isEmpty()) 542 messages << message; 543 } 544 #endif /* VBOX_WITH_EXTPACK */ 528 && (m_pRadioButtonUSB2->isChecked() || m_pRadioButtonUSB3->isChecked())) 529 { 530 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 531 if (!extPackManager.isNull() && !extPackManager.IsExtPackUsable(GUI_ExtPackName)) 532 { 533 /* Prepare message: */ 534 UIValidationMessage message; 535 message.second << tr("USB 2.0/3.0 is currently enabled for this virtual machine. " 536 "However, this requires the <i>%1</i> to be installed. " 537 "Please install the Extension Pack from the VirtualBox download site " 538 "or disable USB 2.0/3.0 to be able to start the machine.") 539 .arg(GUI_ExtPackName); 540 /* Serialize message: */ 541 if (!message.second.isEmpty()) 542 messages << message; 543 } 544 } 545 545 546 546 /* Return result: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r87249 r87251 193 193 { 194 194 /* USB 3.0 is only available if the proper ExtPack is installed: */ 195 CExtPackManager manager = uiCommon().virtualBox().GetExtensionPackManager();196 if ( manager.IsExtPackUsable(GUI_ExtPackName))195 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 196 if (extPackManager.isNull() || extPackManager.IsExtPackUsable(GUI_ExtPackName)) 197 197 { 198 198 m_machine.AddUSBController("XHCI", KUSBControllerType_XHCI); 199 /* xH ciincludes OHCI */199 /* xHCI includes OHCI */ 200 200 fOhciEnabled = true; 201 201 } … … 211 211 * necessary evil to patch over legacy compatability issues 212 212 * introduced by the new distribution model. */ 213 CExtPackManager manager = uiCommon().virtualBox().GetExtensionPackManager();214 if ( manager.IsExtPackUsable(GUI_ExtPackName))213 CExtPackManager extPackManager = uiCommon().virtualBox().GetExtensionPackManager(); 214 if (extPackManager.isNull() || extPackManager.IsExtPackUsable(GUI_ExtPackName)) 215 215 m_machine.AddUSBController("EHCI", KUSBControllerType_EHCI); 216 216 }
Note:
See TracChangeset
for help on using the changeset viewer.