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