- Timestamp:
- Sep 18, 2019 12:51:11 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r80884 r80888 2611 2611 } 2612 2612 2613 bool UICommon::isFullMediumEnumerationRequested() const 2614 { 2615 /* Redirect request to medium-enumerator: */ 2616 return m_pMediumEnumerator 2617 && m_pMediumEnumerator->isFullMediumEnumerationRequested(); 2618 } 2619 2613 2620 bool UICommon::isMediumEnumerationInProgress() const 2614 2621 { … … 2616 2623 return m_pMediumEnumerator 2617 2624 && m_pMediumEnumerator->isMediumEnumerationInProgress(); 2618 }2619 2620 bool UICommon::isFullMediumEnumerationRequested() const2621 {2622 /* Redirect request to medium-enumerator: */2623 return m_pMediumEnumerator2624 && m_pMediumEnumerator->isFullMediumEnumerationRequested();2625 2625 } 2626 2626 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r80884 r80888 488 488 /** Calls refresh for each medium which has been already enumerated. */ 489 489 void refreshMedia(); 490 /** Returns whether medium-enumeration is in progress. */491 bool isMediumEnumerationInProgress() const;492 490 /** Returns whether full medium-enumeration is requested. */ 493 491 bool isFullMediumEnumerationRequested() const; 492 /** Returns whether any medium-enumeration is in progress. */ 493 bool isMediumEnumerationInProgress() const; 494 494 /** Returns enumerated medium with certain @a uMediumID. */ 495 495 UIMedium medium(const QUuid &uMediumID) const; -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r80884 r80888 97 97 98 98 UIMediumEnumerator::UIMediumEnumerator() 99 : m_f MediumEnumerationInProgress(false)100 , m_fMediumEnumeration Requested(false)99 : m_fFullMediumEnumerationRequested(false) 100 , m_fMediumEnumerationInProgress(false) 101 101 { 102 102 /* Allow UIMedium to be used in inter-thread signals: */ … … 175 175 if (comMedia.isEmpty()) 176 176 { 177 m_f MediumEnumerationRequested = true;177 m_fFullMediumEnumerationRequested = true; 178 178 addMediaToMap(uiCommon().virtualBox().GetHardDisks(), media); 179 179 addMediaToMap(uiCommon().host().GetDVDDrives(), media); … … 184 184 else 185 185 { 186 m_f MediumEnumerationRequested = false;186 m_fFullMediumEnumerationRequested = false; 187 187 addMediaToMap(uiCommon().host().GetDVDDrives(), media); 188 188 addMediaToMap(uiCommon().virtualBox().GetDVDImages(), media); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h
r80884 r80888 76 76 void createMedium(const UIMedium &guiMedium); 77 77 78 /** Returns whether consolidated medium-enumeration process is in progress. */ 78 /** Returns whether full consolidated medium-enumeration process is requested. */ 79 bool isFullMediumEnumerationRequested() const { return m_fFullMediumEnumerationRequested; } 80 /** Returns whether any consolidated medium-enumeration process is in progress. */ 79 81 bool isMediumEnumerationInProgress() const { return m_fMediumEnumerationInProgress; } 80 /** Returns whether full consolidated medium-enumeration process is requested. */81 bool isFullMediumEnumerationRequested() const { return m_fMediumEnumerationRequested; }82 82 /** Makes a request to enumerate specified @a comMedia. 83 83 * @note Previous map will be replaced with the new one, values present in both … … 155 155 void enumerateAllMediaOfMediumWithId(const QUuid &uMediumId, QList<QUuid> &result); 156 156 157 /** Holds whether consolidated medium-enumeration process is in progress. */ 157 /** Holds whether full consolidated medium-enumeration process is requested. */ 158 bool m_fFullMediumEnumerationRequested; 159 /** Holds whether any consolidated medium-enumeration process is in progress. */ 158 160 bool m_fMediumEnumerationInProgress; 159 /** Holds whether full consolidated medium-enumeration process is requested. */160 bool m_fMediumEnumerationRequested;161 161 162 162 /** Holds a set of current medium-enumeration tasks. */
Note:
See TracChangeset
for help on using the changeset viewer.