CFaxSharedFileHandles Class Reference

class CFaxSharedFileHandles : private CBase

Utility class that provides a container for holding an adopted file handle passed between a client and server.

As part of the classes instantiation it takes in an RMessage2 reference which it uses to call RFile::AdoptFromClient(). Once the file been successfully adopted it is the responsibility of the adoptee to close the file when finished. Therefore the destructor of the class calls RFile::Close() to close the adopted file handle on deletion of this class.

This class is only intended to be instantiated from within Etel which is why the factory constructor is not exported. Etel passes a pointer to TSYs as part of transmitting a fax.

Released in v9.0 to aid passing of adopted file handle between Etel server, TSY and Fax server.

Inherits from

  • CFaxSharedFileHandles

Constructor & Destructor Documentation

CFaxSharedFileHandles()

CFaxSharedFileHandles()[protected]

Default constructor.

~CFaxSharedFileHandles()

IMPORT_C~CFaxSharedFileHandles()

Destructor.

Member Functions Documentation

ConstructL(const RMessage2 &)

voidConstructL(const RMessage2 &aMsg)[protected]

Adopt the file during construction.

Parameters

const RMessage2 & aMsg

File()

IMPORT_C RFile &File()

Reference to an adopted file.

NewL(const RMessage2 &)

CFaxSharedFileHandles *NewL(const RMessage2 &aMsg)[static]

Non-exported static factory constructor. This class should only be instantiated by Etel server.

Parameters

const RMessage2 & aMsg

Member Data Documentation

RFile iFile

RFile iFile[private]