VirtualBox

Changeset 78801 in vbox for trunk


Ignore:
Timestamp:
May 28, 2019 7:39:19 AM (6 years ago)
Author:
vboxsync
Message:

API: add IGuestMonitorInfoChangedEvent.
bugref:9472: API: let the GUI notice video mode hints from other sources.
API users (mainly front-ends) can listen for this event to detect video mode
hints/monitor changes, including those triggered by other API users.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r78786 r78801  
    2316123161  <enum
    2316223162    name="VBoxEventType"
    23163     uuid="822087CA-4703-49E4-B20D-C6D794E67969"
     23163    uuid="d5d15e38-808d-11e9-aaac-4bc5d973ca37"
    2316423164    >
    2316523165
     
    2357023570      </desc>
    2357123571    </const>
     23572    <const name="OnGuestMonitorInfoChanged" value="101">
     23573      <desc>
     23574        See <link to="IGuestMonitorInfoChangedEvent">IGuestMonitorInfoChangedEvent</link>.
     23575      </desc>
     23576    </const>
    2357223577    <!-- Last event marker -->
    23573     <const name="Last" value="101">
     23578    <const name="Last" value="102">
    2357423579      <desc>
    2357523580        Must be last event, used for iterations and structures relying on numerical event values.
     
    2566425669    <attribute name="y" readonly="yes" type="unsigned long">
    2566525670      <desc>Reported Y position</desc>
     25671    </attribute>
     25672  </interface>
     25673
     25674  <interface
     25675    name="IGuestMonitorInfoChangedEvent" extends="IEvent"
     25676    uuid="0b3cdeb2-808e-11e9-b773-133d9330f849"
     25677    wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorInfoChanged">
     25678    <desc>The guest reports cursor position data.</desc>
     25679
     25680    <attribute name="output" readonly="yes" type="unsigned long">
     25681      <desc>The virtual display output on which the monitor has changed.</desc>
    2566625682    </attribute>
    2566725683  </interface>
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r78784 r78801  
    20262026            pVMMDevPort->pfnRequestDisplayChange(pVMMDevPort, 1, &d, false);
    20272027    }
    2028     /* Remember the monitor information. */
     2028    /* Remember the monitor information and notify listeners. */
    20292029    maFramebuffers[aDisplay].monitorDesc = d;
     2030    fireGuestMonitorInfoChangedEvent(mParent->i_getEventSource(), aDisplay);
    20302031    return S_OK;
    20312032}
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