VirtualBox

Changeset 78396 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 6, 2019 5:22:19 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7127: Few more messages for media related section of message-center.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r78395 r78396  
    14651465}
    14661466
     1467void UIMessageCenter::cannotOpenKnownMedium(const CVirtualBox &comVBox, const QUuid &uMediumId, QWidget *pParent /* = 0 */) const
     1468{
     1469    /* Show the error: */
     1470    error(pParent, MessageType_Error,
     1471          tr("Failed to open the medium with following ID: <nobr><b>%1</b></nobr>.").arg(uMediumId.toString()), UIErrorString::formatErrorInfo(comVBox));
     1472}
     1473
     1474void UIMessageCenter::cannotAcquireAttachmentMedium(const CMediumAttachment &comAttachment, QWidget *pParent /* = 0 */) const
     1475{
     1476    /* Show the error: */
     1477    error(pParent, MessageType_Error,
     1478          tr("Failed to acquire attachment medium."), UIErrorString::formatErrorInfo(comAttachment));
     1479}
     1480
     1481void UIMessageCenter::cannotAcquireMediumAttribute(const CMedium &comMedium, QWidget *pParent /* = 0 */) const
     1482{
     1483    /* Show the error: */
     1484    error(pParent, MessageType_Error,
     1485          tr("Failed to acquire medium attribute."), UIErrorString::formatErrorInfo(comMedium));
     1486}
     1487
    14671488void UIMessageCenter::cannotCloseMedium(const UIMedium &medium, const COMResult &rc, QWidget *pParent /* = 0*/) const
    14681489{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r78395 r78396  
    343343    bool cannotRemountMedium(const CMachine &machine, const UIMedium &medium, bool fMount, bool fRetry, QWidget *pParent = 0) const;
    344344    void cannotOpenMedium(const CVirtualBox &comVBox, const QString &strLocation, QWidget *pParent = 0) const;
     345    void cannotOpenKnownMedium(const CVirtualBox &comVBox, const QUuid &uMediumId, QWidget *pParent = 0) const;
     346    void cannotAcquireAttachmentMedium(const CMediumAttachment &comAttachment, QWidget *pParent = 0) const;
     347    void cannotAcquireMediumAttribute(const CMedium &comMedium, QWidget *pParent = 0) const;
    345348    void cannotCloseMedium(const UIMedium &medium, const COMResult &rc, QWidget *pParent = 0) const;
    346349
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