Changeset 33790 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 5, 2010 12:39:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r33789 r33790 567 567 } 568 568 569 569 /** 570 * Appends a new to-copy object to a copy list. 571 * 572 * @return IPRT status code. 573 * @param pszFileSource Full qualified source path of file to copy. 574 * @param pszFileDest Full qualified destination path. 575 * @param pList Copy list used for insertion. 576 */ 570 577 int ctrlCopyDirectoryEntryAppend(const char *pszFileSource, const char *pszFileDest, 571 578 PRTLISTNODE pList) … … 596 603 597 604 /** 598 * TODO 605 * Reads a specified directory (recursively) based on the copy flags 606 * and appends all matching entries to the supplied list. 599 607 * 600 608 * @return IPRT status code. 601 * @return int 602 * @param pszRootDir 603 * @param pszSubDir 604 * @param pszFilter 605 * @param uFlags 606 * @param pcObjects 607 * @param pList 609 * @param pszRootDir Directory to start with. Must end with 610 * a trailing slash and must be absolute. 611 * @param pszSubDir Sub directory part relative to the root 612 * directory; needed for recursion. 613 * @param pszFilter Search filter (e.g. *.pdf). 614 * @param uFlags Copy flags. 615 * @param pcObjects Where to store the overall objects to 616 * copy found. 617 * @param pList Pointer to the object list to use. 608 618 */ 609 619 int ctrlCopyDirectoryRead(const char *pszRootDir, const char *pszSubDir, const char *pszFilter, … … 734 744 735 745 /** 736 * TODO 746 * Initializes the copy process and builds up an object list 747 * with all required information to start the actual copy process. 737 748 * 738 749 * @return IPRT status code. 739 * @return int 740 * @param pszSource 741 * @param pszDest 742 * @param uFlags 743 * @param pcObjects 744 * @param pList 750 * @param pszSource Source path on host to use. 751 * @param pszDest Destination path on guest to use. 752 * @param uFlags Copy flags. 753 * @param pcObjects Where to store the count of objects to be copied. 754 * @param pList Where to store the object list. 745 755 */ 746 756 int ctrlCopyInit(const char *pszSource, const char *pszDest, uint32_t uFlags, … … 818 828 819 829 /** 820 * TODO 821 * 822 * @return IPRT status code. 830 * Destroys a copy list. 823 831 */ 824 832 void ctrlCopyDestroy(PRTLISTNODE pList) … … 848 856 849 857 /** 850 * TODO858 * Copys a file from host to the guest. 851 859 * 852 860 * @return IPRT status code. 853 * @return int 854 * @param pGuest 855 * @param pszSource 856 * @param pszDest 857 * @param pszUserName 858 * @param pszPassword 859 * @param uFlags 861 * @param pGuest IGuest interface pointer. 862 * @param pszSource Source path of existing host file to copy. 863 * @param pszDest Destination path on guest to copy the file to. 864 * @param pszUserName User name on guest to use for the copy operation. 865 * @param pszPassword Password of user account. 866 * @param uFlags Copy flags. 860 867 */ 861 int ctrlCopyFile (IGuest *pGuest, const char *pszSource, const char *pszDest,862 const char *pszUserName, const char *pszPassword,863 uint32_t uFlags)868 int ctrlCopyFileToGuest(IGuest *pGuest, const char *pszSource, const char *pszDest, 869 const char *pszUserName, const char *pszPassword, 870 uint32_t uFlags) 864 871 { 865 872 AssertPtrReturn(pszSource, VERR_INVALID_PARAMETER); … … 1170 1177 /* Finally copy the desired file (if no dry run selected). */ 1171 1178 if (!fDryRun) 1172 vrc = ctrlCopyFile (guest, pNode->pszSourcePath, szDest,1173 Utf8UserName.c_str(), Utf8Password.c_str(), uFlags);1179 vrc = ctrlCopyFileToGuest(guest, pNode->pszSourcePath, szDest, 1180 Utf8UserName.c_str(), Utf8Password.c_str(), uFlags); 1174 1181 } 1175 1182 else
Note:
See TracChangeset
for help on using the changeset viewer.