Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <matchdata.h>
Link against: xmlframework.lib

Class Xml::CMatchData

class CMatchData : public CBase;

Description

Xml::CMatchData class provides detailed parser information for XML framework. Client application should use this class to precisely specify the plugin, which should be used as a parsing engine in XML framework.

Derivation

Members

Defined in Xml::CMatchData:

Inherited from CBase:

Related Topics


Construction and destruction


NewL()

IMPORT_C static CMatchData* NewL();

Description

Creates Xml::CMatchData object with its default values.

Return value

Xml::CMatchData *

A pointer to the newly created Xml::CMatchData object.

Leave codes

KErrNoMemory

If there is not enough memory to create an object.


NewLC()

IMPORT_C static CMatchData* NewLC();

Description

Creates Xml::CMatchData object with its default values. Leaves an obeject pointer on a cleanup stack.

Return value

Xml::CMatchData *

A pointer to the newly created Xml::CMatchData object.

Leave codes

KErrNoMemory

If there is not enough memory

[Top]


Member functions


SetMimeTypeL(const TDesC8 &)

IMPORT_C void SetMimeTypeL(const TDesC8 &aData);

Description

Sets up a mime type attribute to a string given as an aData descriptor.

Parameters

const TDesC8 &aData

String descriptor

Leave codes

KErrNoMemory

If there is not enough memory for new string allocation.

KErrArgument

If passed descriptor doesn't comply with length constraints.


MimeType()const

IMPORT_C const TPtrC8 MimeType() const;

Description

Returns a pointer to the mime type string.

Return value

const TPtrC8

A pointer to the mime type string. Pointer to KNullDesC8 is returned if not set up yet.


SetVariantL(const TDesC8 &)

IMPORT_C void SetVariantL(const TDesC8 &aVariant);

Description

Sets up a variant attribute to a string given as an aVariant descriptor. If this is not set OR is set to a string of length 0 the Variant ID is not used during parser resolution and hence the variant IDs of plug-in parsers are ignored.

Parameters

const TDesC8 &aVariant

Leave codes

KErrNoMemory

If there is not enough memory for new string allocation.

KErrArgument

If passed descriptor doesn't comply with length constraints.


Variant()const

IMPORT_C const TPtrC8 Variant() const;

Description

Returns a pointer to the variant string.

Return value

const TPtrC8

A pointer to the variant string. Pointer to KNullDesC8 is returned if not set up yet.


SetLeaveOnMany(TBool)

IMPORT_C void SetLeaveOnMany(TBool aSetting);

Description

Sets the LeaveOnManyFlag flag. If set, it notifies customized resolver it should leave when the query is resolved to more than one parser. By default this flag is not set, so the framework chooses a parser in this case.

Parameters

TBool aSetting

The setting value.


SetRomOnly(TBool)

IMPORT_C void SetRomOnly(TBool aSetting);

Description

Sets the Rom Only flag. If set, it notifies customized resolver the request is for ROM-based parsers only. By default this flag is not set, so the framework searches for rom and non-rom based parsers.

Parameters

TBool aSetting

The setting value.


SetCaseSensitivity(TBool)

IMPORT_C void SetCaseSensitivity(TBool aSetting);

Description

Sets the Case Sensitivity flag. Customized resolver uses this setting to turn on or off case sensitivity for strings matching.

Parameters

TBool aSetting

The setting value.