VirtualBox

Changeset 97523 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 14, 2022 8:58:36 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154547
Message:

Main: Add new OnMachineGroupsChanged event which fires when the groups of a machine change, bugref:10276

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r97367 r97523  
    13711371    mUserData->s.llGroups = llGroups;
    13721372
     1373    mParent->i_onMachineGroupsChanged(mData->mUuid);
    13731374    return S_OK;
    13741375}
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r97168 r97523  
    34753475
    34763476/**
     3477 *  @note Doesn't lock any object.
     3478 */
     3479void VirtualBox::i_onMachineGroupsChanged(const Guid &aId)
     3480{
     3481    ComPtr<IEvent> ptrEvent;
     3482    HRESULT hrc = ::CreateMachineGroupsChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toString(), FALSE /*aDummy*/);
     3483    AssertComRCReturnVoid(hrc);
     3484    i_postEvent(new AsyncEvent(this, ptrEvent));
     3485}
     3486
     3487/**
    34773488 *  @note Locks this object for reading.
    34783489 */
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