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

Progress Class Reference

#include <ProgressImpl.h>

Inheritance diagram for Progress:

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

List of all members.


Detailed Description

Normal progress object.

Definition at line 126 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)
HRESULT advanceOperation (CBSTR aOperationDescription)
STDMETHOD() Cancel ()
BOOL completed () const
NS_DECL_ISUPPORTS HRESULT FinalConstruct ()
void FinalRelease ()
HRESULT init (BOOL aCancelable, ULONG aOperationCount, CBSTR aOperationDescription)
HRESULT init (VirtualBox *aParent, IUnknown *aInitiator, CBSTR aDescription, BOOL aCancelable, ULONG aOperationCount, CBSTR aOperationDescription, OUT_GUID aId=NULL)
HRESULT init (VirtualBox *aParent, IUnknown *aInitiator, CBSTR aDescription, BOOL aCancelable, OUT_GUID aId=NULL)
STDMETHOD() InterfaceSupportsErrorInfo (REFIID aIID)
bool isLockedOnCurrentThread ()
bool isWriteLockOnCurrentThread ()
virtual RWLockHandlelockHandle () const
HRESULT notifyComplete (HRESULT aResultCode, const GUID &aIID, const Bstr &aComponent, const char *aText,...)
HRESULT notifyComplete (HRESULT aResultCode)
HRESULT notifyCompleteBstr (HRESULT aResultCode, const GUID &aIID, const Bstr &aComponent, const Bstr &aText)
HRESULT notifyProgress (LONG aPercent)
virtual void releaseCaller ()
HRESULT resultCode () const
LockOps * rlock ()
 STDMETHOD (COMGETTER(OperationPercent))(LONG *aOperationPercent)
 STDMETHOD (COMGETTER(OperationDescription))(BSTR *aOperationDescription)
 STDMETHOD (COMGETTER(Operation))(ULONG *aCount)
 STDMETHOD (COMGETTER(OperationCount))(ULONG *aOperationCount)
 STDMETHOD (COMGETTER(ErrorInfo))(IVirtualBoxErrorInfo **aErrorInfo)
 STDMETHOD (COMGETTER(ResultCode))(HRESULT *aResultCode)
 STDMETHOD (COMGETTER(Canceled))(BOOL *aCanceled)
 STDMETHOD (COMGETTER(Completed))(BOOL *aCompleted)
 STDMETHOD (COMGETTER(Percent))(LONG *aPercent)
 STDMETHOD (COMGETTER(Cancelable))(BOOL *aCancelable)
 STDMETHOD (COMGETTER(Initiator))(IUnknown **aInitiator)
 STDMETHOD (COMGETTER(Description))(BSTR *aDescription)
 STDMETHOD (COMGETTER(Id))(OUT_GUID aId)
void uninit ()
STDMETHOD() WaitForCompletion (LONG aTimeout)
STDMETHOD() WaitForOperationCompletion (ULONG aOperation, LONG aTimeout)
LockOps * wlock ()

Static Public Member Functions

static const char * ComponentName ()
static HRESULT setErrorInfoOnThread (IProgress *aProgress)
static const char * tr (const char *aSourceText, const char *aComment=NULL)
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
virtual const GUID & mainInterfaceID () const
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 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

BOOL mCancelable
BOOL mCanceled
BOOL mCompleted
const Bstr mDescription
ComPtr< IVirtualBoxErrorInfo > mErrorInfo
const Guid mId
const ComPtr< IUnknown > mInitiator
ULONG mOperation
ULONG mOperationCount
Bstr mOperationDescription
LONG mOperationPercent
const ComObjPtr< VirtualBox,
ComWeakRef
mParent
HRESULT mResultCode

Private Attributes

RTSEMEVENTMULTI mCompletedSem
ULONG mWaitersCount

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

Generated by  Doxygen 1.6.0   Back to index