#include <calinstanceview.h>
Link against:
calinterimapi.lib
class CCalInstanceView : public CBase;
Description
View class for accessing instances of calendar entries.
Once a session to a calendar file has been created, a view to the session can be created.
An instance is a calendar entry, a repeated instance of a calendar entry, or an RDate added to an entry.
This view can be used to search for instances and also to delete instances.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CCalInstanceView
- View class for accessing instances of calendar entries.
Members
Defined in CCalInstanceView
:
Inherited from CBase
:
Construction and destruction
NewL(CCalSession &,MCalProgressCallBack &)
IMPORT_C static CCalInstanceView* NewL(CCalSession &aSession, MCalProgressCallBack &aProgressCallBack);
Description
Allocates and constructs an instance view.
The instance view can not be used until the Completed() function is called on the progress callback with the value KErrNone.
Parameters
CCalSession &aSession |
The calendar session from which to create the instance view.
|
MCalProgressCallBack &aProgressCallBack |
Reference to a callback object which reports the progress of the operation.
|
|
Return value
NewL(CCalSession &,MCalProgressCallBack &)
IMPORT_C static CCalInstanceView* NewL(CCalSession &aSession, MCalProgressCallBack &aProgressCallBack);
Description
Parameters
Return value
IMPORT_C ~CCalInstanceView();
Description
Destructor for the view. Clears away any resources. Cancels any active asynchronous operation, providing notification by calling
Completed() function with the value KErrCancel on progress callback object. Note: Progress callback object must not be deleted
before the instance view is destroyed, otherwise a panic will occur.
IMPORT_C static CCalInstanceView* NewL(CCalSession &aSession);
Description
Allocates and constructs an instance view.
The instance view is created synchronously callback with the value KErrNone.
Parameters
CCalSession &aSession |
The calendar session from which to create the instance view.
|
|
Return value
IMPORT_C ~CCalInstanceView();
Description
FindInstanceL(RPointerArray< CCalInstance > &,CalCommon::TCalViewFilter,const CalCommon::TCalTimeRange &)const
IMPORT_C void FindInstanceL(RPointerArray< CCalInstance > &aInstanceList, CalCommon::TCalViewFilter aCalViewFilter, const
CalCommon::TCalTimeRange &aTimeRange) const;
Description
Gets all instances found in the specified date range, filtered as required.
Parameters
RPointerArray < CCalInstance > &aInstanceList |
On return, this array contains all instances that were found.
|
CalCommon::TCalViewFilter aCalViewFilter |
Filters instances based on the values in TCalViewFilter.
|
const CalCommon::TCalTimeRange &aTimeRange |
Specifies the start and end dates between which instances should be searched for. Any matching instances on these dates will
be included.
|
|
FindInstanceL(RPointerArray< CCalInstance > &,CalCommon::TCalViewFilter,const CalCommon::TCalTimeRange &)const
IMPORT_C void FindInstanceL(RPointerArray< CCalInstance > &aInstanceList, CalCommon::TCalViewFilter aCalViewFilter, const
CalCommon::TCalTimeRange &aTimeRange) const;
Description
Parameters
FindInstanceL(RPointerArray< CCalInstance > &,CalCommon::TCalViewFilter,const CalCommon::TCalTimeRange &,const TCalSearchParams
&)const
IMPORT_C void FindInstanceL(RPointerArray< CCalInstance > &aMatchedInstanceList, CalCommon::TCalViewFilter aCalViewFilter,
const CalCommon::TCalTimeRange &aTimeRange, const TCalSearchParams &aSearchParams) const;
Description
Gets all unexcepted instances found in the specified date range, filtered as required, with the specified text.
Parameters
Leave codes
KErrArgument |
The search text in aSearchParams contains more than 32 characters
|
|
FindInstanceL(RPointerArray< CCalInstance > &,CalCommon::TCalViewFilter,const CalCommon::TCalTimeRange &,const TCalSearchParams
&)const
IMPORT_C void FindInstanceL(RPointerArray< CCalInstance > &aMatchedInstanceList, CalCommon::TCalViewFilter aCalViewFilter,
const CalCommon::TCalTimeRange &aTimeRange, const TCalSearchParams &aSearchParams) const;
Description
Parameters
DeleteL(CCalInstance *,CalCommon::TRecurrenceRange)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(CCalInstance *aInstance, CalCommon::TRecurrenceRange aWhichInstances);
Description
Deletes this instance, and other instances of this entry as required.
This function is intended to be used together with CCalInstanceView::FindInstanceL(RPointerArray< CCalInstance > &,CalCommon::TCalViewFilter,const CalCommon::TCalTimeRange &)const
. CCalInstanceView::FindInstanceL(RPointerArray< CCalInstance > &,CalCommon::TCalViewFilter,const CalCommon::TCalTimeRange &)const
may be called to get an instance, and it can then be passed to this function to be deleted.
If all instances of an entry is deleted, then the entry itself will be removed.
Parameters
CCalInstance *aInstance |
The instance to be deleted. This function takes ownership of the instance.
|
CalCommon::TRecurrenceRange aWhichInstances |
Indicates whether only this instance should be deleted, or future/past/all instances of the same entry should also be deleted.
|
|
NextInstanceL(CalCommon::TCalViewFilter,const TCalTime &)const
IMPORT_C TCalTime NextInstanceL(CalCommon::TCalViewFilter aCalViewFilter, const TCalTime &aStartDate) const;
Description
Gets the next day with an instance on it that matches the filter.
Parameters
CalCommon::TCalViewFilter aCalViewFilter |
Filters instances based on the values in TCalViewFilter.
|
const TCalTime &aStartDate |
Specifies the start date from which instances should be searched. Any matching instances on this date will NOT be included.
|
|
Return value
TCalTime
|
The next day that contains a suitable instance, or Time::NullTime() if none is found.
|
|
PreviousInstanceL(CalCommon::TCalViewFilter,const TCalTime &)const
IMPORT_C TCalTime PreviousInstanceL(CalCommon::TCalViewFilter aCalViewFilter, const TCalTime &aStartDate) const;
Description
Gets the previous day with an instance on it that matches the filter.
Parameters
CalCommon::TCalViewFilter aCalViewFilter |
Filters instances based on the values in TCalViewFilter.
|
const TCalTime &aStartDate |
Specifies the start date before which instances should be searched. Any matching instances on this date will NOT be included.
|
|
Return value
TCalTime
|
The previous day that contains a suitable instance, or Time::NullTime() if none is found.
|
|
DeleteL(CCalInstance *,CalCommon::TRecurrenceRange)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(CCalInstance *aInstance, CalCommon::TRecurrenceRange aWhichInstances);
Description
Parameters
NextInstanceL(CalCommon::TCalViewFilter,const TCalTime &)const
IMPORT_C TCalTime NextInstanceL(CalCommon::TCalViewFilter aCalViewFilter, const TCalTime &aStartDate) const;
Description
Parameters
Return value
PreviousInstanceL(CalCommon::TCalViewFilter,const TCalTime &)const
IMPORT_C TCalTime PreviousInstanceL(CalCommon::TCalViewFilter aCalViewFilter, const TCalTime &aStartDate) const;
Description
Parameters
Return value
class TCalSearchParams;
Description
Parameter struct for storing search data. This contains a descriptor to store search text and an enum to describe the text
search behaviour.
Members
Defined in CCalInstanceView::TCalSearchParams
:
Construction and destruction
TCalSearchParams(const TDesC &,CalCommon::TCalSearchBehaviour)
IMPORT_C TCalSearchParams(const TDesC &aText, CalCommon::TCalSearchBehaviour aBehaviour);
Description
Constructor for the search parameter data structure.
Parameters
TCalSearchParams(const TDesC &,CalCommon::TCalSearchBehaviour)
IMPORT_C TCalSearchParams(const TDesC &aText, CalCommon::TCalSearchBehaviour aBehaviour);
Description
Parameters
Member functions
Text()const
IMPORT_C const TDesC& Text() const;
Description
Get the search text.
Return value
Text()const
IMPORT_C const TDesC& Text() const;
Description
Return value
Behaviour()const
IMPORT_C CalCommon::TCalSearchBehaviour Behaviour() const;
Description
Get the search behaviour.
Return value
Behaviour()const
IMPORT_C CalCommon::TCalSearchBehaviour Behaviour() const;
Description
Return value