CAgnCategory Class Reference

class CAgnCategory : public CBase

A category associated with an agenda entry.

The category's type is held as a TAgnCategoryType value. The set of possible categories is as defined in the vCalendar 1.0 standard, with the addition of an 'Extended' category type.

The Extended category type allows for user-defined categories. An extended name is needed for an extended category. The name can be assigned a descriptor of any length.

Any number of categories can be specified for an entry. CCalEntry provides member functions for adding, deleting and fetching categories for an entry. CCalCategoryManager's category support functions enable you to find the categories used in a file and to get a list of entries filtered by their category.

These properties are identical to those accessible through the CCalCategory interface.

Inherits from

Constructor & Destructor Documentation

CAgnCategory()

CAgnCategory()[private]

~CAgnCategory()

~CAgnCategory()

Member Functions Documentation

Category()

CCalCategory::TCalCategoryType Category()const [inline]

Gets the category type.

The category type.

ConstructL(CCalCategory::TCalCategoryType, const TDesC &)

voidConstructL(CCalCategory::TCalCategoryTypeaCategory,
const TDesC &aExtendedName
)[private]

Parameters

CCalCategory::TCalCategoryType aCategory
const TDesC & aExtendedName

CopyL(const CAgnCategory &)

voidCopyL(const CAgnCategory &aCategory)[private]

Makes a copy of a category.

Parameters

const CAgnCategory & aCategoryPointer to the category to copy.

CreateCategoryL(CCalCategory::TCalCategoryType, const TDesC &)

CAgnCategory *CreateCategoryL(CCalCategory::TCalCategoryTypeaCategory,
const TDesC &aExtendedName
)[private, static]

Parameters

CCalCategory::TCalCategoryType aCategory
const TDesC & aExtendedName

ExtendedCategoryName()

IMPORT_C const TDesC &ExtendedCategoryName()const

Gets the extended category name.

The extended category name if there is one, otherwise an empty descriptor.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

NewL(CCalCategory::TCalCategoryType)

IMPORT_C CAgnCategory *NewL(CCalCategory::TCalCategoryTypeaCategory)[static]

Allocates and constructs a category object of one of the standard types.

To create a category of user-defined type, use the other overload of NewL().

Parameters

CCalCategory::TCalCategoryType aCategoryThe category type.

NewL(const TDesC &)

IMPORT_C CAgnCategory *NewL(const TDesC &aExtendedName)[static]

Allocates and constructs a category object of user-defined type, with the specified category name.

To create a category of a standard type, use the other overload of NewL().

Parameters

const TDesC & aExtendedNameThe extended category name.

NewL(RReadStream &)

IMPORT_C CAgnCategory *NewL(RReadStream &aStream)[static]

Parameters

RReadStream & aStream

NewL(const CAgnCategory &)

IMPORT_C CAgnCategory *NewL(const CAgnCategory &aCategory)[static]

Parameters

const CAgnCategory & aCategory

Member Data Documentation

CCalCategory::TCalCategoryType iCategoryType

CCalCategory::TCalCategoryType iCategoryType[private]

HBufC * iExtendedCategoryName

HBufC *iExtendedCategoryName[private]