|
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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CALENTRYVIEWIMPL_H__ |
|
17 #define __CALENTRYVIEWIMPL_H__ |
|
18 |
|
19 #include <badesca.h> |
|
20 #include "calcommon.h" |
|
21 |
|
22 class CCalEntry; |
|
23 class CCalSession; |
|
24 class CCalSessionImpl; |
|
25 class MCalProgressCallBack; |
|
26 class RAgendaServ; |
|
27 class TAgnEntryId; |
|
28 |
|
29 /** |
|
30 @internalComponent |
|
31 */ |
|
32 NONSHARABLE_CLASS(CCalEntryViewImpl) : public CBase |
|
33 { |
|
34 public: |
|
35 static CCalEntryViewImpl* NewL(CCalSession& aCalSession, MCalProgressCallBack* aProgressCallBack); |
|
36 |
|
37 ~CCalEntryViewImpl(); |
|
38 |
|
39 void FetchL(const TDesC8& aUid, RPointerArray<CCalEntry>& aCalEntryArray) const; |
|
40 CCalEntry* FetchL(TCalLocalUid aId) const; |
|
41 |
|
42 void GetIdsModifiedSinceDateL(const TCalTime& aTime, RArray<TCalLocalUid>& aIds) const; |
|
43 |
|
44 void StoreL(const RPointerArray<CCalEntry>& aCalEntryList, TInt& aNumSuccessfulEntry); |
|
45 void UpdateL(const RPointerArray<CCalEntry>& aCalEntryList, TInt& aNumSuccessfulEntry); |
|
46 |
|
47 void DeleteL(const CDesC8Array& aUidList); |
|
48 void DeleteL(const CCalEntry& aCalEntry); |
|
49 void DeleteL(const CalCommon::TCalTimeRange& aCalTimeRange, CalCommon::TCalViewFilter aFilter, MCalProgressCallBack& aProgressCallBack); |
|
50 void DeleteL(const RArray<TCalLocalUid>& aIds, TInt& aNumSuccessfulDeleted); |
|
51 |
|
52 void StopAlarmUpdatesLC(); |
|
53 static void ResetAlarmUpdates(TAny* aPtr); |
|
54 |
|
55 void StopNotificationLC(); |
|
56 static void ResetNotification(TAny* aPtr); |
|
57 |
|
58 private: |
|
59 CCalEntryViewImpl(CCalSession& aCalSession); |
|
60 void ConstructL(MCalProgressCallBack* aProgressCallBack); |
|
61 |
|
62 void DoStoreL(const RPointerArray<CCalEntry>& aCalEntryList, TInt& aNumSuccessfulEntry); |
|
63 void DoUpdateL(const RPointerArray<CCalEntry>& aCalEntryList, TInt& aNumSuccessfulEntry); |
|
64 void DoDeleteByGuidArrayL(const CDesC8Array& aUidList); |
|
65 void DoDeleteEntryL(const TAgnEntryId& aEntryId); |
|
66 void DoDeleteByLocalUidArrayL(const RArray<TCalLocalUid>& aIds); |
|
67 |
|
68 private: |
|
69 CCalSessionImpl& iCalSessionImpl; |
|
70 RAgendaServ& iAgendaServer; |
|
71 }; |
|
72 |
|
73 #endif // __CALENTRYVIEWIMPL_H__ |