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

HardDiskFormat Class Reference

#include <HardDiskFormatImpl.h>

Inheritance diagram for HardDiskFormat:

VirtualBoxBaseNEXT VirtualBoxSupportErrorInfoImpl< HardDiskFormat, IHardDiskFormat > VirtualBoxSupportTranslation< HardDiskFormat > VirtualBoxBase VirtualBoxSupportErrorInfoImplBase VirtualBoxSupportTranslationBase VirtualBoxBaseProto util::Lockable

List of all members.


Detailed Description

The HardDiskFormat class represents the backend used to store hard disk data (IHardDiskFormat interface).

Note:
Instances of this class are permanently caller-referenced by HardDisk2 objects (through addCaller()) so that an attempt to uninitialize or delete them before all HardDisk2 objects are uninitialized will produce an endless wait!

Definition at line 44 of file HardDiskFormatImpl.h.


Public Types

typedef AutoCallerBase< false > AutoCaller
typedef AutoCallerBase< true > AutoLimitedCaller
typedef std::list< BstrBstrList
typedef std::list< Property > PropertyList
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)
uint64_t capabilities () const
STDMETHOD() DescribeProperties (ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aDescriptions), ComSafeArrayOut(DataType_T, aTypes), ComSafeArrayOut(ULONG, aFlags), ComSafeArrayOut(BSTR, aDefaults))
const BstrList & fileExtensions () const
NS_DECL_ISUPPORTS HRESULT FinalConstruct ()
void FinalRelease ()
const Bstrid () const
HRESULT init (const VDBACKENDINFO *aVDInfo)
STDMETHOD() InterfaceSupportsErrorInfo (REFIID riid)
bool isLockedOnCurrentThread ()
bool isWriteLockOnCurrentThread ()
virtual RWLockHandlelockHandle () const
const PropertyList & properties () const
virtual void releaseCaller ()
LockOps * rlock ()
 STDMETHOD (COMGETTER(Capabilities))(ULONG *aCaps)
 STDMETHOD (COMGETTER(FileExtensions))(ComSafeArrayOut(BSTR
 STDMETHOD (COMGETTER(Name))(BSTR *aName)
 STDMETHOD (COMGETTER(Id))(BSTR *aId)
void uninit ()
LockOps * wlock ()

Static Public Member Functions

static const wchar_t * getComponentName ()
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)

Public Attributes

 aFileExtensions

Protected Member Functions

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 Bstr &aComponent, const char *aText, va_list aArgs, bool aLogIt=true)
static HRESULT setError (HRESULT aResultCode, const GUID &aIID, const Bstr &aComponent, const Bstr &aText, bool aLogIt=true)
static HRESULT setError (HRESULT aResultCode, const GUID &aIID, const char *aText,...)
static HRESULT setError (HRESULT aResultCode, const char *aText,...)
static HRESULT setError (HRESULT aResultCode, const GUID &aIID, const wchar_t *aComponent, const char *aText,...)
static HRESULT setErrorBstr (HRESULT aResultCode, const Bstr &aText)
static HRESULT setErrorNoLog (HRESULT aResultCode, const char *aText,...)
static HRESULT setErrorV (HRESULT aResultCode, const char *aText, va_list aArgs)
static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const Bstr &aComponent, const char *aText, va_list aArgs)
static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const Bstr &aComponent, const Bstr &aText)
static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const char *aText,...)
static HRESULT setWarning (HRESULT aResultCode, const char *aText,...)
static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, const wchar_t *aComponent, const char *aText,...)
static HRESULT setWarningBstr (HRESULT aResultCode, const Bstr &aText)
static HRESULT setWarningV (HRESULT aResultCode, const char *aText, va_list aArgs)

Private Attributes

Data m

Classes

struct  Data
struct  Property

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

Generated by  Doxygen 1.6.0   Back to index