epoc32/include/calentryview.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __CALENTRYVIEW_H__
    17 #define __CALENTRYVIEW_H__
    18 
    19 #include <badesca.h>
    20 #include <calentry.h>
    21 
    22 class MCalProgressCallBack;
    23 class CCalSession;
    24 class CCalEntryViewImpl;
    25 
    26 /** View class for accessing calendar entries.
    27 
    28 Once a session to a calendar file has been created, a view to the session
    29 can be created.
    30 
    31 This view can be used to fetch, store and delete entries.
    32 
    33 @publishedAll
    34 @released
    35 */
    36 NONSHARABLE_CLASS(CCalEntryView) : public CBase
    37     {
    38 public:
    39 		
    40 	IMPORT_C static CCalEntryView* NewL(CCalSession& aSession, MCalProgressCallBack& aProgressCallBack);
    41 	IMPORT_C static CCalEntryView* NewL(CCalSession& aSession);
    42 
    43 	IMPORT_C ~CCalEntryView();
    44 	
    45 	IMPORT_C void FetchL(const TDesC8& aUid, RPointerArray<CCalEntry>& aCalEntryArray) const;
    46 	IMPORT_C CCalEntry* FetchL(TCalLocalUid aId) const;
    47 	
    48 	IMPORT_C void GetIdsModifiedSinceDateL(const TCalTime& aTime, RArray<TCalLocalUid>& aIds) const;
    49 	
    50 	IMPORT_C void StoreL(const RPointerArray<CCalEntry>& aCalEntryList, TInt& aNumSuccessfulEntry);
    51 	IMPORT_C void UpdateL(const RPointerArray<CCalEntry>& aCalEntryList, TInt& aNumSuccessfulEntry);
    52 	
    53 	IMPORT_C void DeleteL(const CDesC8Array& aUidList);
    54 	IMPORT_C void DeleteL(const CCalEntry& aCalEntry);
    55 	IMPORT_C void DeleteL(const CalCommon::TCalTimeRange& aCalTimeRange, CalCommon::TCalViewFilter aFilter, MCalProgressCallBack& aProgressCallBack);
    56 	IMPORT_C void DeleteL(const RArray<TCalLocalUid>& aIds, TInt& aNumSuccessfulDeleted);
    57 
    58 private:
    59 	CCalEntryView();
    60 	void ConstructL(CCalSession& aSession, MCalProgressCallBack* aProgressCallBack);
    61 private:
    62 	CCalEntryViewImpl* iImpl;
    63 	};
    64 	
    65 #endif // __CALENTRYVIEW_H__