VirtualBox

Changeset 37863 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 11, 2011 11:09:33 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72760
Message:

Main: Add interface for IGuest::FileQuerySize().

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r37862 r37863  
    83978397      <desc>Don't show the started process according to the guest OS guidelines.</desc>
    83988398    </const>
    8399     <const name="NoProfile"               value="8"> 
    8400       <desc>Do not use the user's profile data when exeuting a process.</desc> 
    8401     </const> 
     8399    <const name="NoProfile"               value="8">
     8400      <desc>Do not use the user's profile data when exeuting a process.</desc>
     8401    </const>
    84028402  </enum>
    84038403
     
    85618561  <interface
    85628562    name="IGuest" extends="$unknown"
    8563     uuid="af2766d9-ebff-455f-b5ce-c6f855b8f584"
     8563    uuid="ed109b6e-0578-4b17-8ace-52646789f1a0"
    85648564    wsmap="managed"
    85658565    >
     
    90909090    </method>
    90919091
     9092    <method name="fileQuerySize">
     9093      <desc>
     9094        Queries the size of a file, given the path to it.
     9095
     9096        <result name="VBOX_E_IPRT_ERROR">
     9097          Error while looking up information.
     9098        </result>
     9099
     9100      </desc>
     9101      <param name="file" type="wstring" dir="in">
     9102        <desc>
     9103          Full path of file to query file size for.
     9104        </desc>
     9105      </param>
     9106      <param name="userName" type="wstring" dir="in">
     9107        <desc>
     9108          User name under which the lookup will be performed; the
     9109          user has to exist and have the appropriate rights to access / read the
     9110          desired directory.
     9111        </desc>
     9112      </param>
     9113      <param name="password" type="wstring" dir="in">
     9114        <desc>
     9115          Password of the user account specified.
     9116        </desc>
     9117      </param>
     9118      <param name="size" type="long long" dir="return">
     9119        <desc>
     9120          Size (in bytes) of file specified.
     9121        </desc>
     9122      </param>
     9123    </method>
     9124
    90929125    <method name="setProcessInput">
    90939126      <desc>
     
    93649397          this progress. This means sub-operation number, description, percent
    93659398          and so on.
    9366          
     9399
    93679400          You have to take care on setting up at least the same count on
    93689401          sub-operations in this progress object like there are in the other
    9369           progress object. 
     9402          progress object.
    93709403
    93719404          If the other progress object supports cancel and this object gets any
  • trunk/src/VBox/Main/include/GuestImpl.h

    r37589 r37863  
    107107    // File handling
    108108    STDMETHOD(FileExists)(IN_BSTR aFile, IN_BSTR aUserName, IN_BSTR aPassword, BOOL *aExists);
     109    STDMETHOD(FileQuerySize)(IN_BSTR aFile, IN_BSTR aUserName, IN_BSTR aPassword, LONG64 *aSize);
    109110    // Misc stuff
    110111    STDMETHOD(InternalGetStatistics)(ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle,
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r37632 r37863  
    31103110}
    31113111
     3112STDMETHODIMP Guest::FileQuerySize(IN_BSTR aFile, IN_BSTR aUserName, IN_BSTR aPassword, LONG64 *aSize)
     3113{
     3114#ifndef VBOX_WITH_GUEST_CONTROL
     3115    ReturnComNotImplemented();
     3116#else /* VBOX_WITH_GUEST_CONTROL */
     3117    using namespace guestControl;
     3118
     3119    return VBOX_E_NOT_SUPPORTED;
     3120#endif
     3121}
     3122
    31123123STDMETHODIMP Guest::UpdateGuestAdditions(IN_BSTR aSource, ULONG aFlags, IProgress **aProgress)
    31133124{
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette