class CParserGroupedProperty : public CParserProperty |
A grouped property.
This is a vCard property which may be a member of one or more property groups. It owns an array of descriptors, each of which identifies a group to which the property belongs.
An example of how grouped properties may be useful is for a person with two homes. Each home has an address and telephone number, both of which are to be stored on the vCard. The address and telephone number are grouped for each home. A prefix for the address and telephone number properties is provided: one for each home. Each prefix is stored as a property group.
When the property is externalised, the identities of all the groups to which the property belongs (i.e. the prefixes) are written to the stream before CParserProperty::ExternalizeL() is called.
The class also provides a function which can be used to test whether the property is a member of a given group.
Note that the vCard parser stores all properties using this class; if the vCard property is not grouped then the array of property groups is empty. Conversely, the vCalender parser does not have property groups, and so stores all properties using the CParserProperty base class.
Public Member Functions | |
---|---|
CParserGroupedProperty(CDesC8Array *, CArrayPtr< CParserParam > *) | |
~CParserGroupedProperty() | |
IMPORT_C void | ExternalizeL(RWriteStream &, CVersitParser *) |
IMPORT_C TBool | Group(const TDesC8 &) |
const CDesC8Array * | Groups() |
IMPORT_C CParserGroupedProperty * | NewL(CParserPropertyValue &, const TDesC8 &, CDesC8Array *, CArrayPtr< CParserParam > *) |
void | SetGroups(CDesC8Array *) |
IMPORT_C TBool | SupportsInterface(const TUid &) |
Protected Member Functions | |
---|---|
CParserGroupedProperty(CParserPropertyValue &, CDesC8Array *, CArrayPtr< CParserParam > *) |
Private Member Functions | |
---|---|
IMPORT_C void | Reserved() |
Protected Attributes | |
---|---|
CDesC8Array * | iArrayOfGroups |
Inherited Attributes | |
---|---|
CParserProperty::iArrayOfParams | |
CParserProperty::iPropertyName | |
CParserProperty::iPropertyNameUid | |
CParserProperty::iPropertyValue |
IMPORT_C | CParserGroupedProperty | ( | CDesC8Array * | aArrayOfGroups, |
CArrayPtr< CParserParam > * | aArrayOfParams | |||
) |
CDesC8Array * aArrayOfGroups | |
CArrayPtr< CParserParam > * aArrayOfParams |
CParserGroupedProperty | ( | CParserPropertyValue & | aPropertyValue, |
CDesC8Array * | aArrayOfGroups, | ||
CArrayPtr< CParserParam > * | aArrayOfParams | ||
) | [protected] |
CParserPropertyValue & aPropertyValue | |
CDesC8Array * aArrayOfGroups | |
CArrayPtr< CParserParam > * aArrayOfParams |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream, |
CVersitParser * | aVersitParser = NULL | |||
) | [virtual] |
RWriteStream & aStream | |
CVersitParser * aVersitParser = NULL |
IMPORT_C TBool | Group | ( | const TDesC8 & | aGroup | ) | const |
const TDesC8 & aGroup |
const CDesC8Array * | Groups | ( | ) | [inline] |
Gets the groups to which the property belongs.
Pointer to an array of descriptors. Each one specifies a group name.
IMPORT_C CParserGroupedProperty * | NewL | ( | CParserPropertyValue & | aPropertyValue, |
const TDesC8 & | aName, | |||
CDesC8Array * | aArrayOfGroups, | |||
CArrayPtr< CParserParam > * | aArrayOfParams | |||
) | [static] |
CParserPropertyValue & aPropertyValue | |
const TDesC8 & aName | |
CDesC8Array * aArrayOfGroups | |
CArrayPtr< CParserParam > * aArrayOfParams |
void | SetGroups | ( | CDesC8Array * | aArrayOfGroups | ) | [inline] |
Sets the list of groups to which the property belongs, replacing any existing list.
CDesC8Array * aArrayOfGroups | Array of descriptors; each of which specifies a group name. The grouped property takes ownership of the array. |
IMPORT_C TBool | SupportsInterface | ( | const TUid & | aInterfaceUid | ) | const [virtual] |
const TUid & aInterfaceUid |