VirtualBox

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


Ignore:
Timestamp:
Jun 1, 2010 8:41:32 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62206
Message:

Main: Reapplied r62200 with bug fixes.

File:
1 edited

Legend:

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

    r29934 r29937  
    5959                 CBSTR bstrDescription,
    6060                 BOOL fCancelable,
    61                  ULONG cOtherProgressObjects,
    6261                 ULONG uTotalOperationsWeight,
    6362                 CBSTR bstrFirstOperationDescription,
    6463                 ULONG uFirstOperationWeight,
    65                  OUT_GUID pId = NULL);
     64                 ULONG cOtherProgressObjectOperations);
    6665    void    uninit();
    6766
    6867    // IProgress properties
     68    STDMETHOD(COMGETTER(Cancelable))(BOOL *aCancelable);
    6969    STDMETHOD(COMGETTER(Percent))(ULONG *aPercent);
     70    STDMETHOD(COMGETTER(TimeRemaining))(LONG *aTimeRemaining);
    7071    STDMETHOD(COMGETTER(Completed))(BOOL *aCompleted);
    7172    STDMETHOD(COMGETTER(Canceled))(BOOL *aCanceled);
    7273    STDMETHOD(COMGETTER(ResultCode))(LONG *aResultCode);
    7374    STDMETHOD(COMGETTER(ErrorInfo))(IVirtualBoxErrorInfo **aErrorInfo);
     75    //STDMETHOD(COMGETTER(OperationCount))(ULONG *aOperationCount); - not necessary
     76    STDMETHOD(COMGETTER(Operation))(ULONG *aOperation);
     77    STDMETHOD(COMGETTER(OperationDescription))(BSTR *aOperationDescription);
    7478    STDMETHOD(COMGETTER(OperationPercent))(ULONG *aOperationPercent);
    7579    STDMETHOD(COMSETTER(Timeout))(ULONG aTimeout);
     
    8589    // public methods only for internal purposes
    8690
    87     HRESULT setResultCode(HRESULT aResultCode);
    8891    HRESULT notifyComplete(HRESULT aResultCode);
    8992    HRESULT notifyComplete(HRESULT aResultCode,
     
    9194                           const Bstr &aComponent,
    9295                           const char *aText, ...);
    93     bool    notifyPointOfNoReturn(void);
    94     bool    setOtherProgressObject(IProgress *pOtherProgress, ULONG uOperationWeight);
    95     bool    clearOtherProgressObject(const char *pszLastOperationDescription, ULONG uLastOperationWeight);
     96    bool    setOtherProgressObject(IProgress *pOtherProgress);
    9697
    9798    /** For com::SupportErrorInfoImpl. */
     
    105106    /** The other progress object.  This can be NULL. */
    106107    ComPtr<IProgress> mptrOtherProgress;
    107     /** The number of other progress objects expected. */
    108     ULONG mcOtherProgressObjects;
    109     /** The current other progress object. */
    110     ULONG miCurOtherProgressObject;
     108    /** Set if the other progress object has multiple operations. */
     109    bool mfMultiOperation;
     110    /** The weight the other progress object started at. */
     111    ULONG muOtherProgressStartWeight;
     112    /** The weight of other progress object. */
     113    ULONG muOtherProgressWeight;
     114    /** The operation number the other progress object started at. */
     115    ULONG muOtherProgressStartOperation;
    111116
    112117};
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