Changeset 91843 in vbox
- Timestamp:
- Oct 19, 2021 5:15:37 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147644
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp
r91239 r91843 111 111 UINotificationProgress::UINotificationProgress() 112 112 : m_pTask(0) 113 , m_fFinished(false) 113 114 , m_uPercent(0) 114 115 { … … 119 120 delete m_pTask; 120 121 m_pTask = 0; 122 } 123 124 bool UINotificationProgress::isFinished() const 125 { 126 return m_fFinished; 121 127 } 122 128 … … 186 192 void UINotificationProgress::sltHandleProgressFinished() 187 193 { 194 m_fFinished = true; 188 195 m_uPercent = 100; 189 196 emit sigProgressFinished(); -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.h
r91075 r91843 149 149 virtual CProgress createProgress(COMResult &comResult) = 0; 150 150 151 /** Returns whether progress is finished. */ 152 bool isFinished() const; 151 153 /** Returns current progress percentage value. */ 152 154 ulong percent() const; … … 183 185 UINotificationProgressTask *m_pTask; 184 186 187 /** Holds whether progress is finished. */ 188 bool m_fFinished; 185 189 /** Holds the last cached progress percentage value. */ 186 190 ulong m_uPercent;
Note:
See TracChangeset
for help on using the changeset viewer.