Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: FLDBLTIN.H

Class MFieldFileNameInfo

class MFieldFileNameInfo;

Description

Specifies the mixin protocol for evaluating a filename field.

You should implement the UpdateFieldFileName() function in a concrete derived class, then pass an object of the derived class to the filename field (using CFileNameField::SetFileNameInfo()) before the field can be evaluated.

Members

Defined in MFieldFileNameInfo:
UpdateFieldFileName()


Member functions


UpdateFieldFileName()

virtual TInt UpdateFieldFileName(TPtr &aValueText) const=0;

Description

Implementations of this function should set aValueText to the current document's filename, if the buffer is large enough. If not, the function should return the length which is required to hold the filename.

Parameters

TPtr &aValueText

Descriptor which on return contains the document's filename.

Return value

TInt

Zero if aValueText is long enough to hold the filename. Otherwise, the length of the buffer which is required to hold the filename.