VirtualBox

Changeset 15715 in vbox for trunk


Ignore:
Timestamp:
Dec 22, 2008 1:15:30 PM (16 years ago)
Author:
vboxsync
Message:

#3285: Improve error handling API to include unique error numbers
Document

  • IKeyboard::putScancode
  • IKeyboard::putScancodes
  • IKeyboard::putCAD
Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r14772 r15715  
    144144
    145145    if (RT_FAILURE (vrc))
    146         rc = setError (E_FAIL, tr ("Could not send scan code 0x%08X to the virtual keyboard (%Rrc)"),
    147                        scancode, vrc);
     146        rc = setError (VBOX_E_IPRT_ERROR,
     147            tr ("Could not send scan code 0x%08X to the virtual keyboard (%Rrc)"),
     148                scancode, vrc);
    148149
    149150    return rc;
     
    182183
    183184    if (RT_FAILURE (vrc))
    184         return setError (E_FAIL, tr ("Could not send all scan codes to the virtual keyboard (%Rrc)"),
    185                          vrc);
     185        return setError (VBOX_E_IPRT_ERROR,
     186            tr ("Could not send all scan codes to the virtual keyboard (%Rrc)"),
     187                vrc);
    186188
    187189    /// @todo is it actually possible that not all scancodes can be transmitted?
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r15714 r15715  
    88848884      in <link to="IConsole::keyboard"/>.
    88858885
    8886       Through this interface, the virtual machine's virtual keyboard can be controlled. One
    8887       can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
     8886      Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
     8887      to the virtual machine.
     8888
    88888889    </desc>
    88898890    <method name="putScancode">
    8890       <desc>Sends a scancode to the keyboard.</desc>
     8891      <desc>Sends a scancode to the keyboard.
     8892
     8893        <result name="VBOX_E_IPRT_ERROR">
     8894          Could not send scan code to virtual keyboard.
     8895        </result>
     8896
     8897      </desc>
    88918898      <param name="scancode" type="long" dir="in"/>
    88928899    </method>
    88938900
    88948901    <method name="putScancodes">
    8895       <desc>Sends an array of scancode to the keyboard.</desc>
     8902      <desc>Sends an array of scancodes to the keyboard.
     8903
     8904        <result name="VBOX_E_IPRT_ERROR">
     8905          Could not send all scan codes to virtual keyboard.
     8906        </result>
     8907
     8908      </desc>
    88968909      <param name="scancodes" type="long" dir="in" safearray="yes"/>
    88978910      <param name="codesStored" type="unsigned long" dir="return"/>
     
    88998912
    89008913    <method name="putCAD">
    8901       <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
     8914      <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
     8915      function is nothing special, it is just a convenience function
     8916      calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
     8917
     8918        <result name="VBOX_E_IPRT_ERROR">
     8919          Could not send all scan codes to virtual keyboard.
     8920        </result>
     8921
     8922      </desc>
    89028923    </method>
    89038924
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