Changeset 52400 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Aug 18, 2014 6:04:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/KeyboardImpl.h
r49386 r52400 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 19 #define ____H_KEYBOARDIMPL 20 20 21 #include " VirtualBoxBase.h"21 #include "KeyboardWrap.h" 22 22 #include "ConsoleEvents.h" 23 23 #include "EventImpl.h" … … 34 34 KeyboardEvent() : scan(-1) {} 35 35 KeyboardEvent(int _scan) : scan(_scan) {} 36 bool i sValid()36 bool i_isValid() 37 37 { 38 38 return (scan & ~0x80) && !(scan & ~0xFF); … … 46 46 47 47 class ATL_NO_VTABLE Keyboard : 48 public VirtualBoxBase, 49 VBOX_SCRIPTABLE_IMPL(IKeyboard) 48 public KeyboardWrap 50 49 { 51 50 public: 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()62 51 63 52 DECLARE_EMPTY_CTOR_DTOR(Keyboard) … … 70 59 void uninit(); 71 60 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 80 61 static const PDMDRVREG DrvReg; 81 62 82 Console * getParent() const63 Console *i_getParent() const 83 64 { 84 65 return mParent; … … 87 68 private: 88 69 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); 94 85 95 86 Console * const mParent;
Note:
See TracChangeset
for help on using the changeset viewer.