VirtualBox

Ignore:
Timestamp:
Oct 2, 2018 9:38:42 AM (6 years ago)
Author:
vboxsync
Message:

DnD/DnDObject: Documentation, a bit of cleaning / re-structuring. No functional changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r74526 r74574  
    904904    AssertPtr(pObj);
    905905
    906     RTCString strPath = pObj->GetDestPath();
     906    RTCString strPath = pObj->GetDestPathAbs();
    907907    if (strPath.isEmpty())
    908908        return VERR_INVALID_PARAMETER;
     
    931931    AssertPtr(pObj);
    932932
    933     RTCString strPathSrc = pObj->GetSourcePath();
     933    RTCString strPathSrc = pObj->GetSourcePathAbs();
    934934    if (strPathSrc.isEmpty())
    935935        return VERR_INVALID_PARAMETER;
     
    965965                pMsg->setType(HOST_DND_HG_SND_FILE_HDR);
    966966                pMsg->setNextUInt32(0); /** @todo ContextID not used yet. */
    967                 pMsg->setNextString(pObj->GetDestPath().c_str());                  /* pvName */
    968                 pMsg->setNextUInt32((uint32_t)(pObj->GetDestPath().length() + 1)); /* cbName */
     967                pMsg->setNextString(pObj->GetDestPathAbs().c_str());                  /* pvName */
     968                pMsg->setNextUInt32((uint32_t)(pObj->GetDestPathAbs().length() + 1)); /* cbName */
    969969                pMsg->setNextUInt32(0);                                            /* uFlags */
    970970                pMsg->setNextUInt32(pObj->GetMode());                              /* fMode */
     
    10261026    if (mDataBase.m_uProtocolVersion <= 1)
    10271027    {
    1028         pMsg->setNextString(pObj->GetDestPath().c_str());                  /* pvName */
    1029         pMsg->setNextUInt32((uint32_t)(pObj->GetDestPath().length() + 1)); /* cbName */
     1028        pMsg->setNextString(pObj->GetDestPathAbs().c_str());                  /* pvName */
     1029        pMsg->setNextUInt32((uint32_t)(pObj->GetDestPathAbs().length() + 1)); /* cbName */
    10301030    }
    10311031    else if (mDataBase.m_uProtocolVersion >= 2)
     
    10631063        if (pObj->IsComplete()) /* Done reading? */
    10641064        {
    1065             LogRel2(("DnD: File transfer to guest complete: %s\n", pObj->GetSourcePath().c_str()));
    1066             LogFlowFunc(("File '%s' complete\n", pObj->GetSourcePath().c_str()));
     1065            LogRel2(("DnD: File transfer to guest complete: %s\n", pObj->GetSourcePathAbs().c_str()));
     1066            LogFlowFunc(("File '%s' complete\n", pObj->GetSourcePathAbs().c_str()));
    10671067
    10681068            /* DnDURIObject::Read() returns VINF_EOF when finished reading the entire fire,
     
    14671467    uint32_t fMode = pCurObj->GetMode();
    14681468    LogRel3(("DnD: Processing: srcPath=%s, dstPath=%s, fMode=0x%x, cbSize=%RU32, fIsDir=%RTbool, fIsFile=%RTbool\n",
    1469              pCurObj->GetSourcePath().c_str(), pCurObj->GetDestPath().c_str(),
     1469             pCurObj->GetSourcePathAbs().c_str(), pCurObj->GetDestPathAbs().c_str(),
    14701470             fMode, pCurObj->GetSize(),
    14711471             RTFS_IS_DIRECTORY(fMode), RTFS_IS_FILE(fMode)));
     
    14821482    {
    14831483        AssertMsgFailed(("fMode=0x%x is not supported for srcPath=%s, dstPath=%s\n",
    1484                          fMode, pCurObj->GetSourcePath().c_str(), pCurObj->GetDestPath().c_str()));
     1484                         fMode, pCurObj->GetSourcePathAbs().c_str(), pCurObj->GetDestPathAbs().c_str()));
    14851485        rc = VERR_NOT_SUPPORTED;
    14861486    }
     
    14951495    if (fRemove)
    14961496    {
    1497         LogFlowFunc(("Removing \"%s\" from list, rc=%Rrc\n", pCurObj->GetSourcePath().c_str(), rc));
     1497        LogFlowFunc(("Removing \"%s\" from list, rc=%Rrc\n", pCurObj->GetSourcePathAbs().c_str(), rc));
    14981498        pCtx->mURI.removeObjCurrent();
    14991499    }
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