org.virtualbox_4_2
Class IKeyboard

java.lang.Object
  extended by org.virtualbox_4_2.IUnknown
      extended by org.virtualbox_4_2.IKeyboard

public class IKeyboard
extends IUnknown

The IKeyboard interface represents the virtual machine's keyboard. Used in IConsole.getKeyboard(). Use this interface to send keystrokes or the Ctrl-Alt-Del sequence to the virtual machine. Interface ID: {F6916EC5-A881-4237-898F-7DE58CF88672}


Field Summary
 
Fields inherited from class org.virtualbox_4_2.IUnknown
obj, port
 
Constructor Summary
IKeyboard(java.lang.String wrapped, org.virtualbox_4_2.jaxws.VboxPortType port)
           
 
Method Summary
 IEventSource getEventSource()
          Event source for keyboard events.
 void putCAD()
          Sends the Ctrl-Alt-Del sequence to the keyboard.
 void putScancode(java.lang.Integer scancode)
          Sends a scancode to the keyboard.
 java.lang.Long putScancodes(java.util.List<java.lang.Integer> scancodes)
          Sends an array of scancodes to the keyboard.
static IKeyboard queryInterface(IUnknown obj)
           
 
Methods inherited from class org.virtualbox_4_2.IUnknown
getRemoteWSPort, getWrapped, releaseRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IKeyboard

public IKeyboard(java.lang.String wrapped,
                 org.virtualbox_4_2.jaxws.VboxPortType port)
Method Detail

getEventSource

public IEventSource getEventSource()
Event source for keyboard events.

Returns:
org.virtualbox_4_2.IEventSource

queryInterface

public static IKeyboard queryInterface(IUnknown obj)

putScancode

public void putScancode(java.lang.Integer scancode)
Sends a scancode to the keyboard. Expected result codes:
@link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR Could not send scan code to virtual keyboard.


putScancodes

public java.lang.Long putScancodes(java.util.List<java.lang.Integer> scancodes)
Sends an array of scancodes to the keyboard. Expected result codes:
@link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR Could not send all scan codes to virtual keyboard.


putCAD

public void putCAD()
Sends the Ctrl-Alt-Del sequence to the keyboard. This function is nothing special, it is just a convenience function calling putScancodes(List) with the proper scancodes. Expected result codes:
@link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR Could not send all scan codes to virtual keyboard.