VirtualBox

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


Ignore:
Timestamp:
Aug 13, 2010 12:33:16 AM (14 years ago)
Author:
vboxsync
Message:

Main: add a getter in IProgress for getting the current operation weight

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ProgressImpl.cpp

    r31333 r31625  
    498498    else
    499499        *aOperationPercent = m_ulOperationPercent;
     500
     501    return S_OK;
     502}
     503
     504STDMETHODIMP ProgressBase::COMGETTER(OperationWeight)(ULONG *aOperationWeight)
     505{
     506    CheckComArgOutPointerValid(aOperationWeight);
     507
     508    AutoCaller autoCaller(this);
     509    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     510
     511    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     512
     513    *aOperationWeight = m_ulCurrentOperationWeight;
    500514
    501515    return S_OK;
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r31618 r31625  
    78317831  <interface
    78327832     name="IProgress" extends="$unknown"
    7833      uuid="856aa038-853f-42e2-acf7-6e7b02dbe294"
     7833     uuid="A163C98F-8635-4AA8-B770-A9941737F3EF"
    78347834     wsmap="managed"
    78357835     >
     
    79537953    <attribute name="operationPercent" type="unsigned long" readonly="yes">
    79547954        <desc>Progress value of the current sub-operation only, in percent.</desc>
     7955    </attribute>
     7956
     7957    <attribute name="operationWeight" type="unsigned long" readonly="yes">
     7958        <desc>Weight value of the current sub-operation only.</desc>
    79557959    </attribute>
    79567960
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r30739 r31625  
    7272    STDMETHOD(COMGETTER(OperationDescription)) (BSTR *aOperationDescription);
    7373    STDMETHOD(COMGETTER(OperationPercent)) (ULONG *aOperationPercent);
     74    STDMETHOD(COMGETTER(OperationWeight)) (ULONG *aOperationWeight);
    7475    STDMETHOD(COMSETTER(Timeout)) (ULONG aTimeout);
    7576    STDMETHOD(COMGETTER(Timeout)) (ULONG *aTimeout);
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