VirtualBox

Changeset 90551 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 6, 2021 2:07:10 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Pass progress-canceled and progress-finished signals above from UIDownloader to possible listeners; This will be useful when UIDownloader will be integrated to notification-center.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/networking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloader.cpp

    r90542 r90551  
    8484    /* Notify listeners: */
    8585    emit sigProgressFailed(strError);
    86 
    8786    /* Delete downloader: */
    8887    deleteLater();
     
    9190void UIDownloader::processNetworkReplyCanceled(UINetworkReply *)
    9291{
     92    /* Notify listeners: */
     93    emit sigProgressCanceled();
    9394    /* Delete downloader: */
    9495    deleteLater();
     
    133134    else
    134135    {
     136        /* Notify listeners: */
     137        emit sigProgressFinished();
    135138        /* Delete downloader: */
    136139        deleteLater();
     
    151154    else
    152155    {
     156        /* Notify listeners: */
     157        emit sigProgressFinished();
    153158        /* Delete downloader: */
    154159        deleteLater();
     
    161166    handleVerifiedObject(pNetworkReply);
    162167
     168    /* Notify listeners: */
     169    emit sigProgressFinished();
    163170    /* Delete downloader: */
    164171    deleteLater();
  • trunk/src/VBox/Frontends/VirtualBox/src/networking/UIDownloader.h

    r90548 r90551  
    5454    /** Notifies listeners about progress failed with @a strError. */
    5555    void sigProgressFailed(const QString &strError);
     56    /** Notifies listeners about progress canceled. */
     57    void sigProgressCanceled();
     58    /** Notifies listeners about progress finished. */
     59    void sigProgressFinished();
    5660
    5761public:
Note: See TracChangeset for help on using the changeset viewer.

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