VirtualBox

Changeset 52400 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Aug 18, 2014 6:04:00 PM (10 years ago)
Author:
vboxsync
Message:

6813 KeyboardImpl.cpp changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/KeyboardImpl.h

    r49386 r52400  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1919#define ____H_KEYBOARDIMPL
    2020
    21 #include "VirtualBoxBase.h"
     21#include "KeyboardWrap.h"
    2222#include "ConsoleEvents.h"
    2323#include "EventImpl.h"
     
    3434    KeyboardEvent() : scan(-1) {}
    3535    KeyboardEvent(int _scan) : scan(_scan) {}
    36     bool isValid()
     36    bool i_isValid()
    3737    {
    3838        return (scan & ~0x80) && !(scan & ~0xFF);
     
    4646
    4747class ATL_NO_VTABLE Keyboard :
    48     public VirtualBoxBase,
    49     VBOX_SCRIPTABLE_IMPL(IKeyboard)
     48    public KeyboardWrap
    5049{
    5150public:
    52 
    53     VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(Keyboard, IKeyboard)
    54 
    55     DECLARE_NOT_AGGREGATABLE(Keyboard)
    56 
    57     DECLARE_PROTECT_FINAL_CONSTRUCT()
    58 
    59     BEGIN_COM_MAP(Keyboard)
    60         VBOX_DEFAULT_INTERFACE_ENTRIES(IKeyboard)
    61     END_COM_MAP()
    6251
    6352    DECLARE_EMPTY_CTOR_DTOR(Keyboard)
     
    7059    void uninit();
    7160
    72     STDMETHOD(PutScancode)(LONG scancode);
    73     STDMETHOD(PutScancodes)(ComSafeArrayIn(LONG, scancodes),
    74                             ULONG *codesStored);
    75     STDMETHOD(PutCAD)();
    76     STDMETHOD(ReleaseKeys)();
    77 
    78     STDMETHOD(COMGETTER(EventSource))(IEventSource ** aEventSource);
    79 
    8061    static const PDMDRVREG  DrvReg;
    8162
    82     Console *getParent() const
     63    Console *i_getParent() const
    8364    {
    8465        return mParent;
     
    8768private:
    8869
    89     static DECLCALLBACK(void)   keyboardLedStatusChange(PPDMIKEYBOARDCONNECTOR pInterface, PDMKEYBLEDS enmLeds);
    90     static DECLCALLBACK(void)   keyboardSetActive(PPDMIKEYBOARDCONNECTOR pInterface, bool fActive);
    91     static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
    92     static DECLCALLBACK(int)    drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    93     static DECLCALLBACK(void)   drvDestruct(PPDMDRVINS pDrvIns);
     70    // Wrapped Keyboard properties
     71    HRESULT getEventSource(ComPtr<IEventSource> &aEventSource);
     72    HRESULT putScancode(LONG aScancode);
     73    HRESULT putScancodes(const std::vector<LONG> &aScancodes,
     74                         ULONG *aCodesStored);
     75
     76    // Wrapped Keyboard members
     77    HRESULT putCAD();
     78    HRESULT releaseKeys();
     79
     80    static DECLCALLBACK(void)   i_keyboardLedStatusChange(PPDMIKEYBOARDCONNECTOR pInterface, PDMKEYBLEDS enmLeds);
     81    static DECLCALLBACK(void)   i_keyboardSetActive(PPDMIKEYBOARDCONNECTOR pInterface, bool fActive);
     82    static DECLCALLBACK(void *) i_drvQueryInterface(PPDMIBASE pInterface, const char *pszIID);
     83    static DECLCALLBACK(int)    i_drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
     84    static DECLCALLBACK(void)   i_drvDestruct(PPDMDRVINS pDrvIns);
    9485
    9586    Console * const         mParent;
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