CMsgBioControlFactory Class Reference

class CMsgBioControlFactory : public CBase

Bio control factory. Gets needed information from bif files. Remember to keep the bio factory alive, and destroy it after destroying the Bio Control. Do not call the bio control creation methods more than once for a single instance of the factory.

Inherits from

  • CMsgBioControlFactory

Constructor & Destructor Documentation

CMsgBioControlFactory()

CMsgBioControlFactory()[private]

Default constructor hidden away.

CMsgBioControlFactory(const CMsgBioControlFactory &)

CMsgBioControlFactory(const CMsgBioControlFactory &aSource)[private]

Copy constructor hidden away.

Parameters

const CMsgBioControlFactory & aSource

~CMsgBioControlFactory()

IMPORT_C~CMsgBioControlFactory()

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second phase constructor

CreateControlL(MMsgBioControlObserver &, const TUid &, TMsgBioMode, TMsvId, CMsvSession *)

IMPORT_C CMsgBioControl *CreateControlL(MMsgBioControlObserver &aBioControlObserver,
const TUid &aBioMsgType,
TMsgBioModeaEditorOrViewerMode,
TMsvIdaId,
CMsvSession *aSession
)
Creates a Bio control. This version reads the message from the server. Do not call the bio control creation methods more than once for a single instance of the factory.
Exceptions
EMEUErrArgument

if aId or aSession is null or aEditorOrViewerMode has invalid value.

Parameters

MMsgBioControlObserver & aBioControlObserverReference to the Bio control observer.
const TUid & aBioMsgTypeThe type of Bio message.
TMsgBioMode aEditorOrViewerModeSpecifies whether the new Bio control will be in Editor or Viewer mode.
TMsvId aIdId of the message.
CMsvSession * aSessionHandle to Message Server session. The ownership is not transferred.

CreateControlL(MMsgBioControlObserver &, const TUid &, TMsgBioMode, const RFile &)

IMPORT_C CMsgBioControl *CreateControlL(MMsgBioControlObserver &aBioControlObserver,
const TUid &aBioMsgType,
TMsgBioModeaEditorOrViewerMode,
const RFile &aFile
)
Creates a Bio Control. This version creates a file based Bio Control. Do not call the bio control creation methods more than once for a single instance of the factory.
Exceptions
EMEUErrArgument

if aEditorOrViewerMode has undefined value

Parameters

MMsgBioControlObserver & aBioControlObserverReference to the Bio control observer.
const TUid & aBioMsgTypeThe type of Bio message.
TMsgBioMode aEditorOrViewerModeSpecifies whether the new Bio control will be in Editor or Viewer mode.
const RFile & aFileThe file handle

DoCreateControlL(MMsgBioControlObserver &, const TUid &, TMsgBioMode, TMsvId, CMsvSession *, const RFile *)

CMsgBioControl *DoCreateControlL(MMsgBioControlObserver &aBioControlObserver,
const TUid &aBioMsgType,
TMsgBioModeaEditorOrViewerMode,
TMsvIdaId,
CMsvSession *aSession,
const RFile *aFile
)[private]

This does the actual creating of the control.

Parameters

MMsgBioControlObserver & aBioControlObserverReference to the Bio control observer.
const TUid & aBioMsgTypeThe type of Bio message.
TMsgBioMode aEditorOrViewerModeSpecifies whether the new Bio control will be in Editor or Viewer mode.
TMsvId aIdId of the message.
CMsvSession * aSessionHandle to Message Server session.
const RFile * aFileinput file handle.

NewL()

IMPORT_C CMsgBioControlFactory *NewL()[static]

Two-phased constructor.

operator=(const CMsgBioControlFactory &)

const CMsgBioControlFactory &operator=(const CMsgBioControlFactory &aSource)[private]

Assignment operator hidden away.

Parameters

const CMsgBioControlFactory & aSource

Member Data Documentation

RLibrary iControlDllLibrary

RLibrary iControlDllLibrary[private]

The library where the Bio control is located.

TFileName iFileName

TFileName iFileName[private]

A filename for file based bio controls.

RFs iFs

RFs iFs[private]

File Server Session It is opened during construction of factory, and closed during destruction of factory.