VirtualBox

Changeset 74459 in vbox for trunk


Ignore:
Timestamp:
Sep 25, 2018 2:29:05 PM (6 years ago)
Author:
vboxsync
Message:

DnD/VBoxClient: Logging, renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp

    r74439 r74459  
    513513    /* Guest -> Host handling. */
    514514    int ghIsDnDPending(void);
    515     int ghDropped(const RTCString &strFormat, uint32_t action);
     515    int ghDropped(const RTCString &strFormat, VBOXDNDACTION dndActionRequested);
    516516#endif
    517517
     
    16721672{
    16731673    LogFlowThisFunc(("mode=%RU32, state=%RU32\n", m_enmMode, m_enmState));
    1674     LogFlowThisFunc(("uPosX=%RU32, uPosY=%RU32, dndActionDefault=%RU32\n", uPosX, uPosY, dndActionDefault));
     1674    LogFlowThisFunc(("uPosX=%RU32, uPosY=%RU32, dndActionDefault=0x%x\n", uPosX, uPosY, dndActionDefault));
    16751675
    16761676    if (   m_enmMode  != HG
     
    18691869    RT_NOREF3(uPosX, uPosY, dndActionDefault);
    18701870    LogFlowThisFunc(("wndCur=%RU32, wndProxy=%RU32, mode=%RU32, state=%RU32\n", m_wndCur, m_wndProxy.hWnd, m_enmMode, m_enmState));
    1871     LogFlowThisFunc(("uPosX=%RU32, uPosY=%RU32, dndActionDefault=%RU32\n", uPosX, uPosY, dndActionDefault));
     1871    LogFlowThisFunc(("uPosX=%RU32, uPosY=%RU32, dndActionDefault=0x%x\n", uPosX, uPosY, dndActionDefault));
    18721872
    18731873    if (   m_enmMode  != HG
     
    21062106    rc2 = VbglR3DnDGHSendAckPending(&m_dndCtx, dndActionDefault, dndActionList,
    21072107                                    strFormats.c_str(), strFormats.length() + 1 /* Include termination */);
    2108     LogFlowThisFunc(("uClientID=%RU32, uDefAction=0x%x, uLstActions=0x%x, strFormats=%s, rc=%Rrc\n",
     2108    LogFlowThisFunc(("uClientID=%RU32, dndActionDefault=0x%x, dndActionList=0x%x, strFormats=%s, rc=%Rrc\n",
    21092109                     m_dndCtx.uClientID, dndActionDefault, dndActionList, strFormats.c_str(), rc2));
    21102110    if (RT_FAILURE(rc2))
     
    21252125 * @returns IPRT status code.
    21262126 * @param   strFormat               Requested format to send to the host.
    2127  * @param   uAction                 Requested action to perform on the guest.
    2128  */
    2129 int DragInstance::ghDropped(const RTCString &strFormat, uint32_t uAction)
    2130 {
    2131     LogFlowThisFunc(("mode=%RU32, state=%RU32, strFormat=%s, uAction=%RU32\n",
    2132                      m_enmMode, m_enmState, strFormat.c_str(), uAction));
     2127 * @param   dndActionRequested      Requested action to perform on the guest.
     2128 */
     2129int DragInstance::ghDropped(const RTCString &strFormat, VBOXDNDACTION dndActionRequested)
     2130{
     2131    LogFlowThisFunc(("mode=%RU32, state=%RU32, strFormat=%s, dndActionRequested=0x%x\n",
     2132                     m_enmMode, m_enmState, strFormat.c_str(), dndActionRequested));
    21332133
    21342134    /* Currently in wrong mode? Bail out. */
     
    22642264                    if (RT_SUCCESS(rc))
    22652265                    {
    2266                         rc = m_wndProxy.sendFinished(wndSource, uAction);
     2266                        rc = m_wndProxy.sendFinished(wndSource, dndActionRequested);
    22672267                    }
    22682268                    else
     
    29332933    bool fDropAccepted = dndAction > VBOX_DND_ACTION_IGNORE;
    29342934
    2935     LogFlowFunc(("dndAction=%RU32\n", dndAction));
     2935    LogFlowFunc(("dndAction=0x%x\n", dndAction));
    29362936
    29372937    /* Confirm the result of the transfer to the target window. */
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