- Timestamp:
- Jul 13, 2020 10:07:20 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139279
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r85300 r85301 7362 7362 { 7363 7363 *aCanShow = TRUE; 7364 HRESULT hrc = CreateCanShowWindowEvent(ptrEvent.asOutParam(), mEventSource);7364 HRESULT hrc = ::CreateCanShowWindowEvent(ptrEvent.asOutParam(), mEventSource); 7365 7365 if (SUCCEEDED(hrc)) 7366 7366 { … … 7387 7387 else 7388 7388 { 7389 HRESULT hrc = CreateShowWindowEvent(ptrEvent.asOutParam(), mEventSource, 0);7389 HRESULT hrc = ::CreateShowWindowEvent(ptrEvent.asOutParam(), mEventSource, 0); 7390 7390 if (SUCCEEDED(hrc)) 7391 7391 { -
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r85300 r85301 269 269 270 270 ComPtr<IEvent> ptrEvent; 271 rc = CreateGuestMouseEvent(ptrEvent.asOutParam(), mEventSource,272 (GuestMouseEventMode_T)0, 0 /*x*/, 0 /*y*/, 0 /*z*/, 0 /*w*/, 0 /*buttons*/);271 rc = ::CreateGuestMouseEvent(ptrEvent.asOutParam(), mEventSource, 272 (GuestMouseEventMode_T)0, 0 /*x*/, 0 /*y*/, 0 /*z*/, 0 /*w*/, 0 /*buttons*/); 273 273 AssertComRCReturnRC(rc); 274 274 mMouseEvent.init(ptrEvent, mEventSource); -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r85300 r85301 3245 3245 { 3246 3246 ComPtr<IEvent> ptrEvent; 3247 HRESULT hrc = CreateMediumRegisteredEvent(ptrEvent.asOutParam(), m->pEventSource,3248 aMediumId.toUtf16().raw(), aDevType, aRegistered);3247 HRESULT hrc = ::CreateMediumRegisteredEvent(ptrEvent.asOutParam(), m->pEventSource, 3248 aMediumId.toUtf16().raw(), aDevType, aRegistered); 3249 3249 AssertComRCReturnVoid(hrc); 3250 3250 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3254 3254 { 3255 3255 ComPtr<IEvent> ptrEvent; 3256 HRESULT hrc = CreateMediumConfigChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMedium);3256 HRESULT hrc = ::CreateMediumConfigChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMedium); 3257 3257 AssertComRCReturnVoid(hrc); 3258 3258 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3262 3262 { 3263 3263 ComPtr<IEvent> ptrEvent; 3264 HRESULT hrc = CreateMediumChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMediumAttachment);3264 HRESULT hrc = ::CreateMediumChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMediumAttachment); 3265 3265 AssertComRCReturnVoid(hrc); 3266 3266 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3273 3273 { 3274 3274 ComPtr<IEvent> ptrEvent; 3275 HRESULT hrc = CreateStorageControllerChangedEvent(ptrEvent.asOutParam(), m->pEventSource,3276 aMachineId.toUtf16().raw(), Bstr(aControllerName).raw());3275 HRESULT hrc = ::CreateStorageControllerChangedEvent(ptrEvent.asOutParam(), m->pEventSource, 3276 aMachineId.toUtf16().raw(), Bstr(aControllerName).raw()); 3277 3277 AssertComRCReturnVoid(hrc); 3278 3278 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3282 3282 { 3283 3283 ComPtr<IEvent> ptrEvent; 3284 HRESULT hrc = CreateStorageDeviceChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aStorageDevice, fRemoved, fSilent);3284 HRESULT hrc = ::CreateStorageDeviceChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aStorageDevice, fRemoved, fSilent); 3285 3285 AssertComRCReturnVoid(hrc); 3286 3286 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3293 3293 { 3294 3294 ComPtr<IEvent> ptrEvent; 3295 HRESULT hrc = CreateMachineStateChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aState);3295 HRESULT hrc = ::CreateMachineStateChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aState); 3296 3296 AssertComRCReturnVoid(hrc); 3297 3297 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3304 3304 { 3305 3305 ComPtr<IEvent> ptrEvent; 3306 HRESULT hrc = CreateMachineDataChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aTemporary);3306 HRESULT hrc = ::CreateMachineDataChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aTemporary); 3307 3307 AssertComRCReturnVoid(hrc); 3308 3308 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3321 3321 3322 3322 ComPtr<IEvent> ptrEvent; 3323 HRESULT hrc = CreateExtraDataCanChangeEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aKey, aValue);3323 HRESULT hrc = ::CreateExtraDataCanChangeEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aKey, aValue); 3324 3324 AssertComRCReturn(hrc, TRUE); 3325 3325 … … 3357 3357 { 3358 3358 ComPtr<IEvent> ptrEvent; 3359 HRESULT hrc = CreateExtraDataChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aKey, aValue);3359 HRESULT hrc = ::CreateExtraDataChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aKey, aValue); 3360 3360 AssertComRCReturnVoid(hrc); 3361 3361 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3368 3368 { 3369 3369 ComPtr<IEvent> ptrEvent; 3370 HRESULT hrc = CreateMachineRegisteredEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aRegistered);3370 HRESULT hrc = ::CreateMachineRegisteredEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aRegistered); 3371 3371 AssertComRCReturnVoid(hrc); 3372 3372 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3380 3380 { 3381 3381 ComPtr<IEvent> ptrEvent; 3382 HRESULT hrc = CreateSessionStateChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aState);3382 HRESULT hrc = ::CreateSessionStateChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aId.toUtf16().raw(), aState); 3383 3383 AssertComRCReturnVoid(hrc); 3384 3384 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3391 3391 { 3392 3392 ComPtr<IEvent> ptrEvent; 3393 HRESULT hrc = CreateSnapshotTakenEvent(ptrEvent.asOutParam(), m->pEventSource, 3394 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw()); 3395 AssertComRCReturnVoid(hrc); 3396 i_postEvent(new AsyncEvent(this, ptrEvent)); 3397 } 3398 3399 /** 3400 * @note Doesn't lock any object. 3401 */ 3402 void VirtualBox::i_onSnapshotDeleted(const Guid &aMachineId, const Guid &aSnapshotId) 3403 { 3404 ComPtr<IEvent> ptrEvent; 3405 HRESULT hrc = CreateSnapshotDeletedEvent(ptrEvent.asOutParam(), m->pEventSource, 3393 HRESULT hrc = ::CreateSnapshotTakenEvent(ptrEvent.asOutParam(), m->pEventSource, 3406 3394 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw()); 3407 3395 AssertComRCReturnVoid(hrc); … … 3412 3400 * @note Doesn't lock any object. 3413 3401 */ 3414 void VirtualBox::i_onSnapshot Restored(const Guid &aMachineId, const Guid &aSnapshotId)3402 void VirtualBox::i_onSnapshotDeleted(const Guid &aMachineId, const Guid &aSnapshotId) 3415 3403 { 3416 3404 ComPtr<IEvent> ptrEvent; 3417 HRESULT hrc = CreateSnapshotRestoredEvent(ptrEvent.asOutParam(), m->pEventSource,3418 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw());3405 HRESULT hrc = ::CreateSnapshotDeletedEvent(ptrEvent.asOutParam(), m->pEventSource, 3406 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw()); 3419 3407 AssertComRCReturnVoid(hrc); 3420 3408 i_postEvent(new AsyncEvent(this, ptrEvent)); … … 3423 3411 /** 3424 3412 * @note Doesn't lock any object. 3413 */ 3414 void VirtualBox::i_onSnapshotRestored(const Guid &aMachineId, const Guid &aSnapshotId) 3415 { 3416 ComPtr<IEvent> ptrEvent; 3417 HRESULT hrc = ::CreateSnapshotRestoredEvent(ptrEvent.asOutParam(), m->pEventSource, 3418 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw()); 3419 AssertComRCReturnVoid(hrc); 3420 i_postEvent(new AsyncEvent(this, ptrEvent)); 3421 } 3422 3423 /** 3424 * @note Doesn't lock any object. 3425 3425 * @todo +d 3426 3426 */ … … 3428 3428 { 3429 3429 ComPtr<IEvent> ptrEvent; 3430 HRESULT hrc = CreateSnapshotChangedEvent(ptrEvent.asOutParam(), m->pEventSource,3431 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw());3430 HRESULT hrc = ::CreateSnapshotChangedEvent(ptrEvent.asOutParam(), m->pEventSource, 3431 aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw()); 3432 3432 AssertComRCReturnVoid(hrc); 3433 3433 i_postEvent(new AsyncEvent(this, ptrEvent));
Note:
See TracChangeset
for help on using the changeset viewer.