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

ImageMediumBase Class Reference

#include <MediumImpl.h>

Inheritance diagram for ImageMediumBase:

MediumBase VirtualBoxBaseNEXT VirtualBoxBaseProto com::SupportErrorInfoBase VirtualBoxSupportTranslation< MediumBase > VirtualBoxBase util::Lockable VirtualBoxSupportTranslationBase VirtualBoxBaseProto util::Lockable com::SupportErrorInfoDerived< ImageMediumBase, DVDImage2, IDVDImage2 > com::SupportErrorInfoDerived< ImageMediumBase, FloppyImage2, IFloppyImage2 > DVDImage2 FloppyImage2

List of all members.


Detailed Description

Base component class for simple image file based media such as CD/DVD ISO images or Floppy images.

Adds specific protectedInit() and saveSettings() methods that can load image data from the settings files.

Definition at line 212 of file MediumImpl.h.


Public Types

typedef AutoCallerBase< false > AutoCaller
typedef AutoCallerBase< true > AutoLimitedCaller
typedef std::list< BackRefBackRefList
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 attachTo (const Guid &aMachineId, const Guid &aSnapshotId=Guid::Empty)
const BackRefList & backRefs () const
STDMETHOD() Close ()
HRESULT detachFrom (const Guid &aMachineId, const Guid &aSnapshotId=Guid::Empty)
HRESULT FinalConstruct ()
void FinalRelease ()
STDMETHOD() GetSnapshotIds (IN_GUID aMachineId, ComSafeGUIDArrayOut(aSnapshotIds))
const Guidid () const
bool isAttachedTo (const Guid &aMachineId)
bool isLockedOnCurrentThread ()
bool isWriteLockOnCurrentThread ()
const Bstrlocation () const
const BstrlocationFull () const
virtual RWLockHandlelockHandle () const
STDMETHOD() LockRead (MediaState_T *aState)
STDMETHOD() LockWrite (MediaState_T *aState)
virtual void releaseCaller ()
LockOps * rlock ()
HRESULT saveSettings (settings::Key &aImagesNode)
MediaState_T state () const
 STDMETHOD (COMGETTER(MachineIds))(ComSafeGUIDArrayOut(aMachineIds))
 STDMETHOD (COMGETTER(LastAccessError))(BSTR *aLastAccessError)
 STDMETHOD (COMGETTER(Size))(ULONG64 *aSize)
 STDMETHOD (COMGETTER(Name))(BSTR *aName)
 STDMETHOD (COMSETTER(Location))(IN_BSTR aLocation)
 STDMETHOD (COMGETTER(Location))(BSTR *aLocation)
 STDMETHOD (COMGETTER(State))(MediaState_T *aState)
 STDMETHOD (COMSETTER(Description))(IN_BSTR aDescription)
 STDMETHOD (COMGETTER(Description))(BSTR *aDescription)
 STDMETHOD (COMGETTER(Id))(OUT_GUID aId)
virtual void uninit ()
virtual void uninit ()
STDMETHOD() UnlockRead (MediaState_T *aState)
STDMETHOD() UnlockWrite (MediaState_T *aState)
HRESULT updatePath (const char *aOldPath, const char *aNewPath)
LockOps * wlock ()

Static Public Member Functions

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 HRESULT canAttach (const Guid &aMachineId, const Guid &aSnapshotId)
virtual HRESULT canClose ()
virtual const char * componentName () const =0
virtual const GUID & mainInterfaceID () const =0
virtual Utf8Str name ()
HRESULT protectedInit (VirtualBox *aVirtualBox, const settings::Key &aImageNode)
HRESULT protectedInit (VirtualBox *aVirtualBox, CBSTR aLocation, const Guid &aId)
void protectedUninit ()
virtual HRESULT queryInfo ()
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)
virtual HRESULT setLocation (CBSTR aLocation)
HRESULT setStateError ()
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 ()
virtual HRESULT unregisterWithVirtualBox ()=0

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

Data m
const ComObjPtr< VirtualBox,
ComWeakRef
mVirtualBox

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

Generated by  Doxygen 1.6.0   Back to index