Changeset 85304 in vbox
- Timestamp:
- Jul 13, 2020 10:14:38 AM (4 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r85286 r85304 167 167 void i_onStorageControllerChanged(const Guid &aMachineId, const com::Utf8Str &aControllerName); 168 168 void i_onStorageDeviceChanged(IMediumAttachment* aStorageDevice, const BOOL fRemoved, const BOOL fSilent); 169 void i_onMachineStateChange (const Guid &aId, MachineState_T aState);170 void i_onMachineDataChange (const Guid &aId, BOOL aTemporary = FALSE);169 void i_onMachineStateChanged(const Guid &aId, MachineState_T aState); 170 void i_onMachineDataChanged(const Guid &aId, BOOL aTemporary = FALSE); 171 171 BOOL i_onExtraDataCanChange(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue, 172 172 Bstr &aError); 173 void i_onExtraDataChange (const Guid &aId, IN_BSTR aKey, IN_BSTR aValue);173 void i_onExtraDataChanged(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue); 174 174 void i_onMachineRegistered(const Guid &aId, BOOL aRegistered); 175 void i_onSessionStateChange (const Guid &aId, SessionState_T aState);175 void i_onSessionStateChanged(const Guid &aId, SessionState_T aState); 176 176 177 177 void i_onSnapshotTaken(const Guid &aMachineId, const Guid &aSnapshotId); 178 178 void i_onSnapshotDeleted(const Guid &aMachineId, const Guid &aSnapshotId); 179 179 void i_onSnapshotRestored(const Guid &aMachineId, const Guid &aSnapshotId); 180 void i_onSnapshotChange (const Guid &aMachineId, const Guid &aSnapshotId);180 void i_onSnapshotChanged(const Guid &aMachineId, const Guid &aSnapshotId); 181 181 182 182 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS … … 192 192 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 193 193 194 void i_onGuestPropertyChange(const Guid &aMachineId, IN_BSTR aName, IN_BSTR aValue, 195 IN_BSTR aFlags); 196 void i_onNatRedirectChange(const Guid &aMachineId, ULONG ulSlot, bool fRemove, IN_BSTR aName, 197 NATProtocol_T aProto, IN_BSTR aHostIp, uint16_t aHostPort, 198 IN_BSTR aGuestIp, uint16_t aGuestPort); 199 void i_onNATNetworkChange(IN_BSTR aNetworkName); 194 void i_onGuestPropertyChanged(const Guid &aMachineId, IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags); 195 void i_onNatRedirectChanged(const Guid &aMachineId, ULONG ulSlot, bool fRemove, IN_BSTR aName, 196 NATProtocol_T aProto, IN_BSTR aHostIp, uint16_t aHostPort, 197 IN_BSTR aGuestIp, uint16_t aGuestPort); 198 void i_onNATNetworkChanged(IN_BSTR aNetworkName); 200 199 void i_onNATNetworkStartStop(IN_BSTR aNetworkName, BOOL aStart); 201 200 void i_onNATNetworkSetting(IN_BSTR aNetworkName, BOOL aEnabled, IN_BSTR aNetwork, -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r85300 r85304 952 952 /* make sure interesting parties will notice the accessibility 953 953 * state change */ 954 mParent->i_onMachineStateChange (mData->mUuid, mData->mMachineState);955 mParent->i_onMachineDataChange (mData->mUuid);954 mParent->i_onMachineStateChanged(mData->mUuid, mData->mMachineState); 955 mParent->i_onMachineDataChanged(mData->mUuid); 956 956 } 957 957 } … … 3242 3242 if (oldState != SessionState_Locked) 3243 3243 /* fire an event */ 3244 mParent->i_onSessionStateChange (i_getId(), SessionState_Locked);3244 mParent->i_onSessionStateChanged(i_getId(), SessionState_Locked); 3245 3245 } 3246 3246 … … 3339 3339 3340 3340 /* fire an event */ 3341 mParent->i_onSessionStateChange (i_getId(), SessionState_Spawning);3341 mParent->i_onSessionStateChanged(i_getId(), SessionState_Spawning); 3342 3342 } 3343 3343 } … … 4739 4739 // fire notification outside the lock 4740 4740 if (fChanged) 4741 mParent->i_onExtraDataChange (mData->mUuid, Bstr(aKey).raw(), Bstr(aValue).raw());4741 mParent->i_onExtraDataChanged(mData->mUuid, Bstr(aKey).raw(), Bstr(aValue).raw()); 4742 4742 4743 4743 return S_OK; … … 5523 5523 alock.release(); 5524 5524 5525 mParent->i_onGuestPropertyChange(mData->mUuid, 5526 Bstr(aName).raw(), 5527 Bstr(aValue).raw(), 5528 Bstr(aFlags).raw()); 5525 mParent->i_onGuestPropertyChanged(mData->mUuid, Bstr(aName).raw(), Bstr(aValue).raw(), Bstr(aFlags).raw()); 5529 5526 } 5530 5527 } … … 7779 7776 mData->mSession.mPID = NIL_RTPROCESS; 7780 7777 7781 mParent->i_onSessionStateChange (mData->mUuid, SessionState_Unlocked);7778 mParent->i_onSessionStateChanged(mData->mUuid, SessionState_Unlocked); 7782 7779 return true; 7783 7780 } … … 8384 8381 VBOXAPI_MACHINE_STATE_CHANGED(this, aMachineState, enmOldState, mData->mUuid.toStringCurly().c_str()); 8385 8382 #endif 8386 mParent->i_onMachineStateChange (mData->mUuid, aMachineState);8383 mParent->i_onMachineStateChanged(mData->mUuid, aMachineState); 8387 8384 } 8388 8385 … … 9851 9848 * inform callbacks. */ 9852 9849 if (i_isSessionMachine()) 9853 mParent->i_onMachineDataChange (mData->mUuid);9850 mParent->i_onMachineDataChanged(mData->mUuid); 9854 9851 } 9855 9852 … … 12677 12674 12678 12675 /* fire an event */ 12679 mParent->i_onSessionStateChange (mData->mUuid, SessionState_Unlocked);12676 mParent->i_onSessionStateChanged(mData->mUuid, SessionState_Unlocked); 12680 12677 12681 12678 uninitDataAndChildObjects(); … … 13539 13536 alock.release(); 13540 13537 13541 mParent->i_onGuestPropertyChange(mData->mUuid, 13542 Bstr(aName).raw(), 13543 Bstr(aValue).raw(), 13544 Bstr(aFlags).raw()); 13538 mParent->i_onGuestPropertyChanged(mData->mUuid, Bstr(aName).raw(), Bstr(aValue).raw(), Bstr(aFlags).raw()); 13545 13539 } 13546 13540 catch (...) … … 13884 13878 */ 13885 13879 13886 mParent->i_onNatRedirectChange (i_getId(), ulSlot, RT_BOOL(aNatRuleRemove), aRuleName, aProto, aHostIp,13887 (uint16_t)aHostPort, aGuestIp, (uint16_t)aGuestPort);13880 mParent->i_onNatRedirectChanged(i_getId(), ulSlot, RT_BOOL(aNatRuleRemove), aRuleName, aProto, aHostIp, 13881 (uint16_t)aHostPort, aGuestIp, (uint16_t)aGuestPort); 13888 13882 return S_OK; 13889 13883 } -
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r85261 r85304 1402 1402 1403 1403 /* inform callbacks */ 1404 mParent->i_onSnapshotChange (uuidMachine, uuidSnapshot);1404 mParent->i_onSnapshotChanged(uuidMachine, uuidSnapshot); 1405 1405 1406 1406 return rc; -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r85302 r85304 2550 2550 // fire notification outside the lock 2551 2551 if (fChanged) 2552 i_onExtraDataChange (Guid::Empty, Bstr(aKey).raw(), Bstr(aValue).raw());2552 i_onExtraDataChanged(Guid::Empty, Bstr(aKey).raw(), Bstr(aValue).raw()); 2553 2553 2554 2554 return rc; … … 3290 3290 * @note Doesn't lock any object. 3291 3291 */ 3292 void VirtualBox::i_onMachineStateChange (const Guid &aId, MachineState_T aState)3292 void VirtualBox::i_onMachineStateChanged(const Guid &aId, MachineState_T aState) 3293 3293 { 3294 3294 ComPtr<IEvent> ptrEvent; … … 3301 3301 * @note Doesn't lock any object. 3302 3302 */ 3303 void VirtualBox::i_onMachineDataChange (const Guid &aId, BOOL aTemporary)3303 void VirtualBox::i_onMachineDataChanged(const Guid &aId, BOOL aTemporary) 3304 3304 { 3305 3305 ComPtr<IEvent> ptrEvent; … … 3352 3352 /** 3353 3353 * @note Doesn't lock any object. 3354 * @todo +d 3355 */ 3356 void VirtualBox::i_onExtraDataChange(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue) 3354 */ 3355 void VirtualBox::i_onExtraDataChanged(const Guid &aId, IN_BSTR aKey, IN_BSTR aValue) 3357 3356 { 3358 3357 ComPtr<IEvent> ptrEvent; … … 3375 3374 /** 3376 3375 * @note Doesn't lock any object. 3377 * @todo +d 3378 */ 3379 void VirtualBox::i_onSessionStateChange(const Guid &aId, SessionState_T aState) 3376 */ 3377 void VirtualBox::i_onSessionStateChanged(const Guid &aId, SessionState_T aState) 3380 3378 { 3381 3379 ComPtr<IEvent> ptrEvent; … … 3423 3421 /** 3424 3422 * @note Doesn't lock any object. 3425 * @todo +d 3426 */ 3427 void VirtualBox::i_onSnapshotChange(const Guid &aMachineId, const Guid &aSnapshotId) 3423 */ 3424 void VirtualBox::i_onSnapshotChanged(const Guid &aMachineId, const Guid &aSnapshotId) 3428 3425 { 3429 3426 ComPtr<IEvent> ptrEvent; … … 3713 3710 /** 3714 3711 * @note Doesn't lock any object. 3715 * @todo +d 3716 */ 3717 void VirtualBox::i_onGuestPropertyChange(const Guid &aMachineId, IN_BSTR aName, 3718 IN_BSTR aValue, IN_BSTR aFlags) 3712 */ 3713 void VirtualBox::i_onGuestPropertyChanged(const Guid &aMachineId, IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags) 3719 3714 { 3720 3715 ComPtr<IEvent> ptrEvent; … … 3727 3722 /** 3728 3723 * @note Doesn't lock any object. 3729 * @todo +d 3730 */ 3731 void VirtualBox::i_onNatRedirectChange(const Guid &aMachineId, ULONG ulSlot, bool fRemove, IN_BSTR aName, 3732 NATProtocol_T aProto, IN_BSTR aHostIp, uint16_t aHostPort, 3733 IN_BSTR aGuestIp, uint16_t aGuestPort) 3724 */ 3725 void VirtualBox::i_onNatRedirectChanged(const Guid &aMachineId, ULONG ulSlot, bool fRemove, IN_BSTR aName, 3726 NATProtocol_T aProto, IN_BSTR aHostIp, uint16_t aHostPort, 3727 IN_BSTR aGuestIp, uint16_t aGuestPort) 3734 3728 { 3735 3729 ::FireNATRedirectEvent(m->pEventSource, aMachineId.toUtf16().raw(), ulSlot, fRemove, aName, aProto, aHostIp, … … 3737 3731 } 3738 3732 3739 /** @todo +d*/3740 void VirtualBox::i_onNATNetworkChange (IN_BSTR aName)3733 /** @todo Unused!! */ 3734 void VirtualBox::i_onNATNetworkChanged(IN_BSTR aName) 3741 3735 { 3742 3736 ::FireNATNetworkChangedEvent(m->pEventSource, aName);
Note:
See TracChangeset
for help on using the changeset viewer.