VirtualBox

Changeset 51056 in vbox


Ignore:
Timestamp:
Apr 11, 2014 5:09:24 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: 6660: Advanced extra-data management framework: Small cleanup.

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

Legend:

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

    r51054 r51056  
    197197}
    198198
     199UIExtraDataManager::UIExtraDataManager()
     200    : m_pHandler(new UIExtraDataEventHandler(this))
     201{
     202    /* Connect to static instance: */
     203    m_pInstance = this;
     204}
     205
     206UIExtraDataManager::~UIExtraDataManager()
     207{
     208    /* Disconnect from static instance: */
     209    m_pInstance = 0;
     210}
     211
    199212#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    200213bool UIExtraDataManager::shouldWeAllowApplicationUpdate() const
     
    434447{
    435448    return gpConverter->fromInternalString<GuruMeditationHandlerType>(extraDataString(GUI_GuruMeditationHandler, strID));
    436 }
    437 
    438 UIExtraDataManager::UIExtraDataManager()
    439     : m_pHandler(new UIExtraDataEventHandler(this))
    440 {
    441     /* Connect to static instance: */
    442     m_pInstance = this;
    443 }
    444 
    445 UIExtraDataManager::~UIExtraDataManager()
    446 {
    447     /* Disconnect from static instance: */
    448     m_pInstance = 0;
    449449}
    450450
     
    522522    CVirtualBox vbox = vboxGlobal().virtualBox();
    523523
     524    /* Make sure at least empty map is created: */
     525    m_data[QString()] = ExtraDataMap();
     526
    524527    /* Load global extra-data map: */
    525528    foreach (const QString &strKey, vbox.GetExtraDataKeys())
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r51054 r51056  
    4040{
    4141    Q_OBJECT;
     42
     43    /** Extra-data Manager constructor. */
     44    UIExtraDataManager();
     45    /** Extra-data Manager destructor. */
     46    ~UIExtraDataManager();
    4247
    4348signals:
     
    131136private:
    132137
    133     /** Extra-data Manager constructor. */
    134     UIExtraDataManager();
    135     /** Extra-data Manager destructor. */
    136     ~UIExtraDataManager();
    137 
    138138    /** Prepare Extra-data Manager. */
    139139    void prepare();
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