CMemSpyEngineDriveEntry Class Reference

class CMemSpyEngineDriveEntry : public CActive

Inherits from

Public Member Functions
~CMemSpyEngineDriveEntry ()
const TDesC & Caption ()
TDriveNumber DriveNumber ()
const TDriveUnit & DriveUnit ()
IMPORT_C TInt MdcaCount ()
IMPORT_C TPtrC MdcaPoint ( TInt )
CMemSpyEngineDriveEntry * NewLC (CMemSpyEngineDriveList &, TDriveNumber )
IMPORT_C void SetObserver ( MMemSpyEngineDriveEntryObserver *)
Private Member Functions
CMemSpyEngineDriveEntry (CMemSpyEngineDriveList &, TDriveNumber )
void AddStandardFieldsL ()
void ConstructL ()
void CreateCaptionL (const TDesC &, const TDesC &)
void CreateDriveAttributesL ( TDes &)
void CreateMediaAttributesL ( TDes &)
void DoCancel ()
RFs & FsSession ()
void GetBatteryState ( TBatteryState , TDes &)
void GetMediaTypeText ( TMediaType , TDes &)
TDriveNumber GetSystemDrive ()
void RefreshL ()
void RunL ()
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 TDriveNumber iDriveNumber
const TDriveUnit iDriveUnit
CMemSpyEngineOutputList * iItems
CMemSpyEngineDriveList & iList
MMemSpyEngineDriveEntryObserver * iObserver
TMediaSerialNumber iSerialNumber
TVolumeInfo iVolumeInfo
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CMemSpyEngineDriveEntry(CMemSpyEngineDriveList &, TDriveNumber)

CMemSpyEngineDriveEntry ( CMemSpyEngineDriveList & aList,
TDriveNumber aDriveNumber
) [private]

Parameters

CMemSpyEngineDriveList & aList
TDriveNumber aDriveNumber

~CMemSpyEngineDriveEntry()

IMPORT_C ~CMemSpyEngineDriveEntry ( )

Member Functions Documentation

AddStandardFieldsL()

void AddStandardFieldsL ( ) [private]

Caption()

const TDesC & Caption ( ) const [inline]

ConstructL()

void ConstructL ( ) [private]

CreateCaptionL(const TDesC &, const TDesC &)

void CreateCaptionL ( const TDesC & aVolumeName,
const TDesC & aMediaType
) [private]

Parameters

const TDesC & aVolumeName
const TDesC & aMediaType

CreateDriveAttributesL(TDes &)

void CreateDriveAttributesL ( TDes & aItemBuf ) [private]

Parameters

TDes & aItemBuf

CreateMediaAttributesL(TDes &)

void CreateMediaAttributesL ( TDes & aItemBuf ) [private]

Parameters

TDes & aItemBuf

DoCancel()

void DoCancel ( ) [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 &)

void GetBatteryState ( TBatteryState aBatteryState,
TDes & aText
) [private, static]

Parameters

TBatteryState aBatteryState
TDes & aText

GetMediaTypeText(TMediaType, TDes &)

void GetMediaTypeText ( TMediaType aType,
TDes & aText
) [private, static]

Parameters

TMediaType aType
TDes & aText

GetSystemDrive()

TDriveNumber GetSystemDrive ( ) [private, static]

MdcaCount()

IMPORT_C TInt MdcaCount ( ) const

MdcaPoint(TInt)

IMPORT_C TPtrC MdcaPoint ( TInt aIndex ) const

Parameters

TInt aIndex

NewLC(CMemSpyEngineDriveList &, TDriveNumber)

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

Parameters

CMemSpyEngineDriveList & aList
TDriveNumber aDriveNumber

RefreshL()

void RefreshL ( ) [private]

RunL()

void RunL ( ) [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 void SetObserver ( MMemSpyEngineDriveEntryObserver * aObserver )

Parameters

MMemSpyEngineDriveEntryObserver * aObserver

Member Data Documentation

HBufC * iCaption

HBufC * iCaption [private]

TDriveInfo iDriveInfo

TDriveInfo iDriveInfo [private]

const TDriveNumber iDriveNumber

const TDriveNumber iDriveNumber [private]

const TDriveUnit iDriveUnit

const TDriveUnit iDriveUnit [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]