Changeset 42754 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 10, 2012 12:31:10 PM (12 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r42748 r42754 9553 9553 <method name="directoryCreateTemp"> 9554 9554 <desc> 9555 Create a temporary directory on the guest. 9556 9557 <result name="VBOX_E_NOT_SUPPORTED"> 9558 The operation is not possible as requested on this particular 9559 guest type. 9560 </result> 9561 <result name="E_INVALIDARG"> 9562 Invalid argument. This includes an incorrectly formatted template, 9563 or a non-absolute path. 9564 </result> 9565 <result name="VBOX_E_IPRT_ERROR"> 9566 The temporary directory could not be created. Possible reasons 9567 include a non-existing path or an insecure path when the secure 9568 option was requested. 9569 </result> 9570 </desc> 9571 <param name="templateName" type="wstring" dir="in"> 9572 <desc>Template for the name of the directory to create. This must 9573 contain at least one 'X' character. The first group of consecutive 9574 'X' characters in the template will be replaced by a random 9575 alphanumeric string to produce a unique name.</desc> 9576 </param> 9577 <param name="mode" type="unsigned long" dir="in"> 9578 <desc>The mode of the directory to create. Use 0700 unless there are 9579 reasons not to. This parameter is ignored if "secure" is specified. 9580 </desc> 9581 </param> 9582 <param name="path" type="wstring" dir="in"> 9583 <desc>The absolute path to create the temporary directory in.</desc> 9584 </param> 9585 <param name="secure" type="boolean" dir="in"> 9586 <desc>Whether to fail if the directory can not be securely created. 9587 Currently this means that another unprivileged user cannot 9588 manipulate the path specified or remove the temporary directory 9589 after it has been created. Also causes the mode specified to be 9590 ignored. May not be supported on all guest types.</desc> 9591 </param> 9592 <param name="directory" type="wstring" dir="return"> 9593 <desc>On success this will contain the name of the directory created 9594 with full path.</desc> 9595 </param> 9596 </method> 9597 9598 <method name="directoryExists"> 9599 <desc> 9555 9600 TODO 9556 9601 … … 9559 9604 </result> 9560 9605 </desc> 9561 <param name="templateName" type="wstring" dir="in">9562 <desc>TODO</desc>9563 </param>9564 <param name="mode" type="unsigned long" dir="in">9565 <desc>TODO</desc>9566 </param>9567 9606 <param name="path" type="wstring" dir="in"> 9568 9607 <desc>TODO</desc> 9569 9608 </param> 9609 <param name="exists" type="boolean" dir="return"> 9610 <desc>TODO</desc> 9611 </param> 9612 </method> 9613 9614 <method name="directoryOpen"> 9615 <desc> 9616 TODO 9617 9618 <result name="VBOX_E_NOT_SUPPORTED"> 9619 TODO 9620 </result> 9621 </desc> 9622 <param name="path" type="wstring" dir="in"> 9623 <desc>TODO</desc> 9624 </param> 9625 <param name="filter" type="wstring" dir="in"> 9626 <desc>TODO</desc> 9627 </param> 9628 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes"> 9629 <desc>TODO</desc> 9630 </param> 9570 9631 <param name="directory" type="IGuestDirectory" dir="return"> 9571 9632 <desc>TODO</desc> … … 9573 9634 </method> 9574 9635 9575 <method name="directory Exists">9636 <method name="directoryQueryInfo"> 9576 9637 <desc> 9577 9638 TODO … … 9584 9645 <desc>TODO</desc> 9585 9646 </param> 9586 <param name=" exists" type="boolean" dir="return">9647 <param name="info" type="IGuestFsObjInfo" dir="return"> 9587 9648 <desc>TODO</desc> 9588 9649 </param> 9589 9650 </method> 9590 9651 9591 <method name="directory Open">9652 <method name="directoryRemove"> 9592 9653 <desc> 9593 9654 TODO … … 9600 9661 <desc>TODO</desc> 9601 9662 </param> 9602 <param name="filter" type="wstring" dir="in">9603 <desc>TODO</desc>9604 </param>9605 <param name="flags" type="DirectoryOpenFlag" dir="in" safearray="yes">9606 <desc>TODO</desc>9607 </param>9608 <param name="directory" type="IGuestDirectory" dir="return">9609 <desc>TODO</desc>9610 </param>9611 9663 </method> 9612 9664 9613 <method name="directory QueryInfo">9665 <method name="directoryRemoveRecursive"> 9614 9666 <desc> 9615 9667 TODO … … 9622 9674 <desc>TODO</desc> 9623 9675 </param> 9624 <param name=" info" type="IGuestFsObjInfo" dir="return">9676 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes"> 9625 9677 <desc>TODO</desc> 9626 9678 </param> 9679 <param name="progress" type="IProgress" dir="return"> 9680 <desc>TODO</desc> 9681 </param> 9627 9682 </method> 9628 9683 9629 <method name="directoryRe move">9684 <method name="directoryRename"> 9630 9685 <desc> 9631 9686 TODO … … 9635 9690 </result> 9636 9691 </desc> 9692 <param name="source" type="wstring" dir="in"> 9693 <desc>TODO</desc> 9694 </param> 9695 <param name="dest" type="wstring" dir="in"> 9696 <desc>TODO</desc> 9697 </param> 9698 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes"> 9699 <desc>TODO</desc> 9700 </param> 9701 </method> 9702 9703 <method name="directorySetACL"> 9704 <desc> 9705 TODO 9706 9707 <result name="VBOX_E_NOT_SUPPORTED"> 9708 TODO 9709 </result> 9710 </desc> 9637 9711 <param name="path" type="wstring" dir="in"> 9638 9712 <desc>TODO</desc> 9639 9713 </param> 9714 <param name="acl" type="wstring" dir="in"> 9715 <desc>TODO</desc> 9716 </param> 9640 9717 </method> 9641 9718 9642 <method name=" directoryRemoveRecursive">9719 <method name="environmentClear"> 9643 9720 <desc> 9644 9721 TODO … … 9648 9725 </result> 9649 9726 </desc> 9650 <param name="path" type="wstring" dir="in">9651 <desc>TODO</desc>9652 </param>9653 <param name="flags" type="DirectoryRemoveRecFlag" dir="in" safearray="yes">9654 <desc>TODO</desc>9655 </param>9656 <param name="progress" type="IProgress" dir="return">9657 <desc>TODO</desc>9658 </param>9659 9727 </method> 9660 9728 9661 <method name=" directoryRename">9729 <method name="environmentGet"> 9662 9730 <desc> 9663 9731 TODO … … 9667 9735 </result> 9668 9736 </desc> 9669 <param name=" source" type="wstring" dir="in">9737 <param name="name" type="wstring" dir="in"> 9670 9738 <desc>TODO</desc> 9671 9739 </param> 9672 <param name=" dest" type="wstring" dir="in">9740 <param name="value" type="wstring" dir="return"> 9673 9741 <desc>TODO</desc> 9674 9742 </param> 9675 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">9676 <desc>TODO</desc>9677 </param>9678 9743 </method> 9679 9744 9680 <method name=" directorySetACL">9745 <method name="environmentSet"> 9681 9746 <desc> 9682 9747 TODO … … 9686 9751 </result> 9687 9752 </desc> 9688 <param name=" path" type="wstring" dir="in">9753 <param name="name" type="wstring" dir="in"> 9689 9754 <desc>TODO</desc> 9690 9755 </param> 9691 <param name=" acl" type="wstring" dir="in">9756 <param name="value" type="wstring" dir="in"> 9692 9757 <desc>TODO</desc> 9693 9758 </param> 9694 9759 </method> 9695 9760 9696 <method name="environment Clear">9761 <method name="environmentUnset"> 9697 9762 <desc> 9698 9763 TODO … … 9702 9767 </result> 9703 9768 </desc> 9704 </method>9705 9706 <method name="environmentGet">9707 <desc>9708 TODO9709 9710 <result name="VBOX_E_NOT_SUPPORTED">9711 TODO9712 </result>9713 </desc>9714 9769 <param name="name" type="wstring" dir="in"> 9715 9770 <desc>TODO</desc> 9716 9771 </param> 9717 <param name="value" type="wstring" dir="return">9718 <desc>TODO</desc>9719 </param>9720 </method>9721 9722 <method name="environmentSet">9723 <desc>9724 TODO9725 9726 <result name="VBOX_E_NOT_SUPPORTED">9727 TODO9728 </result>9729 </desc>9730 <param name="name" type="wstring" dir="in">9731 <desc>TODO</desc>9732 </param>9733 <param name="value" type="wstring" dir="in">9734 <desc>TODO</desc>9735 </param>9736 </method>9737 9738 <method name="environmentUnset">9739 <desc>9740 TODO9741 9742 <result name="VBOX_E_NOT_SUPPORTED">9743 TODO9744 </result>9745 </desc>9746 <param name="name" type="wstring" dir="in">9747 <desc>TODO</desc>9748 </param>9749 9772 </method> 9750 9773 9751 9774 <method name="fileCreateTemp"> 9752 9775 <desc> 9753 TODO9776 Create a temporary file on the guest. 9754 9777 9755 9778 <result name="VBOX_E_NOT_SUPPORTED"> 9756 TODO 9779 The operation is not possible as requested on this particular 9780 guest type. 9781 </result> 9782 <result name="E_INVALIDARG"> 9783 Invalid argument. This includes an incorrectly formatted template, 9784 or a non-absolute path. 9785 </result> 9786 <result name="VBOX_E_IPRT_ERROR"> 9787 The temporary file could not be created. Possible reasons include 9788 a non-existing path or an insecure path when the secure 9789 option was requested. 9757 9790 </result> 9758 9791 </desc> 9759 9792 <param name="templateName" type="wstring" dir="in"> 9760 <desc>TODO</desc> 9793 <desc>Template for the name of the file to create. This must contain 9794 at least one 'X' character. The first group of consecutive 'X' 9795 characters in the template will be replaced by a random 9796 alphanumeric string to produce a unique name. 9797 </desc> 9761 9798 </param> 9762 9799 <param name="mode" type="unsigned long" dir="in"> 9763 <desc>TODO</desc> 9800 <desc>The mode of the file to create. Use 0700 unless there are 9801 reasons not to. This parameter is ignored if "secure" is specified. 9802 </desc> 9764 9803 </param> 9765 9804 <param name="path" type="wstring" dir="in"> 9766 <desc>TODO</desc> 9805 <desc>The absolute path to create the temporary file in.</desc> 9806 </param> 9807 <param name="secure" type="boolean" dir="in"> 9808 <desc>Whether to fail if the file can not be securely created. 9809 Currently this means that another unprivileged user cannot 9810 manipulate the path specified or remove the temporary file after 9811 it has been created. Also causes the mode specified to be ignored. 9812 May not be supported on all guest types.</desc> 9767 9813 </param> 9768 9814 <param name="file" type="IGuestFile" dir="return"> 9769 <desc>Optional.</desc> 9815 <desc>On success this will contain an open file object for the new 9816 temporary file. 9817 </desc> 9770 9818 </param> 9771 9819 </method> -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42749 r42754 196 196 STDMETHOD(CopyTo)(IN_BSTR aSource, IN_BSTR aDest, ComSafeArrayIn(CopyFileFlag_T, aFlags), IProgress **aProgress); 197 197 STDMETHOD(DirectoryCreate)(IN_BSTR aPath, ULONG aMode, ComSafeArrayIn(DirectoryCreateFlag_T, aFlags), IGuestDirectory **aDirectory); 198 STDMETHOD(DirectoryCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestDirectory **aDirectory);198 STDMETHOD(DirectoryCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, BOOL aSecure, BSTR *aDirectory); 199 199 STDMETHOD(DirectoryExists)(IN_BSTR aPath, BOOL *aExists); 200 200 STDMETHOD(DirectoryOpen)(IN_BSTR aPath, IN_BSTR aFilter, ComSafeArrayIn(DirectoryOpenFlag_T, aFlags), IGuestDirectory **aDirectory); … … 208 208 STDMETHOD(EnvironmentSet)(IN_BSTR aName, IN_BSTR aValue); 209 209 STDMETHOD(EnvironmentUnset)(IN_BSTR aName); 210 STDMETHOD(FileCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR a Name, IGuestFile **aFile);210 STDMETHOD(FileCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aPath, BOOL aSecure, IGuestFile **aFile); 211 211 STDMETHOD(FileExists)(IN_BSTR aPath, BOOL *aExists); 212 212 STDMETHOD(FileRemove)(IN_BSTR aPath); -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r42749 r42754 2196 2196 } 2197 2197 2198 STDMETHODIMP GuestSession::DirectoryCreateTemp(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestDirectory **aDirectory)2198 STDMETHODIMP GuestSession::DirectoryCreateTemp(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, BOOL aSecure, BSTR *aDirectory) 2199 2199 { 2200 2200 #ifndef VBOX_WITH_GUEST_CONTROL … … 2552 2552 } 2553 2553 2554 STDMETHODIMP GuestSession::FileCreateTemp(IN_BSTR aTemplate, ULONG aMode, IN_BSTR a Name, IGuestFile **aFile)2554 STDMETHODIMP GuestSession::FileCreateTemp(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aPath, BOOL aSecure, IGuestFile **aFile) 2555 2555 { 2556 2556 #ifndef VBOX_WITH_GUEST_CONTROL
Note:
See TracChangeset
for help on using the changeset viewer.