VirtualBox

Changeset 91843 in vbox


Ignore:
Timestamp:
Oct 19, 2021 5:15:37 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147644
Message:

FE/Qt: bugref:10067: Notification-center: Extend UINotificationProgress with getter for finished status.

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  
    111111UINotificationProgress::UINotificationProgress()
    112112    : m_pTask(0)
     113    , m_fFinished(false)
    113114    , m_uPercent(0)
    114115{
     
    119120    delete m_pTask;
    120121    m_pTask = 0;
     122}
     123
     124bool UINotificationProgress::isFinished() const
     125{
     126    return m_fFinished;
    121127}
    122128
     
    186192void UINotificationProgress::sltHandleProgressFinished()
    187193{
     194    m_fFinished = true;
    188195    m_uPercent = 100;
    189196    emit sigProgressFinished();
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.h

    r91075 r91843  
    149149    virtual CProgress createProgress(COMResult &comResult) = 0;
    150150
     151    /** Returns whether progress is finished. */
     152    bool isFinished() const;
    151153    /** Returns current progress percentage value. */
    152154    ulong percent() const;
     
    183185    UINotificationProgressTask *m_pTask;
    184186
     187    /** Holds whether progress is finished. */
     188    bool   m_fFinished;
    185189    /** Holds the last cached progress percentage value. */
    186190    ulong  m_uPercent;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette