VirtualBox

Changeset 35157 in vbox


Ignore:
Timestamp:
Dec 15, 2010 5:13:27 PM (14 years ago)
Author:
vboxsync
Message:

Main: OnGuestMonitorDisabled event.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r35148 r35157  
    2424#include "AutoCaller.h"
    2525#include "Logging.h"
     26
     27/* generated header */
     28#include "VBoxEvents.h"
    2629
    2730#include <iprt/semaphore.h>
     
    38463849
    38473850    DISPLAYFBINFO *pFBInfo = &pThis->maFramebuffers[pScreen->u32ViewIndex];
     3851
     3852    if (pScreen->u16Flags & VBVA_SCREEN_F_DISABLED)
     3853    {
     3854        fireGuestMonitorDisabledEvent(pThis->mParent->getEventSource(), pScreen->u32ViewIndex);
     3855        return VINF_SUCCESS;
     3856    }
    38483857
    38493858    /* Check if this is a real resize or a notification about the screen origin.
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r35146 r35157  
    1476514765  <enum
    1476614766    name="VBoxEventType"
    14767     uuid="c9412a17-c1e1-46db-b4b7-18de9c967e85"
     14767    uuid="f33c82ca-1379-43a5-9211-8caae647e694"
    1476814768    >
    1476914769
     
    1501815018      </desc>
    1501915019    </const>
     15020    <const name="OnGuestMonitorDisabled" value="71">
     15021      <desc>
     15022        See <link to="IGuestMonitorDisabledEvent">IGuestMonitorDisabledEvent</link>.
     15023      </desc>
     15024    </const>
    1502015025
    1502115026    <!-- Last event marker -->
    15022     <const name="Last" value="71">
     15027    <const name="Last" value="72">
    1502315028      <desc>
    1502415029        Must be last event, used for iterations and structures relying on numerical event values.
     
    1633916344  </interface>
    1634016345
     16346  <interface
     16347    name="IGuestMonitorDisabledEvent" extends="IEvent"
     16348    uuid="87760f7d-05fc-40d8-be04-5bf2763a51d5"
     16349    wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorDisabled"
     16350    >
     16351    <desc>
     16352      Notification when the guest disables one of its monitors.
     16353    </desc>
     16354
     16355    <attribute name="screenId" type="unsigned long" readonly="yes">
     16356      <desc>
     16357        The monitor which was disabled.
     16358      </desc>
     16359    </attribute>
     16360  </interface>
     16361
    1634116362  <module name="VBoxSVC" context="LocalServer">
    1634216363    <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r35034 r35157  
    211211    ExtPackManager *getExtPackManager();
    212212#endif
     213    EventSource *getEventSource() { return mEventSource; }
    213214
    214215    int VRDPClientLogon(uint32_t u32ClientId, const char *pszUser, const char *pszPassword, const char *pszDomain);
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