VirtualBox

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


Ignore:
Timestamp:
Jun 19, 2014 11:28:05 AM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: 6660: Advanced extra-data management framework: Integrate GUI_CloseActionHook.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r51663 r51664  
    10111011}
    10121012
     1013QString UIExtraDataManager::machineCloseHookScript(const QString &strID) const
     1014{
     1015    return extraDataString(GUI_CloseActionHook, strID);
     1016}
     1017
    10131018void UIExtraDataManager::sltExtraDataChange(QString strMachineID, QString strKey, QString strValue)
    10141019{
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r51663 r51664  
    297297    void setLastMachineCloseAction(MachineCloseAction machineCloseAction, const QString &strID);
    298298
     299    /** Returns machine close hook script name as simple string. */
     300    QString machineCloseHookScript(const QString &strID) const;
     301
    299302private slots:
    300303
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r51158 r51664  
    3939#include "UIConverter.h"
    4040#include "UIModalWindowManager.h"
     41#include "UIExtraDataManager.h"
    4142
    4243/* COM includes: */
     
    262263
    263264    /* If there is a close hook script defined: */
    264     QString strScript = m.GetExtraData(GUI_CloseActionHook);
     265    const QString strScript = gEDataManager->machineCloseHookScript(vboxGlobal().managedVMUuid());
    265266    if (!strScript.isEmpty())
    266267    {
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