VirtualBox

Changeset 85301 in vbox for trunk


Ignore:
Timestamp:
Jul 13, 2020 10:07:20 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139279
Message:

Main: CreateXxxxEvent -> ::CreateXxxxEvent. bugref:9790

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r85300 r85301  
    73627362    {
    73637363        *aCanShow = TRUE;
    7364         HRESULT hrc = CreateCanShowWindowEvent(ptrEvent.asOutParam(), mEventSource);
     7364        HRESULT hrc = ::CreateCanShowWindowEvent(ptrEvent.asOutParam(), mEventSource);
    73657365        if (SUCCEEDED(hrc))
    73667366        {
     
    73877387    else
    73887388    {
    7389         HRESULT hrc = CreateShowWindowEvent(ptrEvent.asOutParam(), mEventSource, 0);
     7389        HRESULT hrc = ::CreateShowWindowEvent(ptrEvent.asOutParam(), mEventSource, 0);
    73907390        if (SUCCEEDED(hrc))
    73917391        {
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r85300 r85301  
    269269
    270270    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*/);
    273273    AssertComRCReturnRC(rc);
    274274    mMouseEvent.init(ptrEvent, mEventSource);
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r85300 r85301  
    32453245{
    32463246    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);
    32493249    AssertComRCReturnVoid(hrc);
    32503250    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    32543254{
    32553255    ComPtr<IEvent> ptrEvent;
    3256     HRESULT hrc = CreateMediumConfigChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMedium);
     3256    HRESULT hrc = ::CreateMediumConfigChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMedium);
    32573257    AssertComRCReturnVoid(hrc);
    32583258    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    32623262{
    32633263    ComPtr<IEvent> ptrEvent;
    3264     HRESULT hrc = CreateMediumChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMediumAttachment);
     3264    HRESULT hrc = ::CreateMediumChangedEvent(ptrEvent.asOutParam(), m->pEventSource, aMediumAttachment);
    32653265    AssertComRCReturnVoid(hrc);
    32663266    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    32733273{
    32743274    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());
    32773277    AssertComRCReturnVoid(hrc);
    32783278    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    32823282{
    32833283    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);
    32853285    AssertComRCReturnVoid(hrc);
    32863286    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    32933293{
    32943294    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);
    32963296    AssertComRCReturnVoid(hrc);
    32973297    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    33043304{
    33053305    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);
    33073307    AssertComRCReturnVoid(hrc);
    33083308    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    33213321
    33223322    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);
    33243324    AssertComRCReturn(hrc, TRUE);
    33253325
     
    33573357{
    33583358    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);
    33603360    AssertComRCReturnVoid(hrc);
    33613361    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    33683368{
    33693369    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);
    33713371    AssertComRCReturnVoid(hrc);
    33723372    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    33803380{
    33813381    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);
    33833383    AssertComRCReturnVoid(hrc);
    33843384    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    33913391{
    33923392    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,
    34063394                                             aMachineId.toUtf16().raw(), aSnapshotId.toUtf16().raw());
    34073395    AssertComRCReturnVoid(hrc);
     
    34123400 *  @note Doesn't lock any object.
    34133401 */
    3414 void VirtualBox::i_onSnapshotRestored(const Guid &aMachineId, const Guid &aSnapshotId)
     3402void VirtualBox::i_onSnapshotDeleted(const Guid &aMachineId, const Guid &aSnapshotId)
    34153403{
    34163404    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());
    34193407    AssertComRCReturnVoid(hrc);
    34203408    i_postEvent(new AsyncEvent(this, ptrEvent));
     
    34233411/**
    34243412 *  @note Doesn't lock any object.
     3413 */
     3414void 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.
    34253425 *  @todo +d
    34263426 */
     
    34283428{
    34293429    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());
    34323432    AssertComRCReturnVoid(hrc);
    34333433    i_postEvent(new AsyncEvent(this, ptrEvent));
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