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

com::SupportErrorInfoBase Class Reference

#include <SupportErrorInfo.h>

Inheritance diagram for com::SupportErrorInfoBase:

HardDisk::ImageChain HardDisk::MergeChain HardDisk::Task MediumBase ProgressBase com::SupportErrorInfoDerived< com::SupportErrorInfoBase, C, I > com::SupportErrorInfoDerived< com::SupportErrorInfoBase, HardDiskAttachment, IHardDiskAttachment > ImageMediumBase com::SupportErrorInfoDerived< MediumBase, HardDisk, IHardDisk > com::SupportErrorInfoDerived< ProgressBase, CombinedProgress, IProgress > com::SupportErrorInfoDerived< ProgressBase, Progress, IProgress > com::SupportErrorInfoDerived< ImageMediumBase, DVDImage, IDVDImage > com::SupportErrorInfoDerived< ImageMediumBase, FloppyImage, IFloppyImage > HardDisk CombinedProgress Progress DVDImage FloppyImage

List of all members.


Detailed Description

The SupportErrorInfoBase template class provides basic error info support.

Basic error info support includes a group of setError() methods to set extended error information on the current thread. This support does not include all necessary implementation details (for example, implementation of the ISupportErrorInfo interface on MS COM) to make the error info support fully functional in a target component. These details are provided by the SupportErrorInfoDerived class.

This way, this class is intended to be directly inherited only by intermediate component base classes that will be then inherited by final component classes through the SupportErrorInfoDerived template class. In all other cases, the SupportErrorInfoImpl class should be used as a base for final component classes instead.

Definition at line 224 of file SupportErrorInfo.h.


Protected Member Functions

virtual const char * componentName () const =0
virtual const GUID & mainInterfaceID () const =0
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)

Static Protected Member Functions

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)

Static Private Member Functions

static HRESULT setErrorInternal (HRESULT aResultCode, const GUID *aIID, const char *aComponent, const char *aText, bool aWarning, IVirtualBoxErrorInfo *aInfo=NULL)

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

Generated by  Doxygen 1.6.0   Back to index