CMemSpyEngineDriveEntry Class Reference

class CMemSpyEngineDriveEntry : public CActive

Inherits from

Public Member Functions
~CMemSpyEngineDriveEntry()
const TDesC &Caption()
TDriveNumber DriveNumber()
const TDriveUnit &DriveUnit()
IMPORT_C TIntMdcaCount()
IMPORT_C TPtrCMdcaPoint(TInt)
CMemSpyEngineDriveEntry *NewLC(CMemSpyEngineDriveList &, TDriveNumber)
IMPORT_C voidSetObserver(MMemSpyEngineDriveEntryObserver *)
Private Member Functions
CMemSpyEngineDriveEntry(CMemSpyEngineDriveList &, TDriveNumber)
voidAddStandardFieldsL()
voidConstructL()
voidCreateCaptionL(const TDesC &, const TDesC &)
voidCreateDriveAttributesL(TDes &)
voidCreateMediaAttributesL(TDes &)
voidDoCancel()
RFs &FsSession()
voidGetBatteryState(TBatteryState, TDes &)
voidGetMediaTypeText(TMediaType, TDes &)
TDriveNumber GetSystemDrive()
voidRefreshL()
voidRunL()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Inherited Enumerations
CActive:TPriority
Private Attributes
HBufC *iCaption
TDriveInfo iDriveInfo
const TDriveNumberiDriveNumber
const TDriveUnitiDriveUnit
CMemSpyEngineOutputList *iItems
CMemSpyEngineDriveList &iList
MMemSpyEngineDriveEntryObserver *iObserver
TMediaSerialNumber iSerialNumber
TVolumeInfo iVolumeInfo
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CMemSpyEngineDriveEntry(CMemSpyEngineDriveList &, TDriveNumber)

CMemSpyEngineDriveEntry(CMemSpyEngineDriveList &aList,
TDriveNumberaDriveNumber
)[private]

Parameters

CMemSpyEngineDriveList & aList
TDriveNumber aDriveNumber

~CMemSpyEngineDriveEntry()

IMPORT_C~CMemSpyEngineDriveEntry()

Member Functions Documentation

AddStandardFieldsL()

voidAddStandardFieldsL()[private]

Caption()

const TDesC &Caption()const [inline]

ConstructL()

voidConstructL()[private]

CreateCaptionL(const TDesC &, const TDesC &)

voidCreateCaptionL(const TDesC &aVolumeName,
const TDesC &aMediaType
)[private]

Parameters

const TDesC & aVolumeName
const TDesC & aMediaType

CreateDriveAttributesL(TDes &)

voidCreateDriveAttributesL(TDes &aItemBuf)[private]

Parameters

TDes & aItemBuf

CreateMediaAttributesL(TDes &)

voidCreateMediaAttributesL(TDes &aItemBuf)[private]

Parameters

TDes & aItemBuf

DoCancel()

voidDoCancel()[private, virtual]

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel().

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel().

CActive::Cancel

DriveNumber()

TDriveNumber DriveNumber()const [inline]

DriveUnit()

const TDriveUnit &DriveUnit()const [inline]

FsSession()

RFs &FsSession()[private]

GetBatteryState(TBatteryState, TDes &)

voidGetBatteryState(TBatteryStateaBatteryState,
TDes &aText
)[private, static]

Parameters

TBatteryState aBatteryState
TDes & aText

GetMediaTypeText(TMediaType, TDes &)

voidGetMediaTypeText(TMediaTypeaType,
TDes &aText
)[private, static]

Parameters

TMediaType aType
TDes & aText

GetSystemDrive()

TDriveNumber GetSystemDrive()[private, static]

MdcaCount()

IMPORT_C TIntMdcaCount()const

MdcaPoint(TInt)

IMPORT_C TPtrCMdcaPoint(TIntaIndex)const

Parameters

TInt aIndex

NewLC(CMemSpyEngineDriveList &, TDriveNumber)

CMemSpyEngineDriveEntry *NewLC(CMemSpyEngineDriveList &aList,
TDriveNumberaDriveNumber
)[static]

Parameters

CMemSpyEngineDriveList & aList
TDriveNumber aDriveNumber

RefreshL()

voidRefreshL()[private]

RunL()

voidRunL()[private, virtual]

Handles an active object's request completion event.

A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.

The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.

Before calling this active object's RunL() function, the active scheduler has:

1. decided that this is the highest priority active object with a completed request

2. marked this active object's request as complete (i.e. the request is no longer outstanding)

RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.

Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.

CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD

SetObserver(MMemSpyEngineDriveEntryObserver *)

IMPORT_C voidSetObserver(MMemSpyEngineDriveEntryObserver *aObserver)

Parameters

MMemSpyEngineDriveEntryObserver * aObserver

Member Data Documentation

HBufC * iCaption

HBufC *iCaption[private]

TDriveInfo iDriveInfo

TDriveInfo iDriveInfo[private]

const TDriveNumber iDriveNumber

const TDriveNumberiDriveNumber[private]

const TDriveUnit iDriveUnit

const TDriveUnitiDriveUnit[private]

CMemSpyEngineOutputList * iItems

CMemSpyEngineOutputList *iItems[private]

CMemSpyEngineDriveList & iList

CMemSpyEngineDriveList &iList[private]

MMemSpyEngineDriveEntryObserver * iObserver

MMemSpyEngineDriveEntryObserver *iObserver[private]

TMediaSerialNumber iSerialNumber

TMediaSerialNumber iSerialNumber[private]

TVolumeInfo iVolumeInfo

TVolumeInfo iVolumeInfo[private]