CAgnEntry Class Reference

class CAgnEntry : public CAgnSimpleEntry

Class representing a full agenda entry.

CAgnEntry adds common entry information including summary, description, location, categories and attendees to CAgnSimpleEntry.

To find the type of an entry or instance, use CAgnSimpleEntry::Type().

On the client-side, a CAgnEntry is created whenever CCalEntry::NewL is called, and whenever a CCalEntry is fetched from the calendar store. When a CCalInstance is fetched from the calendar store, it will contain a 'light entry' (i.e. a CAgnSimpleEntry), but if any operation is made on that light entry which cannot be handled by CAgnSimpleEntry, the full CAgnEntry will be loaded.

On the server-side, CAgnEntry is externalized and internalized to streams in the calendar file. CAgnEntry is not used in any of the indexes.

Inherits from

Public Member Functions
~CAgnEntry()
IMPORT_C voidAddAttachmentL(CAgnAttachment *)
IMPORT_C voidAddAttendeeL(CAgnAttendee *)
IMPORT_C voidAddCategoryL(CAgnCategory *)
IMPORT_C voidAddChildIdL(const TGsChildRefData &)
IMPORT_C CAgnContent *AlarmAction()
IMPORT_C TAgnDataChangeAlarmActionChange()
IMPORT_C TBoolAlarmActionIsLoaded()
IMPORT_C const TStreamId &AlarmActionStreamId()
IMPORT_C const TDesC &AlarmSoundName()
IMPORT_C CAgnAttachment &Attachment(TInt)
IMPORT_C TIntAttachmentCount()
IMPORT_C TIntAttendeeCount()
IMPORT_C CCalEntry::TTranspBusyStatus()
IMPORT_C TIntCategoryCount()
TBool CategoryExist(CAgnCategory &)
IMPORT_C const RArray< TGsChildRefData > &ChildIds()
IMPORT_C voidClearAlarm()
IMPORT_C CAgnEntry *CloneL()
IMPORT_C TBoolCompareL(const CAgnEntry &)
IMPORT_C voidCopyFromL(const CAgnEntry &, CCalEntry::TCopyType)
voidCreateAttendeeListL()
IMPORT_C const TTime &DTStampUtcL()
IMPORT_C TIntDeleteAttachmentL(const CAgnAttachment &)
IMPORT_C voidDeleteAttendee(TInt)
IMPORT_C voidDeleteCategory(TInt)
IMPORT_C const TDesC &Description()
IMPORT_C TAgnDataChangeDescriptionChange()
IMPORT_C TBoolDescriptionIsLoaded()
IMPORT_C const TStreamId &DescriptionStreamId()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidExternalizeToBufferL(RWriteStream &)
IMPORT_C CAgnAttendee &FetchAttendee(TInt)
IMPORT_C CAgnCategory &FetchCategory(TInt)
IMPORT_C voidGeoValue(TReal &, TReal &)
TAgnCalendarTime GetChildRecurrenceId(TCalLocalUid)
IMPORT_C CGsData::TGsDataTypeGsDataType()
IMPORT_C const TDesC8 &Guid()
IMPORT_C TBoolHasChildren()
IMPORT_C voidInternalizeFromBufferL(RReadStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C const TDesC &Location()
IMPORT_C CCalEntry::TMethodMethod()
IMPORT_C CAgnEntry *NewL(CCalEntry::TType)
IMPORT_C CAgnEntry *NewL(RReadStream &)
IMPORT_C CAgnEntry *NewL(CCalEntry::TType, HBufC8 *, CCalEntry::TMethod, TUint)
IMPORT_C CAgnEntry *NewL(CCalEntry::TType, HBufC8 *, CCalEntry::TMethod, TUint, const TAgnCalendarTime &, CalCommon::TRecurrenceRange)
IMPORT_C CAgnAttendee *Organizer()
IMPORT_C TCalLocalUidParentId()
IMPORT_C CAgnAttendee *PhoneOwner()
IMPORT_C voidPruneRDatesL(const TAgnCalendarTime &, CalCommon::TRecurrenceRange)
IMPORT_C TAgnCalendarTimeRecurrenceId()
IMPORT_C CalCommon::TRecurrenceRangeRecurrenceRange()
IMPORT_C voidRemoveChildId(TCalLocalUid)
IMPORT_C CCalEntry::TReplicationStatusReplicationStatus()
IMPORT_C TIntSequenceNumber()
IMPORT_C voidSetAlarmAction(CAgnContent *)
IMPORT_C voidSetAlarmActionStreamId(const TStreamId &)
IMPORT_C voidSetAlarmSoundNameL(const TDesC &)
IMPORT_C voidSetBusyStatusL(CCalEntry::TTransp)
IMPORT_C voidSetDTStampUtcL(const TTime &)
IMPORT_C voidSetDescription(HBufC *)
IMPORT_C voidSetDescriptionStreamId(const TStreamId &)
IMPORT_C voidSetGeoValueL(const TReal &, const TReal &)
IMPORT_C voidSetGuid(HBufC8 *)
IMPORT_C voidSetLocationL(const TDesC &)
IMPORT_C voidSetMethod(CCalEntry::TMethod)
IMPORT_C voidSetOrganizerL(CAgnAttendee *)
IMPORT_C voidSetParentId(TCalLocalUid)
IMPORT_C voidSetPhoneOwnerL(CAgnAttendee *)
IMPORT_C voidSetRecurrenceIdFromParentL(const CAgnEntry &)
IMPORT_C voidSetRecurrenceRangeL(CalCommon::TRecurrenceRange)
IMPORT_C voidSetReplicationStatusL(CCalEntry::TReplicationStatus)
IMPORT_C voidSetSequenceNumber(TInt)
IMPORT_C voidSetSummary(HBufC *)
IMPORT_C voidSetSummaryStreamId(const TStreamId &)
IMPORT_C voidSetUserInt(TUint32)
IMPORT_C const TDesC &Summary()
IMPORT_C TAgnDataChangeSummaryChange()
IMPORT_C TBoolSummaryIsLoaded()
IMPORT_C const TStreamId &SummaryStreamId()
IMPORT_C voidUpdateRecurrenceIdL(const TAgnCalendarTime &)
IMPORT_C TUint32UserInt()
IMPORT_C voidVerifyBeforeStoreL()
Private Member Functions
CAgnEntry(CCalEntry::TType)
voidConstructL(HBufC8 *, CCalEntry::TMethod, TUint)
voidConstructL(HBufC8 *, CCalEntry::TMethod, TUint, const TAgnCalendarTime &, CalCommon::TRecurrenceRange)
voidExternalizeEntryL(RWriteStream &, TBool)
voidExternalizeGsDataL(RWriteStream &, TBool)
voidInternalizeEntryL(RReadStream &, TBool)
voidInternalizeGsDataL(RReadStream &, TBool)
TBool IsFlagSet(TFlags)
voidSetFlagOff(TFlags)
voidSetFlagOn(TFlags)
Inherited Functions
CAgnSimpleEntry::AdjustStartUntilTimeForRepEntryL()
CAgnSimpleEntry::AlarmOffset()const
CAgnSimpleEntry::CAgnSimpleEntry(CCalEntry::TType)
CAgnSimpleEntry::ClearRepeat()
CAgnSimpleEntry::CollectionId()const
CAgnSimpleEntry::CompletedDateUtc()const
CAgnSimpleEntry::CopySimpleEntryL(const CAgnSimpleEntry &,CCalEntry::TCopyType)
CAgnSimpleEntry::DurationMinusL(const TTime &)const
CAgnSimpleEntry::DurationPlusL(const TTime &)const
CAgnSimpleEntry::EndTime()const
CAgnSimpleEntry::EntryId()const
CAgnSimpleEntry::EntryTime()const
CAgnSimpleEntry::ExternalizeGuidHashL(RWriteStream &)const
CAgnSimpleEntry::ExternalizeL(RWriteStream &,TBool)const
CAgnSimpleEntry::GuidHash()const
CAgnSimpleEntry::HasAlarm()const
CAgnSimpleEntry::InternalizeGuidHashL(RReadStream &)
CAgnSimpleEntry::InternalizeL(RReadStream &,TBool)
CAgnSimpleEntry::LastModifiedDateUtc()const
CAgnSimpleEntry::LocalUid()const
CAgnSimpleEntry::MoveStartTimeLocalL(const TTime &)
CAgnSimpleEntry::Priority()const
CAgnSimpleEntry::RptDef()
CAgnSimpleEntry::RptDef()const
CAgnSimpleEntry::SetAlarmOffset(const TTimeIntervalMinutes &)
CAgnSimpleEntry::SetCollectionId(TCalCollectionId)
CAgnSimpleEntry::SetCompletedDateUtcL(const TTime &)
CAgnSimpleEntry::SetEntryId(const TAgnEntryId &)
CAgnSimpleEntry::SetGuidHash(TUint32)
CAgnSimpleEntry::SetIncomplete()
CAgnSimpleEntry::SetLastModifiedDate()
CAgnSimpleEntry::SetLastModifiedDateUtc(const TTime &)
CAgnSimpleEntry::SetLocalUid(TCalLocalUid)
CAgnSimpleEntry::SetPriority(TUint8)
CAgnSimpleEntry::SetRptDefL(const CAgnRptDef &)
CAgnSimpleEntry::SetStartAndEndTimeL(const TAgnCalendarTime &,const TAgnCalendarTime &)
CAgnSimpleEntry::SetStatus(CCalEntry::TStatus)
CAgnSimpleEntry::StartTime()const
CAgnSimpleEntry::StartTimeChanged()
CAgnSimpleEntry::Status()const
CAgnSimpleEntry::TimeMode()const
CAgnSimpleEntry::Type()const
CAgnSimpleEntry::ValidFromTimeLocalL()const
CAgnSimpleEntry::ValidToTimeLocalL()const
CAgnSimpleEntry::doExternalizeL(RWriteStream &,TBool)const
CAgnSimpleEntry::doInternalizeL(RReadStream &,TBool)
CAgnSimpleEntry::operator new(TUint,TLeave,CAgnSimpleEntryAllocator *)
CAgnSimpleEntry::operator==(const CAgnSimpleEntry &)const
CAgnSimpleEntry::~CAgnSimpleEntry()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTAgnDataChange { EAgnDataNoChange, EAgnDataDeleted, EAgnDataAdded, EAgnDataUpdated }
Private Member Enumerations
enumTFlags { EAgnAlarmActionDeleted = 0x01 }
Private Attributes
CAgnContent *iAlarmAction
TStreamId iAlarmActionStreamId
HBufC *iAlarmSoundName
RPointerArray< CAgnAttachment > *iAttachments
RPointerArray< CAgnAttendee > *iAttendeeList
TUint8 iBusyStatus
RPointerArray< CAgnCategory > *iCategoryList
TTime iDTStampUtc
HBufC *iDescription
TStreamId iDescriptionStreamId
TUint16 iFlags
CGsData *iGsData
TReal iLatitude
HBufC *iLocation
TReal iLongitude
CAgnAttendee *iMeetingOrganizer
CAgnAttendee *iPhoneOwner
TUint8 iReplicationStatus
HBufC *iSummary
TStreamId iSummaryStreamId

Constructor & Destructor Documentation

CAgnEntry(CCalEntry::TType)

CAgnEntry(CCalEntry::TTypeaType)[private]

Parameters

CCalEntry::TType aType

~CAgnEntry()

IMPORT_C~CAgnEntry()

The destructor frees all resources owned by the entry, prior to its destruction.

Member Functions Documentation

AddAttachmentL(CAgnAttachment *)

IMPORT_C voidAddAttachmentL(CAgnAttachment *aAttachment)

Parameters

CAgnAttachment * aAttachment

AddAttendeeL(CAgnAttendee *)

IMPORT_C voidAddAttendeeL(CAgnAttendee *aAttendee)

Appends an attendee to the entry's list of attendees.

Parameters

CAgnAttendee * aAttendeePointer to the attendee details.

AddCategoryL(CAgnCategory *)

IMPORT_C voidAddCategoryL(CAgnCategory *aCategory)

Appends a category to the entry's list of categories.

The entry takes ownership of the category specified.

leave

KErrAlreadyExists if category already present

Parameters

CAgnCategory * aCategoryThe category to be added

AddChildIdL(const TGsChildRefData &)

IMPORT_C voidAddChildIdL(const TGsChildRefData &aChildRefData)

Parameters

const TGsChildRefData & aChildRefData

AlarmAction()

IMPORT_C CAgnContent *AlarmAction()const

Get the Alarm action object

AlarmActionChange()

IMPORT_C TAgnDataChangeAlarmActionChange()const

Check if the alarm action changed

1. If iAlarmActionDeleted is true, alarm has been deleted 2. If iAlarmActionStreamId is KNullStreamId and iAlarmAction is not NULL, alarm has been added 3. If iAlarmActionStreamId is not KNullStreamId and iAlarmAction is not KNullDesC, The AlarmAction could be updated

TAgnAlarmActionChange value indicating the type of change

AlarmActionIsLoaded()

IMPORT_C TBoolAlarmActionIsLoaded()const

Check if Alarm action object is loaded from the stream

AlarmActionStreamId()

IMPORT_C const TStreamId &AlarmActionStreamId()const

Get the Alarm action stream id

AlarmSoundName()

IMPORT_C const TDesC &AlarmSoundName()const

Gets the name of the alarm sound as set by SetAlarmSoundName().

Returns NULL if the entry isn't alarmed.

The name of the alarm sound.

Attachment(TInt)

IMPORT_C CAgnAttachment &Attachment(TIntaIndex)const

Parameters

TInt aIndex

AttachmentCount()

IMPORT_C TIntAttachmentCount()const

AttendeeCount()

IMPORT_C TIntAttendeeCount()const

Gets the number of attendees that have been added to the entry.

Number of attendees added.

BusyStatus()

IMPORT_C CCalEntry::TTranspBusyStatus()const

Get transparency value

CategoryCount()

IMPORT_C TIntCategoryCount()const

Gets the number of categories owned by the entry.

The number of categories.

CategoryExist(CAgnCategory &)

TBool CategoryExist(CAgnCategory &aSearchCategory)const

Check if category is already present

Parameters

CAgnCategory & aSearchCategory

ChildIds()

IMPORT_C const RArray< TGsChildRefData > &ChildIds()const

ClearAlarm()

IMPORT_C voidClearAlarm()

Clear associated alarm

CloneL()

IMPORT_C CAgnEntry *CloneL()const

CompareL(const CAgnEntry &)

IMPORT_C TBoolCompareL(const CAgnEntry &aEntry)const

Compares another entry for equality with this one.

The entries' instance IDs and unique IDs are also compared.

ETrue if aEntry is the same as this entry, EFalse if not. Note. Replication data is not included in the comparison, except for the replication status.

Parameters

const CAgnEntry & aEntryPointer to an entry.

ConstructL(HBufC8 *, CCalEntry::TMethod, TUint)

voidConstructL(HBufC8 *aUid,
CCalEntry::TMethodaMethod,
TUintaSeqNum
)[private]

Parameters

HBufC8 * aUid
CCalEntry::TMethod aMethod
TUint aSeqNum

ConstructL(HBufC8 *, CCalEntry::TMethod, TUint, const TAgnCalendarTime &, CalCommon::TRecurrenceRange)

voidConstructL(HBufC8 *aUid,
CCalEntry::TMethodaMethod,
TUintaSeqNum,
const TAgnCalendarTime &aRecurrenceId,
CalCommon::TRecurrenceRangeaRange
)[private]

Parameters

HBufC8 * aUid
CCalEntry::TMethod aMethod
TUint aSeqNum
const TAgnCalendarTime & aRecurrenceId
CalCommon::TRecurrenceRange aRange

CopyFromL(const CAgnEntry &, CCalEntry::TCopyType)

IMPORT_C voidCopyFromL(const CAgnEntry &aSource,
CCalEntry::TCopyTypeaCopyType
)

Copy the details common to all entry types from aSource. If aCopyType is EShallowCopy it indicates that if aSources rich text is stored out of line and its not loaded then it isn't loaded and copied

Parameters

const CAgnEntry & aSource
CCalEntry::TCopyType aCopyType

CreateAttendeeListL()

voidCreateAttendeeListL()

DTStampUtcL()

IMPORT_C const TTime &DTStampUtcL()const

DeleteAttachmentL(const CAgnAttachment &)

IMPORT_C TIntDeleteAttachmentL(const CAgnAttachment &aAttachment)

Parameters

const CAgnAttachment & aAttachment

DeleteAttendee(TInt)

IMPORT_C voidDeleteAttendee(TIntaIndex)

Deletes the attendee at the index specified from the entry's list of attendees.

If there is no attendee at the index specified, a panic occurs.

Parameters

TInt aIndexIndex of the attendee to delete.

DeleteCategory(TInt)

IMPORT_C voidDeleteCategory(TIntaIndex)

Deletes the indexed category.

Parameters

TInt aIndexIndex into the entry's list of categories. Must be valid or a panic occurs.

Description()

IMPORT_C const TDesC &Description()const

Gets the notes text.

If no notes text has been set, a empty descriptor (KNullDesC) is returned.

capability

ReadUserData

The notes text.

DescriptionChange()

IMPORT_C TAgnDataChangeDescriptionChange()const

Check if the notes changed

1. If iDescription is NULL, The description has never been added or never been loaded - No Change 2. If iDescriptionStreamId is not KNullStreamId and iDecription is KNullDesC, The descrioption has been deleted (CAgnEntry::SetDescrioprion() can be used to delete description) 3. If iDescriptionStreamId is not KNullStreamId and iDecription is not KNullDesC, The descrioption could be updated 4. If iDescriptionStreamId is KNullStreamId and iDescription is not KNullDesC, The description has been added

TAgnDescriptionChange value indicating the type of change

DescriptionIsLoaded()

IMPORT_C TBoolDescriptionIsLoaded()const

Check notes is loaded

capability

ReadUserData

Boolean to indicate if loaded or not

DescriptionStreamId()

IMPORT_C const TStreamId &DescriptionStreamId()const

Gets the ID of the embedded stream store in which the description has been stored.

The ID for the stream store in which the description has been stored.

ExternalizeEntryL(RWriteStream &, TBool)

voidExternalizeEntryL(RWriteStream &aStream,
TBoolaToBuffer = EFalse
)const [private]

Parameters

RWriteStream & aStream
TBool aToBuffer = EFalse

ExternalizeGsDataL(RWriteStream &, TBool)

voidExternalizeGsDataL(RWriteStream &aStream,
TBoolaToBuffer
)const [private]

Parameters

RWriteStream & aStream
TBool aToBuffer

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalises an entry's details and attributes, but not its rich text to a write stream.

The presence of this function means that the standard templated operator<<() (defined in s32strm.h) is available to externalise objects of this class.

Parameters

RWriteStream & aStreamStream to which the object should be externalised.

ExternalizeToBufferL(RWriteStream &)

IMPORT_C voidExternalizeToBufferL(RWriteStream &aStream)const

Used for passing the data to the between client and server

Parameters

RWriteStream & aStream

FetchAttendee(TInt)

IMPORT_C CAgnAttendee &FetchAttendee(TIntaIndex)const

Gets the attendee at the specified index within the entry's list of attendees.

The index specified must be valid (between zero and AttendeeCount()
  • 1), otherwise a panic occurs.

The attendee details.

Parameters

TInt aIndexIndex to identify the specified attendee.

FetchCategory(TInt)

IMPORT_C CAgnCategory &FetchCategory(TIntaIndex)const

Gets the indexed category.

Pointer to the category located at the index specified.

Parameters

TInt aIndexIndex into the entry's list of categories. Must be valid or a panic occurs.

GeoValue(TReal &, TReal &)

IMPORT_C voidGeoValue(TReal &aLatitude,
TReal &aLongitude
)const

Parameters

TReal & aLatitude
TReal & aLongitude

GetChildRecurrenceId(TCalLocalUid)

TAgnCalendarTime GetChildRecurrenceId(TCalLocalUidaChildId)const

Parameters

TCalLocalUid aChildId

GsDataType()

IMPORT_C CGsData::TGsDataTypeGsDataType()const

Guid()

IMPORT_C const TDesC8 &Guid()const

capability

None

TPtrC8

HasChildren()

IMPORT_C TBoolHasChildren()const

InternalizeEntryL(RReadStream &, TBool)

voidInternalizeEntryL(RReadStream &aStream,
TBoolaFromBuffer = EFalse
)[private]

Internalises an entry's details and attributes, but not its rich text from a read stream.

The presence of this function means that the standard templated operator>>() (defined in s32strm.h) is available to internalise objects of this class.

Parameters

RReadStream & aStreamStream from which the object should be internalised.
TBool aFromBuffer = EFalse

InternalizeFromBufferL(RReadStream &)

IMPORT_C voidInternalizeFromBufferL(RReadStream &aStream)

Used for passing the data to the between client and server

Parameters

RReadStream & aStream

InternalizeGsDataL(RReadStream &, TBool)

voidInternalizeGsDataL(RReadStream &aStream,
TBoolaFromBuffer
)[private]

Parameters

RReadStream & aStream
TBool aFromBuffer

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsFlagSet(TFlags)

TBool IsFlagSet(TFlagsaFlag)const [private]

Parameters

TFlags aFlag

Location()

IMPORT_C const TDesC &Location()const

Gets the contents of the entry's location field.

The location field. NULL if the entry has no location field.

Method()

IMPORT_C CCalEntry::TMethodMethod()const

NewL(CCalEntry::TType)

IMPORT_C CAgnEntry *NewL(CCalEntry::TTypeaType)[static]

Parameters

CCalEntry::TType aType

NewL(RReadStream &)

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

Parameters

RReadStream & aStream

NewL(CCalEntry::TType, HBufC8 *, CCalEntry::TMethod, TUint)

IMPORT_C CAgnEntry *NewL(CCalEntry::TTypeaType,
HBufC8 *aUid,
CCalEntry::TMethodaMethod,
TUintaSeqNum
)[static]

Parameters

CCalEntry::TType aType
HBufC8 * aUid
CCalEntry::TMethod aMethod
TUint aSeqNum

NewL(CCalEntry::TType, HBufC8 *, CCalEntry::TMethod, TUint, const TAgnCalendarTime &, CalCommon::TRecurrenceRange)

IMPORT_C CAgnEntry *NewL(CCalEntry::TTypeaType,
HBufC8 *aUid,
CCalEntry::TMethodaMethod,
TUintaSeqNum,
const TAgnCalendarTime &aRecurrenceId,
CalCommon::TRecurrenceRangeaRange
)[static]

Parameters

CCalEntry::TType aType
HBufC8 * aUid
CCalEntry::TMethod aMethod
TUint aSeqNum
const TAgnCalendarTime & aRecurrenceId
CalCommon::TRecurrenceRange aRange

Organizer()

IMPORT_C CAgnAttendee *Organizer()const

Get Organizer as attendee object

ParentId()

IMPORT_C TCalLocalUidParentId()const

PhoneOwner()

IMPORT_C CAgnAttendee *PhoneOwner()const

Get Phone owner as attendee object

PruneRDatesL(const TAgnCalendarTime &, CalCommon::TRecurrenceRange)

IMPORT_C voidPruneRDatesL(const TAgnCalendarTime &aRecurrenceId,
CalCommon::TRecurrenceRangeaRange
)

Used when adding a repeating child to a parent entry. Removes all sporadic dates either after or before the specified recurrence ID.

Parameters

const TAgnCalendarTime & aRecurrenceId
CalCommon::TRecurrenceRange aRange

RecurrenceId()

IMPORT_C TAgnCalendarTimeRecurrenceId()const

capability

None

TTime

RecurrenceRange()

IMPORT_C CalCommon::TRecurrenceRangeRecurrenceRange()const

RemoveChildId(TCalLocalUid)

IMPORT_C voidRemoveChildId(TCalLocalUidaId)

Parameters

TCalLocalUid aId

ReplicationStatus()

IMPORT_C CCalEntry::TReplicationStatusReplicationStatus()const

Get ReplicationStatus

SequenceNumber()

IMPORT_C TIntSequenceNumber()const

SetAlarmAction(CAgnContent *)

IMPORT_C voidSetAlarmAction(CAgnContent *aAlarmAction)

Set an alarm action object to the Agenda entry. The Agenda Entry takes ownership of the passed object.

Parameters

CAgnContent * aAlarmAction

SetAlarmActionStreamId(const TStreamId &)

IMPORT_C voidSetAlarmActionStreamId(const TStreamId &aStreamId)

Set the Alarm action stream id

Parameters

const TStreamId & aStreamId

SetAlarmSoundNameL(const TDesC &)

IMPORT_C voidSetAlarmSoundNameL(const TDesC &aAlarmSoundName)

Sets the name of the alarm sound.

Note: if the length of the new alarm sound name is greater than KMaxAlarmSoundName characters, it will be ignored.

Parameters

const TDesC & aAlarmSoundNameThe name of the alarm sound.

SetBusyStatusL(CCalEntry::TTransp)

IMPORT_C voidSetBusyStatusL(CCalEntry::TTranspaBusyStatus)

Set transparency value leave

KErrArgument if passed parameter is negative

Parameters

CCalEntry::TTransp aBusyStatus

SetDTStampUtcL(const TTime &)

IMPORT_C voidSetDTStampUtcL(const TTime &aDTStampUtc)

Parameters

const TTime & aDTStampUtc

SetDescription(HBufC *)

IMPORT_C voidSetDescription(HBufC *aText)

Sets the notes text.

This object takes ownership of aNotes.

Parameters

HBufC * aText

SetDescriptionStreamId(const TStreamId &)

IMPORT_C voidSetDescriptionStreamId(const TStreamId &aStreamId)

Sets the ID of the embedded stream store in which the description has been stored.

Parameters

const TStreamId & aStreamId

SetFlagOff(TFlags)

voidSetFlagOff(TFlagsaFlag)[private]

Parameters

TFlags aFlag

SetFlagOn(TFlags)

voidSetFlagOn(TFlagsaFlag)[private]

Parameters

TFlags aFlag

SetGeoValueL(const TReal &, const TReal &)

IMPORT_C voidSetGeoValueL(const TReal &aLatitude,
const TReal &aLongitude
)

Set GEO - Latitude and Longitude values for the entry Latitude is bound between +-0-90 degrees Longitude is bound between +-0-180 degrees leave

KErrArgument if passed parameter is out of bounds.

Parameters

const TReal & aLatitude
const TReal & aLongitude

SetGuid(HBufC8 *)

IMPORT_C voidSetGuid(HBufC8 *aGuid)

Parameters

HBufC8 * aGuid

SetLocationL(const TDesC &)

IMPORT_C voidSetLocationL(const TDesC &aLocation)

Sets the contents of the entry's location field.

Sets the entry's 'has extended' property.

Parameters

const TDesC & aLocationDescriptor containing a location, e.g. for a meeting.

SetMethod(CCalEntry::TMethod)

IMPORT_C voidSetMethod(CCalEntry::TMethodaMethod)

Parameters

CCalEntry::TMethod aMethod

SetOrganizerL(CAgnAttendee *)

IMPORT_C voidSetOrganizerL(CAgnAttendee *aAttendee)

Set attendee as organiser

Parameters

CAgnAttendee * aAttendee

SetParentId(TCalLocalUid)

IMPORT_C voidSetParentId(TCalLocalUidaParentId)

Parameters

TCalLocalUid aParentId

SetPhoneOwnerL(CAgnAttendee *)

IMPORT_C voidSetPhoneOwnerL(CAgnAttendee *aOwner)

Set Phone owner as attendee, this must be an existing attendee

leave

KErrNotFound if the passed attendee is not matching anyone in the current list

Parameters

CAgnAttendee * aOwner

SetRecurrenceIdFromParentL(const CAgnEntry &)

IMPORT_C voidSetRecurrenceIdFromParentL(const CAgnEntry &aParentEntry)

Parameters

const CAgnEntry & aParentEntry

SetRecurrenceRangeL(CalCommon::TRecurrenceRange)

IMPORT_C voidSetRecurrenceRangeL(CalCommon::TRecurrenceRangeaRange)

Parameters

CalCommon::TRecurrenceRange aRange

SetReplicationStatusL(CCalEntry::TReplicationStatus)

IMPORT_C voidSetReplicationStatusL(CCalEntry::TReplicationStatusaReplicationStatus)

Set ReplicationStatus

leave

KErrArgument if passed parameter exceeds boundaries

Parameters

CCalEntry::TReplicationStatus aReplicationStatus

SetSequenceNumber(TInt)

IMPORT_C voidSetSequenceNumber(TIntaSeqNum)

Parameters

TInt aSeqNum

SetSummary(HBufC *)

IMPORT_C voidSetSummary(HBufC *aSummary)

Set summary

Parameters

HBufC * aSummary

SetSummaryStreamId(const TStreamId &)

IMPORT_C voidSetSummaryStreamId(const TStreamId &aStreamId)

Sets the ID of the embedded stream store in which the summary has been stored.

Parameters

const TStreamId & aStreamId

SetUserInt(TUint32)

IMPORT_C voidSetUserInt(TUint32aUserInt)

Sets the user integer for this entry.

Parameters

TUint32 aUserIntThe new value of the user integer.

Summary()

IMPORT_C const TDesC &Summary()const

Gets a pointer to the rich text object owned by the entry.

Pointer to the rich text object. The caller does not take ownership.

SummaryChange()

IMPORT_C TAgnDataChangeSummaryChange()const

Check if the summary changed

1. If iSummary is NULL, The Summary has never been added or laoded- No Change 2. If iSummaryStreamId is not KNullStreamId and iSummary is KNullDesC, The Summary has been deleted (CAgnEntry::SetSummary() can be used to delete description) 3. If iSummaryStreamId is not KNullStreamId and iSummary is not KNullDesC, The Summary could be updated 4. If iSummaryStreamId is KNullStreamId and iSummary is not KNullDesC, The Summary has been added

TAgnSummaryChange value indicating the type of change

SummaryIsLoaded()

IMPORT_C TBoolSummaryIsLoaded()const

Check if summary text is loaded from stream

SummaryStreamId()

IMPORT_C const TStreamId &SummaryStreamId()const

Gets the ID of the embedded stream store in which the summary has been stored.

The ID for the stream store in which the summary has been stored.

UpdateRecurrenceIdL(const TAgnCalendarTime &)

IMPORT_C voidUpdateRecurrenceIdL(const TAgnCalendarTime &aRecId)

Parameters

const TAgnCalendarTime & aRecId

UserInt()

IMPORT_C TUint32UserInt()const

Gets the user integer of this entry.

The user integer.

VerifyBeforeStoreL()

IMPORT_C voidVerifyBeforeStoreL()

Member Enumerations Documentation

Enum TAgnDataChange

Used with summary, description and alarm action to indicate if the data has changed. These items are all stored on file in separate streams to the entry that owns them.

Enumerators

EAgnDataNoChange
EAgnDataDeleted
EAgnDataAdded
EAgnDataUpdated

Enum TFlags

Enumerators

EAgnAlarmActionDeleted = 0x01

Member Data Documentation

CAgnContent * iAlarmAction

CAgnContent *iAlarmAction[private]

TStreamId iAlarmActionStreamId

TStreamId iAlarmActionStreamId[private]

HBufC * iAlarmSoundName

HBufC *iAlarmSoundName[private]

RPointerArray< CAgnAttachment > * iAttachments

RPointerArray< CAgnAttachment > *iAttachments[private]

RPointerArray< CAgnAttendee > * iAttendeeList

RPointerArray< CAgnAttendee > *iAttendeeList[private]

TUint8 iBusyStatus

TUint8 iBusyStatus[private]

RPointerArray< CAgnCategory > * iCategoryList

RPointerArray< CAgnCategory > *iCategoryList[private]

TTime iDTStampUtc

TTime iDTStampUtc[private]

HBufC * iDescription

HBufC *iDescription[private]

TStreamId iDescriptionStreamId

TStreamId iDescriptionStreamId[private]

TUint16 iFlags

TUint16 iFlags[private]

CGsData * iGsData

CGsData *iGsData[private]

TReal iLatitude

TReal iLatitude[private]

HBufC * iLocation

HBufC *iLocation[private]

TReal iLongitude

TReal iLongitude[private]

CAgnAttendee * iMeetingOrganizer

CAgnAttendee *iMeetingOrganizer[private]

CAgnAttendee * iPhoneOwner

CAgnAttendee *iPhoneOwner[private]

TUint8 iReplicationStatus

TUint8 iReplicationStatus[private]

HBufC * iSummary

HBufC *iSummary[private]

TStreamId iSummaryStreamId

TStreamId iSummaryStreamId[private]