Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

ProgressBase Class Reference

#include <ProgressImpl.h>

Inheritance diagram for ProgressBase:

VirtualBoxBaseNEXT com::SupportErrorInfoBase VirtualBoxSupportTranslation< ProgressBase > VirtualBoxBase VirtualBoxSupportTranslationBase VirtualBoxBaseProto util::Lockable com::SupportErrorInfoDerived< ProgressBase, CombinedProgress, IProgress > com::SupportErrorInfoDerived< ProgressBase, Progress, IProgress > CombinedProgress Progress

List of all members.


Detailed Description

Base component class for progress objects.

Definition at line 41 of file ProgressImpl.h.


Public Types

typedef AutoCallerBase< false > AutoCaller
typedef AutoCallerBase< true > AutoLimitedCaller
enum  State {
  NotReady, Ready, InInit, InUninit,
  InitFailed, Limited, MayUninit, WillUninit
}

Public Member Functions

virtual HRESULT addCaller (State *aState=NULL, bool aLimited=false)
HRESULT addLimitedCaller (State *aState=NULL)
double calcTotalPercent ()
BOOL completed () const
bool isLockedOnCurrentThread ()
bool isWriteLockOnCurrentThread ()
virtual RWLockHandlelockHandle () const
virtual void releaseCaller ()
HRESULT resultCode () const
LockOps * rlock ()
 STDMETHOD (COMGETTER(OperationPercent))(ULONG *aOperationPercent)
 STDMETHOD (COMGETTER(OperationDescription))(BSTR *aOperationDescription)
 STDMETHOD (COMGETTER(Operation))(ULONG *aCount)
 STDMETHOD (COMGETTER(OperationCount))(ULONG *aOperationCount)
 STDMETHOD (COMGETTER(ErrorInfo))(IVirtualBoxErrorInfo **aErrorInfo)
 STDMETHOD (COMGETTER(ResultCode))(LONG *aResultCode)
 STDMETHOD (COMGETTER(Canceled))(BOOL *aCanceled)
 STDMETHOD (COMGETTER(Completed))(BOOL *aCompleted)
 STDMETHOD (COMGETTER(TimeRemaining))(LONG *aTimeRemaining)
 STDMETHOD (COMGETTER(Percent))(ULONG *aPercent)
 STDMETHOD (COMGETTER(Cancelable))(BOOL *aCancelable)
 STDMETHOD (COMGETTER(Initiator))(IUnknown **aInitiator)
 STDMETHOD (COMGETTER(Description))(BSTR *aDescription)
 STDMETHOD (COMGETTER(Id))(BSTR *aId)
virtual void uninit ()
virtual void uninit ()
LockOps * wlock ()

Static Public Member Functions

static HRESULT setErrorInfoOnThread (IProgress *aProgress)
static const char * tr (const char *aSourceText, const char *aComment=NULL)
static const char * translate (const char *context, const char *sourceText, const char *comment=0)
static const char * translate (const char *context, const char *sourceText, const char *comment=0)

Protected Member Functions

virtual const char * componentName () const =0
HRESULT FinalConstruct ()
virtual const GUID & mainInterfaceID () const =0
HRESULT protectedInit (AutoInitSpan &aAutoInitSpan)
HRESULT protectedInit (AutoInitSpan &aAutoInitSpan, VirtualBox *aParent, IUnknown *aInitiator, CBSTR aDescription, OUT_GUID aId=NULL)
void protectedUninit (AutoUninitSpan &aAutoUninitSpan)
HRESULT setError (HRESULT aResultCode, const GUID &aIID, const char *aText,...)
HRESULT setError (HRESULT aResultCode, const char *aText,...)
HRESULT setErrorV (HRESULT aResultCode, const char *aText, va_list aArgs)
HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const char *aText,...)
HRESULT setWarning (HRESULT aResultCode, const char *aText,...)
HRESULT setWarningV (HRESULT aResultCode, const char *aText, va_list aArgs)
WriteLockHandlestateLockHandle ()

Static Protected Member Functions

static const char * className ()
static bool cutClassNameFrom__PRETTY_FUNCTION__ (char *aPrettyFunctionName)
static HRESULT setError (HRESULT aResultCode, const GUID &aIID, const char *aComponent, const char *aText,...)
static HRESULT setError (HRESULT aResultCode, const GUID &aIID, const char *aComponent, const char *aText)
static HRESULT setErrorInfo (IVirtualBoxErrorInfo *aInfo)
static HRESULT setErrorV (HRESULT aResultCode, const GUID &aIID, const char *aComponent, const char *aText, va_list aArgs)
static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const char *aComponent, const char *aText,...)
static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const char *aComponent, const char *aText)
static HRESULT setWarningV (HRESULT aResultCode, const GUID &aIID, const char *aComponent, const char *aText, va_list aArgs)

Protected Attributes

Bstr m_bstrOperationDescription
ULONG m_cOperations
ULONG m_ulCurrentOperation
ULONG m_ulCurrentOperationWeight
uint64_t m_ullTimestamp
ULONG m_ulOperationPercent
ULONG m_ulOperationsCompletedWeight
ULONG m_ulTotalOperationsWeight
BOOL mCancelable
BOOL mCanceled
BOOL mCompleted
const Bstr mDescription
ComPtr< IVirtualBoxErrorInfo > mErrorInfo
const Guid mId
const ComPtr< IUnknown > mInitiator
const ComObjPtr< VirtualBox,
ComWeakRef
mParent
HRESULT mResultCode

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index