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

SessionClassFactory Class Reference

Inheritance diagram for SessionClassFactory:

VirtualBoxBaseNEXT VirtualBoxSupportErrorInfoImpl< Session, ISession > VirtualBoxSupportTranslation< Session > VirtualBoxBase VirtualBoxSupportErrorInfoImplBase VirtualBoxSupportTranslationBase VirtualBoxBaseProto util::Lockable

List of all members.


Detailed Description

Singleton class factory that holds a reference to the created instance (preventing it from being destroyed) until the module is explicitly unloaded by the XPCOM shutdown code.

Suitable for IN-PROC components.

Definition at line 91 of file module.cpp.


Public Types

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

Public Member Functions

STDMETHOD() AccessGuestProperty (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags, BOOL aIsSetter, BSTR *aRetValue, ULONG64 *aRetTimestamp, BSTR *aRetFlags)
virtual HRESULT addCaller (State *aState=NULL, bool aLimited=false)
HRESULT addLimitedCaller (State *aState=NULL)
STDMETHOD() AssignMachine (IMachine *aMachine)
STDMETHOD() AssignRemoteMachine (IMachine *aMachine, IConsole *aConsole)
STDMETHOD() Close ()
STDMETHOD() EnumerateGuestProperties (IN_BSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags))
NS_DECL_ISUPPORTS HRESULT FinalConstruct ()
void FinalRelease ()
STDMETHOD() GetPID (ULONG *aPid)
STDMETHOD() GetRemoteConsole (IConsole **aConsole)
HRESULT init ()
STDMETHOD() InterfaceSupportsErrorInfo (REFIID riid)
bool isLockedOnCurrentThread ()
bool isWriteLockOnCurrentThread ()
virtual RWLockHandlelockHandle () const
STDMETHOD() OnDVDDriveChange ()
STDMETHOD() OnFloppyDriveChange ()
STDMETHOD() OnNetworkAdapterChange (INetworkAdapter *networkAdapter)
STDMETHOD() OnParallelPortChange (IParallelPort *parallelPort)
STDMETHOD() OnSerialPortChange (ISerialPort *serialPort)
STDMETHOD() OnSharedFolderChange (BOOL aGlobal)
STDMETHOD() OnShowWindow (BOOL aCheck, BOOL *aCanShow, ULONG64 *aWinId)
STDMETHOD() OnStorageControllerChange ()
STDMETHOD() OnUSBControllerChange ()
STDMETHOD() OnUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs)
STDMETHOD() OnUSBDeviceDetach (IN_BSTR aId, IVirtualBoxErrorInfo *aError)
STDMETHOD() OnVRDPServerChange ()
virtual void releaseCaller ()
LockOps * rlock ()
 STDMETHOD (COMGETTER(Console))(IConsole **aConsole)
 STDMETHOD (COMGETTER(Machine))(IMachine **aMachine)
 STDMETHOD (COMGETTER(Type))(SessionType_T *aType)
 STDMETHOD (COMGETTER(State))(SessionState_T *aState)
virtual void uninit ()
void uninit (bool aFinalRelease)
STDMETHOD() Uninitialize ()
STDMETHOD() UpdateMachineState (MachineState_T aMachineState)
LockOps * wlock ()

Static Public Member Functions

static const wchar_t * getComponentName ()
static nsresult getInstance (Session **inst)
static nsresult releaseInstance ()
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

PRInt32 bytes
PRInt32 bytes_read
PRMonitor * exit_mon
buffer * in_buf
PRJobIoDesc iod
PRInt32 * job_counterp
PRInt32 msg_num
PRThreadPool * tp
struct
IInternalSessionControl_vtbl * 
vtbl
struct ISession_vtbl * vtbl

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)

Static Private Attributes

static Session * instance

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

Generated by  Doxygen 1.6.0   Back to index