VirtualBox

Ignore:
Timestamp:
Aug 11, 2020 9:36:37 AM (4 years ago)
Author:
vboxsync
Message:

DnD: Lots of documentation.

File:
1 edited

Legend:

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

    r85564 r85681  
    6060    virtual ~GuestDnDTargetTask(void) { }
    6161
     62    /** Returns the overall result of the task. */
    6263    int getRC(void) const { return mRC; }
     64    /** Returns if the overall result of the task is ok (succeeded) or not. */
    6365    bool isOk(void) const { return RT_SUCCESS(mRC); }
    6466
    6567protected:
    6668
     69    /** COM object pointer to the parent (source). */
    6770    const ComObjPtr<GuestDnDTarget>     mTarget;
     71    /** Overall result of the task. */
    6872    int                                 mRC;
    6973};
     
    670674}
    671675
     676/**
     677 * Returns an error string from a guest DnD error.
     678 *
     679 * @returns Error string.
     680 * @param   guestRc             Guest error to return error string for.
     681 */
    672682/* static */
    673683Utf8Str GuestDnDTarget::i_guestErrorToString(int guestRc)
     
    708718}
    709719
     720/**
     721 * Returns an error string from a host DnD error.
     722 *
     723 * @returns Error string.
     724 * @param   hostRc              Host error to return error string for.
     725 */
    710726/* static */
    711727Utf8Str GuestDnDTarget::i_hostErrorToString(int hostRc)
     
    742758}
    743759
     760/**
     761 * Resets all internal data and state.
     762 */
    744763void GuestDnDTarget::i_reset(void)
    745764{
     
    919938}
    920939
     940/**
     941 * Sends a directory entry to the guest.
     942 *
     943 * @returns VBox status code.
     944 * @param   pCtx                Send context to use.
     945 * @param   pObj                Transfer object to send. Must be a directory.
     946 * @param   pMsg                Where to store the message to send.
     947 */
    921948int GuestDnDTarget::i_sendDirectory(GuestDnDSendCtx *pCtx, PDNDTRANSFEROBJECT pObj, GuestDnDMsg *pMsg)
    922949{
     
    942969
    943970/**
    944  * Sends a transfer file to the guest.
     971 * Sends a file to the guest.
    945972 *
    946973 * @returns VBox status code.
    947  * @param   pCtx
    948  * @param   pObj
    949  * @param   pMsg
     974 * @param   pCtx                Send context to use.
     975 * @param   pObj                Transfer object to send. Must be a file.
     976 * @param   pMsg                Where to store the message to send.
    950977 */
    951978int GuestDnDTarget::i_sendFile(GuestDnDSendCtx *pCtx,
     
    10341061}
    10351062
     1063/**
     1064 * Helper function to send actual file data to the guest.
     1065 *
     1066 * @returns VBox status code.
     1067 * @param   pCtx                Send context to use.
     1068 * @param   pObj                Transfer object to send. Must be a file.
     1069 * @param   pMsg                Where to store the message to send.
     1070 */
    10361071int GuestDnDTarget::i_sendFileData(GuestDnDSendCtx *pCtx,
    10371072                                   PDNDTRANSFEROBJECT pObj, GuestDnDMsg *pMsg)
     
    11131148}
    11141149
     1150/**
     1151 * Static HGCM service callback which handles sending transfer data to the guest.
     1152 *
     1153 * @returns VBox status code. Will get sent back to the host service.
     1154 * @param   uMsg                HGCM message ID (function number).
     1155 * @param   pvParms             Pointer to additional message data. Optional and can be NULL.
     1156 * @param   cbParms             Size (in bytes) additional message data. Optional and can be 0.
     1157 * @param   pvUser              User-supplied pointer on callback registration.
     1158 */
    11151159/* static */
    11161160DECLCALLBACK(int) GuestDnDTarget::i_sendTransferDataCallback(uint32_t uMsg, void *pvParms, size_t cbParms, void *pvUser)
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