#include <calentryview.h>
Link against:
calinterimapi.lib
class CCalEntryView : public CBase;
Description
View class for accessing calendar entries.
Once a session to a calendar file has been created, a view to the session can be created.
This view can be used to fetch, store and delete entries.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CCalEntryView
- View class for accessing calendar entries.
Members
Defined in CCalEntryView
:
DeleteL(const CCalEntry &)
Deletes an entry from the calender file. If this a parent entry all it's childre...
DeleteL(const CCalEntry &)
DeleteL(const CDesC8Array &)
Deletes multiple entries from the calendar file.
DeleteL(const CDesC8Array &)
DeleteL(const RArray< TCalLocalUid > &,TInt &)
Deletes multiple entries from the calendar file.
DeleteL(const RArray< TCalLocalUid > &,TInt &)
FetchL(TCalLocalUid)const
Fetches a CCalEntry object related to the cal unique id.
FetchL(TCalLocalUid)const
FetchL(const TDesC8 &,RPointerArray< CCalEntry > &)const
Fetches all CCalEntry objects related to the Uid. The first entry in the array w...
FetchL(const TDesC8 &,RPointerArray< CCalEntry > &)const
GetIdsModifiedSinceDateL(const TCalTime &,RArray< TCalLocalUid > &)const
Gets all the modified calendar local ids in the file since a specified date
GetIdsModifiedSinceDateL(const TCalTime &,RArray< TCalLocalUid > &)const
NewL(CCalSession &)
NewL(CCalSession &,MCalProgressCallBack &)
NewL(CCalSession &,MCalProgressCallBack &)
Allocates and constructs an entry view, with a reference to a state callback obj...
StoreL(const RPointerArray< CCalEntry > &,TInt &)
Stores entries in the calendar file.
StoreL(const RPointerArray< CCalEntry > &,TInt &)
UpdateL(const RPointerArray< CCalEntry > &,TInt &)
Updates entries in the calendar file.
UpdateL(const RPointerArray< CCalEntry > &,TInt &)
~CCalEntryView()
The destructor frees all resources owned by the entry view, prior to its destruc...
~CCalEntryView()
Inherited from CBase
:
Related Topics
»
Symbian OS v9.4 »
Examples »
Application Engines example code »
CalinterimAPI: Using Calendar API
Construction and destruction
NewL(CCalSession &,MCalProgressCallBack &)
IMPORT_C static CCalEntryView* NewL(CCalSession &aSession, MCalProgressCallBack &aProgressCallBack);
Description
Parameters
Return value
NewL(CCalSession &,MCalProgressCallBack &)
IMPORT_C static CCalEntryView* NewL(CCalSession &aSession, MCalProgressCallBack &aProgressCallBack);
Description
Allocates and constructs an entry view, with a reference to a state callback object.
Parameters
CCalSession &aSession |
The handle to the calendar session.
|
MCalProgressCallBack &aProgressCallBack |
Provides a callback function which notifies the user when the index has been built.
|
|
Return value
IMPORT_C static CCalEntryView* NewL(CCalSession &aSession);
Description
Parameters
Return value
IMPORT_C ~CCalEntryView();
Description
The destructor frees all resources owned by the entry view, prior to its destruction. It 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 entry view is destroyed, otherwise a panic will occur.
IMPORT_C ~CCalEntryView();
Description
FetchL(const TDesC8 &,RPointerArray< CCalEntry > &)const
IMPORT_C void FetchL(const TDesC8 &aUid, RPointerArray< CCalEntry > &aCalEntryArray) const;
Description
Fetches all CCalEntry
objects related to the Uid. The first entry in the array will always be the parent entry. see CCalEntry
for definition of parent entry.
Parameters
See also:
CCalEntry
Class representing a calendar entry. This can be an appointment, to-do item, rem...
FetchL(TCalLocalUid)const
IMPORT_C CCalEntry* FetchL(TCalLocalUid aId) const;
Description
Fetches a CCalEntry
object related to the cal unique id.
Parameters
Return value
CCalEntry *
|
The entry that has been fetched, this will be NULL if there are no entries with the cal unique id
|
|
FetchL(const TDesC8 &,RPointerArray< CCalEntry > &)const
IMPORT_C void FetchL(const TDesC8 &aUid, RPointerArray< CCalEntry > &aCalEntryArray) const;
Description
Parameters
FetchL(TCalLocalUid)const
IMPORT_C CCalEntry* FetchL(TCalLocalUid aId) const;
Description
Parameters
Return value
GetIdsModifiedSinceDateL(const TCalTime &,RArray< TCalLocalUid > &)const
IMPORT_C void GetIdsModifiedSinceDateL(const TCalTime &aTime, RArray< TCalLocalUid > &aIds) const;
Description
Gets all the modified calendar local ids in the file since a specified date
Parameters
const TCalTime &aTime |
The time to get the ids since.
|
RArray < TCalLocalUid > &aIds |
|
|
GetIdsModifiedSinceDateL(const TCalTime &,RArray< TCalLocalUid > &)const
IMPORT_C void GetIdsModifiedSinceDateL(const TCalTime &aTime, RArray< TCalLocalUid > &aIds) const;
Description
Parameters
StoreL(const RPointerArray< CCalEntry > &,TInt &)
Capability: |
WriteUserData |
|
IMPORT_C void StoreL(const RPointerArray< CCalEntry > &aCalEntryList, TInt &aNumSuccessfulEntry);
Description
Stores entries in the calendar file.
Parameters
const RPointerArray < CCalEntry > &aCalEntryList |
The list of entries to be stored.
|
TInt &aNumSuccessfulEntry |
On return, this contains the number of entries which were successfully stored.
|
|
UpdateL(const RPointerArray< CCalEntry > &,TInt &)
Capability: |
WriteUserData |
|
IMPORT_C void UpdateL(const RPointerArray< CCalEntry > &aCalEntryList, TInt &aNumSuccessfulEntry);
Description
Updates entries in the calendar file.
Parameters
const RPointerArray < CCalEntry > &aCalEntryList |
The list of entries to be updated.
|
TInt &aNumSuccessfulEntry |
On return, this contains the number of entries which were successfully updated.
|
|
Leave codes
KErrArgument |
If aCalEntryList contains a CCalEntry that is not the parent. see CCalEntry for definition of a parent entry
|
|
See also:
CCalEntry
Class representing a calendar entry. This can be an appointment, to-do item, rem...
StoreL(const RPointerArray< CCalEntry > &,TInt &)
Capability: |
WriteUserData |
|
IMPORT_C void StoreL(const RPointerArray< CCalEntry > &aCalEntryList, TInt &aNumSuccessfulEntry);
Description
Parameters
UpdateL(const RPointerArray< CCalEntry > &,TInt &)
Capability: |
WriteUserData |
|
IMPORT_C void UpdateL(const RPointerArray< CCalEntry > &aCalEntryList, TInt &aNumSuccessfulEntry);
Description
Parameters
DeleteL(const CDesC8Array &)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(const CDesC8Array &aUidList);
Description
Deletes multiple entries from the calendar file.
Parameters
DeleteL(const CCalEntry &)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(const CCalEntry &aCalEntry);
Description
Deletes an entry from the calender file. If this a parent entry all it's children will also be deleted. see CCalEntry
for definition of parent entry.
Parameters
const CCalEntry &aCalEntry |
The entry to delete.
|
|
See also:
CCalEntry
Class representing a calendar entry. This can be an appointment, to-do item, rem...
DeleteL(const CDesC8Array &)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(const CDesC8Array &aUidList);
Description
Parameters
DeleteL(const CalCommon::TCalTimeRange &,CalCommon::TCalViewFilter,MCalProgressCallBack &)
IMPORT_C void DeleteL(const CalCommon::TCalTimeRange &aCalTimeRange, CalCommon::TCalViewFilter aFilter, MCalProgressCallBack
&aProgressCallBack);
Description
Deletes a subset of the model's entries. The entries affected are those which occur within the time range specified by aCalTimeRange.
This method will lock the calendar file. Any request made, by any client, before this has completed will leave with KErrLocked.
Parameters
DeleteL(const CCalEntry &)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(const CCalEntry &aCalEntry);
Description
Parameters
DeleteL(const RArray< TCalLocalUid > &,TInt &)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(const RArray< TCalLocalUid > &aIds, TInt &aNumSuccessfulDeleted);
Description
Deletes multiple entries from the calendar file.
Parameters
const RArray < TCalLocalUid > &aIds |
|
TInt &aNumSuccessfulDeleted |
The number of local ids that have been successfully processed.
|
|
DeleteL(const CalCommon::TCalTimeRange &,CalCommon::TCalViewFilter,MCalProgressCallBack &)
IMPORT_C void DeleteL(const CalCommon::TCalTimeRange &aCalTimeRange, CalCommon::TCalViewFilter aFilter, MCalProgressCallBack
&aProgressCallBack);
Description
Parameters
DeleteL(const RArray< TCalLocalUid > &,TInt &)
Capability: |
WriteUserData |
|
IMPORT_C void DeleteL(const RArray< TCalLocalUid > &aIds, TInt &aNumSuccessfulDeleted);
Description
Parameters
const RArray < TCalLocalUid > &aIds |
|
TInt &aNumSuccessfulDeleted |
|
|