Changeset 85681 in vbox for trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
- Timestamp:
- Aug 11, 2020 9:36:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r85564 r85681 60 60 virtual ~GuestDnDTargetTask(void) { } 61 61 62 /** Returns the overall result of the task. */ 62 63 int getRC(void) const { return mRC; } 64 /** Returns if the overall result of the task is ok (succeeded) or not. */ 63 65 bool isOk(void) const { return RT_SUCCESS(mRC); } 64 66 65 67 protected: 66 68 69 /** COM object pointer to the parent (source). */ 67 70 const ComObjPtr<GuestDnDTarget> mTarget; 71 /** Overall result of the task. */ 68 72 int mRC; 69 73 }; … … 670 674 } 671 675 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 */ 672 682 /* static */ 673 683 Utf8Str GuestDnDTarget::i_guestErrorToString(int guestRc) … … 708 718 } 709 719 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 */ 710 726 /* static */ 711 727 Utf8Str GuestDnDTarget::i_hostErrorToString(int hostRc) … … 742 758 } 743 759 760 /** 761 * Resets all internal data and state. 762 */ 744 763 void GuestDnDTarget::i_reset(void) 745 764 { … … 919 938 } 920 939 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 */ 921 948 int GuestDnDTarget::i_sendDirectory(GuestDnDSendCtx *pCtx, PDNDTRANSFEROBJECT pObj, GuestDnDMsg *pMsg) 922 949 { … … 942 969 943 970 /** 944 * Sends a transferfile to the guest.971 * Sends a file to the guest. 945 972 * 946 973 * @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. 950 977 */ 951 978 int GuestDnDTarget::i_sendFile(GuestDnDSendCtx *pCtx, … … 1034 1061 } 1035 1062 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 */ 1036 1071 int GuestDnDTarget::i_sendFileData(GuestDnDSendCtx *pCtx, 1037 1072 PDNDTRANSFEROBJECT pObj, GuestDnDMsg *pMsg) … … 1113 1148 } 1114 1149 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 */ 1115 1159 /* static */ 1116 1160 DECLCALLBACK(int) GuestDnDTarget::i_sendTransferDataCallback(uint32_t uMsg, void *pvParms, size_t cbParms, void *pvUser)
Note:
See TracChangeset
for help on using the changeset viewer.