TCalenInstanceId Class Reference
This class is meant to be used, when we want to store what instance was used/focused/modified/displayed, but we don't want to store actual instance. Actual instance might become unusable, if underlying entry is modified or removed.
Thus it's safer to store weak reference to it and fetch instance when needed.
Entry type is cached to this class only for optimization. Entry type is needed e.g. when opening Options-menus to decide what items should be there and fetching real instances to get entry type would be too heavy operation.
Public Member Functions
|
|
TCalenInstanceId
()
|
|
TCalenInstanceId
(const
TCalLocalUid
&, const
TTime
&,
CCalEntry::TType
, const
TCalCollectionId
)
|
|
TCalenInstanceId
(const
TCalLocalUid
&, const
TTime
&,
TBool
, const
TCalCollectionId
)
|
TCalenInstanceId
|
CreateL
(const
CCalInstance
&)
|
TCalenInstanceId
|
CreateL
(const
CCalEntry
&, const
TCalTime
&, const
TCalCollectionId
)
|
TCalenInstanceId
|
CreateL
(const
TCalLocalUid
&, const
TTime
&,
TBool
, const
TCalCollectionId
)
|
TCalenInstanceId
|
NullInstanceId
()
|
TBool
|
operator==
(const
TCalenInstanceId
&)
|
Constructor & Destructor Documentation
TCalenInstanceId()
TCalenInstanceId
|
(
|
)
|
[inline]
|
TCalenInstanceId(const TCalLocalUid &, const TTime &, CCalEntry::TType, const TCalCollectionId)
TCalenInstanceId(const TCalLocalUid &, const TTime &, TBool, const TCalCollectionId)
Parameters
const
TCalLocalUid
& aLuid
|
The local UID
|
const
TTime
& aInstanceTime
|
The instance time
|
TBool
aInstanceViewed
|
ETrue if the instance is viewed in viewer, EFalse otherwise
|
const
TCalCollectionId
aColId = -1
|
The collection id.
|
Member Functions Documentation
CreateL(const CCalInstance &)
Parameters
const
CCalInstance
& aInstance
|
Reference of type CCalInstance for which the instance id is required
|
CreateL(const CCalEntry &, const TCalTime &, const TCalCollectionId)
Parameters
const
CCalEntry
& aEntry
|
Reference of type CCalEntry for which the instance id is required
|
const
TCalTime
& aInstanceTime
|
Reference of type TCalTime
|
const
TCalCollectionId
aColId = -1
|
The collection id
|
CreateL(const TCalLocalUid &, const TTime &, TBool, const TCalCollectionId)
Parameters
const
TCalLocalUid
& aLuid
|
Reference of type TCalLocalUid for which the instance id is required
|
const
TTime
& aInstanceTime
|
Reference of type TTime
|
TBool
aInstanceViewed
|
ETrue if the instance is viewed in the viewer, EFalse otherwise
|
const
TCalCollectionId
aColId = -1
|
The collection id.
|
operator==(const TCalenInstanceId &)
Member Data Documentation
TCalLocalUid
iEntryLocalUid
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.