Changeset 67242 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 2, 2017 3:09:35 PM (8 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ProgressImpl.h
r67230 r67242 141 141 bool i_setCancelCallback(void (*pfnCallback)(void *), void *pvUser); 142 142 143 static DECLCALLBACK(int) i_iprtProgressCallback(unsigned uPrecentage, void *pvUser); 143 static DECLCALLBACK(int) i_iprtProgressCallback(unsigned uPercentage, void *pvUser); 144 static DECLCALLBACK(int) Progress::i_vdProgressCallback(void *pvUser, unsigned uPercentage); 144 145 145 146 protected: -
trunk/src/VBox/Main/src-all/ProgressImpl.cpp
r67230 r67242 538 538 539 539 /** 540 * @callback_method_impl{FNRTPROGRESS, } 541 */ 542 /*static*/ DECLCALLBACK(int) Progress::i_iprtProgressCallback(unsigned uPrecentage, void *pvUser) 540 * @callback_method_impl{FNRTPROGRESS, 541 * Works the progress of the current operation.} 542 */ 543 /*static*/ DECLCALLBACK(int) Progress::i_iprtProgressCallback(unsigned uPercentage, void *pvUser) 543 544 { 544 545 Progress *pThis = (Progress *)pvUser; … … 553 554 pThis->i_checkForAutomaticTimeout(); 554 555 if (!pThis->mCanceled) 555 pThis->m_ulOperationPercent = RT_MIN(uPrecentage, 100); 556 { 557 if (uPercentage > pThis->m_ulOperationPercent) 558 pThis->m_ulOperationPercent = RT_MIN(uPercentage, 100); 559 } 556 560 else 557 561 { … … 564 568 } 565 569 570 /** 571 * @callback_method_impl{FNVDPROGRESS, 572 * Progress::i_iprtProgressCallback with parameters switched around.} 573 */ 574 /*static*/ DECLCALLBACK(int) Progress::i_vdProgressCallback(void *pvUser, unsigned uPercentage) 575 { 576 return i_iprtProgressCallback(uPercentage, pvUser); 577 } 566 578 567 579 // IProgress properties
Note:
See TracChangeset
for help on using the changeset viewer.