CNifIfFactory Class Reference

class CNifIfFactory : public CNifFactory

The factory object used to create new instances of a nif. A nif is packaged in a dll - nifman will call this class to create new instances of a nif.

Since
v5.0

Inherits from

Member Functions Documentation

Info(TNifIfInfo &, TInt)

TInt Info(TNifIfInfo &aInfo,
TIntaIndex
)const [protected, pure virtual]

Return information about modules within this nif

Parameters

TNifIfInfo & aInfoOn return, contains information about a module within the nif
TInt aIndexAn index into CNifIfBase/CNifIfLink-derived objects in the nif, starting from 0. It is up to the nif how it assigns indices to objects.

NewInterfaceL(const TDesC &)

CNifIfBase *NewInterfaceL(const TDesC &aName)[protected, pure virtual]
Create a new instance of the nif contained within this DLL
Note:

The class returned should actually be a CNifIfLink-derived object

Parameters

const TDesC & aNameA protocol name supported by the nif

NewInterfaceL(const TDesC &, MNifIfNotify *)

IMPORT_C CNifIfBase *NewInterfaceL(const TDesC &aName,
MNifIfNotify *aNotify
)[protected, virtual]
Create a new instance of the nif contained within this DLL, passing in the interface to nifman for nifs that need the MNifIfNotify pointer for early initialisation (eg: for CommDb access).
Note:

This should only be used as a temporary method of stacking nifs, where the commdb access is used to find out which additional nif to load

Since
v7.0s

Parameters

const TDesC & aNameThe name of the nif instance to create
MNifIfNotify * aNotify