Changeset 98963 in vbox
- Timestamp:
- Mar 14, 2023 2:36:10 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r98952 r98963 303 303 { 304 304 CMachine comMachine = machine(); 305 if (comMachine.isNull()) 306 return false; 305 307 const KChipsetType enmChipsetType = comMachine.GetChipsetType(); 306 308 const bool fSuccess = comMachine.isOk(); … … 315 317 { 316 318 CMachine comMachine = machine(); 319 if (comMachine.isNull()) 320 return false; 317 321 const KMachineState enmMachineState = comMachine.GetState(); 318 322 const bool fSuccess = comMachine.isOk(); … … 433 437 { 434 438 CKeyboard comKeyboard = keyboard(); 439 if (comKeyboard.isNull()) 440 return false; 435 441 comKeyboard.PutScancodes(codes); 436 442 const bool fSuccess = comKeyboard.isOk(); … … 473 479 { 474 480 CMouse comMouse = mouse(); 481 if (comMouse.isNull()) 482 return false; 475 483 const BOOL fAbsoluteSupported = comMouse.GetAbsoluteSupported(); 476 484 const bool fSuccess = comMouse.isOk(); … … 485 493 { 486 494 CMouse comMouse = mouse(); 495 if (comMouse.isNull()) 496 return false; 487 497 const BOOL fRelativeSupported = comMouse.GetRelativeSupported(); 488 498 const bool fSuccess = comMouse.isOk(); … … 497 507 { 498 508 CMouse comMouse = mouse(); 509 if (comMouse.isNull()) 510 return false; 499 511 const BOOL fTouchScreenSupported = comMouse.GetTouchScreenSupported(); 500 512 const bool fSuccess = comMouse.isOk(); … … 509 521 { 510 522 CMouse comMouse = mouse(); 523 if (comMouse.isNull()) 524 return false; 511 525 const BOOL fTouchPadSupported = comMouse.GetTouchPadSupported(); 512 526 const bool fSuccess = comMouse.isOk(); … … 521 535 { 522 536 CMouse comMouse = mouse(); 537 if (comMouse.isNull()) 538 return false; 523 539 const BOOL fNeedsHostCursor = comMouse.GetNeedsHostCursor(); 524 540 const bool fSuccess = comMouse.isOk(); … … 533 549 { 534 550 CMouse comMouse = mouse(); 551 if (comMouse.isNull()) 552 return false; 535 553 comMouse.PutMouseEvent(iDx, iDy, iDz, iDw, iButtonState); 536 554 const bool fSuccess = comMouse.isOk(); … … 543 561 { 544 562 CMouse comMouse = mouse(); 563 if (comMouse.isNull()) 564 return false; 545 565 comMouse.PutMouseEventAbsolute(iX, iY, iDz, iDw, iButtonState); 546 566 const bool fSuccess = comMouse.isOk(); … … 553 573 { 554 574 CMouse comMouse = mouse(); 575 if (comMouse.isNull()) 576 return false; 555 577 comMouse.PutEventMultiTouch(iCount, contacts, fIsTouchScreen, uScanTime); 556 578 const bool fSuccess = comMouse.isOk(); … … 563 585 { 564 586 CMachine comMachine = machine(); 587 if (comMachine.isNull()) 588 return false; 565 589 const KClipboardMode enmClipboardMode = comMachine.GetClipboardMode(); 566 590 const bool fSuccess = comMachine.isOk(); … … 585 609 { 586 610 CMachine comMachine = machine(); 611 if (comMachine.isNull()) 612 return false; 587 613 const KDnDMode enmDnDMode = comMachine.GetDnDMode(); 588 614 const bool fSuccess = comMachine.isOk(); … … 607 633 { 608 634 const CMachine comMachine = machine(); 635 if (comMachine.isNull()) 636 return false; 609 637 ulong cActualHardDisks = 0, cActualOpticalDrives = 0, cActualFloppyDrives = 0; 610 638 const CMediumAttachmentVector comAttachments = comMachine.GetMediumAttachments(); … … 963 991 /* Check whether USB device filters are available: */ 964 992 CMachine comMachine = machine(); 993 if (comMachine.isNull()) 994 return; 965 995 CUSBDeviceFilters comUSBDeviceFilters = comMachine.GetUSBDeviceFilters(); 966 996 if (!comMachine.isOk() || comUSBDeviceFilters.isNull()) … … 989 1019 /* Check whether USB controllers are available: */ 990 1020 CMachine comMachine = machine(); 1021 if (comMachine.isNull()) 1022 return; 991 1023 CUSBControllerVector comUSBControllers = comMachine.GetUSBControllers(); 992 1024 if (!comMachine.isOk() || comUSBControllers.isEmpty()) … … 1323 1355 { 1324 1356 CMachine comMachine = machine(); 1357 if (comMachine.isNull()) 1358 return false; 1325 1359 CAudioSettings comSettings = comMachine.GetAudioSettings(); 1326 1360 const bool fSuccess = comMachine.isOk(); … … 1533 1567 1534 1568 CMachine comMachine = machine(); 1569 if (comMachine.isNull()) 1570 return false; 1535 1571 CGraphicsAdapter comAdapter = comMachine.GetGraphicsAdapter(); 1536 1572 bool fSuccess = comMachine.isOk(); … … 1735 1771 { 1736 1772 CDisplay comDisplay = display(); 1773 if (comDisplay.isNull()) 1774 return false; 1737 1775 comDisplay.ViewportChanged(uScreenId, xOrigin, yOrigin, uWidth, uHeight); 1738 1776 const bool fSuccess = comDisplay.isOk(); … … 1765 1803 { 1766 1804 CMachine comMachine = machine(); 1805 if (comMachine.isNull()) 1806 return false; 1767 1807 CVRDEServer comServer = comMachine.GetVRDEServer(); 1768 1808 fPresent = comMachine.isOk() && comServer.isNotNull(); … … 1884 1924 { 1885 1925 CMachine comMachine = machine(); 1926 if (comMachine.isNull()) 1927 return; 1886 1928 UIDetailsGenerator::acquireHardDiskStatusInfo(comMachine, strInfo, fAttachmentsPresent); 1887 1929 } … … 1890 1932 { 1891 1933 CMachine comMachine = machine(); 1934 if (comMachine.isNull()) 1935 return; 1892 1936 UIDetailsGenerator::acquireOpticalDiskStatusInfo(comMachine, strInfo, fAttachmentsPresent, fAttachmentsMounted); 1893 1937 } … … 1896 1940 { 1897 1941 CMachine comMachine = machine(); 1942 if (comMachine.isNull()) 1943 return; 1898 1944 UIDetailsGenerator::acquireFloppyDiskStatusInfo(comMachine, strInfo, fAttachmentsPresent, fAttachmentsMounted); 1899 1945 } … … 1902 1948 { 1903 1949 CMachine comMachine = machine(); 1950 if (comMachine.isNull()) 1951 return; 1904 1952 UIDetailsGenerator::acquireAudioStatusInfo(comMachine, strInfo, fAudioEnabled, fEnabledOutput, fEnabledInput); 1905 1953 } … … 1908 1956 { 1909 1957 CMachine comMachine = machine(); 1958 if (comMachine.isNull()) 1959 return; 1910 1960 UIDetailsGenerator::acquireNetworkStatusInfo(comMachine, strInfo, fAdaptersPresent, fCablesDisconnected); 1911 1961 } … … 1914 1964 { 1915 1965 CMachine comMachine = machine(); 1966 if (comMachine.isNull()) 1967 return; 1916 1968 CConsole comConsole = console(); 1969 if (comConsole.isNull()) 1970 return; 1917 1971 UIDetailsGenerator::acquireUsbStatusInfo(comMachine, comConsole, strInfo, fUsbEnableds); 1918 1972 } … … 1921 1975 { 1922 1976 CMachine comMachine = machine(); 1977 if (comMachine.isNull()) 1978 return; 1923 1979 CConsole comConsole = console(); 1980 if (comConsole.isNull()) 1981 return; 1924 1982 CGuest comGuest = guest(); 1983 if (comGuest.isNull()) 1984 return; 1925 1985 UIDetailsGenerator::acquireSharedFoldersStatusInfo(comMachine, comConsole, comGuest, strInfo, fFoldersPresent); 1926 1986 } … … 1929 1989 { 1930 1990 CMachine comMachine = machine(); 1991 if (comMachine.isNull()) 1992 return; 1931 1993 UIDetailsGenerator::acquireDisplayStatusInfo(comMachine, strInfo, fAcceleration3D); 1932 1994 } … … 1935 1997 { 1936 1998 CMachine comMachine = machine(); 1999 if (comMachine.isNull()) 2000 return; 1937 2001 fMachinePaused = isPaused(); 1938 2002 UIDetailsGenerator::acquireRecordingStatusInfo(comMachine, strInfo, fRecordingEnabled); … … 1944 2008 { 1945 2009 CMachine comMachine = machine(); 2010 if (comMachine.isNull()) 2011 return; 1946 2012 UIDetailsGenerator::acquireFeaturesStatusInfo(comMachine, strInfo, 1947 2013 enmEngine, … … 2025 2091 { 2026 2092 CMachineDebugger comDebugger = debugger(); 2093 if (comDebugger.isNull()) 2094 return false; 2027 2095 const BOOL fLogEnabled = comDebugger.GetLogEnabled(); 2028 2096 const bool fSuccess = comDebugger.isOk(); … … 2049 2117 { 2050 2118 CMachine comMachine = machine(); 2119 if (comMachine.isNull()) 2120 return false; 2051 2121 const KParavirtProvider enmParavirtProvider = comMachine.GetEffectiveParavirtProvider(); 2052 2122 const bool fSuccess = comMachine.isOk(); … … 2061 2131 { 2062 2132 CMachineDebugger comDebugger = debugger(); 2133 if (comDebugger.isNull()) 2134 return false; 2063 2135 const KVMExecutionEngine enmEngineType = comDebugger.GetExecutionEngine(); 2064 2136 const bool fSuccess = comDebugger.isOk(); … … 2073 2145 { 2074 2146 CMachineDebugger comDebugger = debugger(); 2147 if (comDebugger.isNull()) 2148 return false; 2075 2149 const BOOL fFeatureEnabled = comDebugger.GetHWVirtExNestedPagingEnabled(); 2076 2150 const bool fSuccess = comDebugger.isOk(); … … 2085 2159 { 2086 2160 CMachineDebugger comDebugger = debugger(); 2161 if (comDebugger.isNull()) 2162 return false; 2087 2163 const BOOL fFeatureEnabled = comDebugger.GetHWVirtExUXEnabled(); 2088 2164 const bool fSuccess = comDebugger.isOk();
Note:
See TracChangeset
for help on using the changeset viewer.