VirtualBox

Changeset 18406 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Mar 27, 2009 3:31:21 PM (16 years ago)
Author:
vboxsync
Message:

Main: add IProgress::GetTimeRemaining()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ProgressImpl.h

    r18269 r18406  
    7373    STDMETHOD(COMGETTER(Cancelable)) (BOOL *aCancelable);
    7474    STDMETHOD(COMGETTER(Percent)) (ULONG *aPercent);
     75    STDMETHOD(COMGETTER(TimeRemaining)) (LONG *aTimeRemaining);
    7576    STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted);
    7677    STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled);
     
    9192    BOOL completed() const { return mCompleted; }
    9293    HRESULT resultCode() const { return mResultCode; }
     94    double calcTotalPercent();
    9395
    9496protected:
     
    103105    const Guid mId;
    104106    const Bstr mDescription;
     107
     108    uint64_t m_ullTimestamp;                        // progress object creation timestamp, for ETA computation
    105109
    106110    /* The fields below are to be properly initalized by subclasses */
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