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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CALINSTANCE_H__
17 #define __CALINSTANCE_H__
20 #include <calcommon.h>
23 class CCalInstanceImpl;
25 /** Instance ID to identify an instance uniquely
33 TCalLocalUid iEntryLocalId;
35 TCalTime iInstanceTime;
36 /* Collection Id that the instance belongs to */
37 TCalCollectionId iCollectionId;
40 /** Class representing an instance of a calendar entry.
42 A calendar entry (CCalEntry) can have any number of instances.
43 A non-repeating entry will only have one instance.
44 Any further instances will appear if the entry has recurrence data.
46 The time of an instance is the start time of that instance of the entry.
51 NONSHARABLE_CLASS(CCalInstance) : public CBase
54 static CCalInstance* NewL(CCalEntry* aEntry, const TCalTime& iTime);
55 IMPORT_C ~CCalInstance();
57 IMPORT_C CCalEntry& Entry() const;
58 IMPORT_C TCalTime Time() const;
59 IMPORT_C TCalTime StartTimeL() const;
60 IMPORT_C TCalTime EndTimeL() const;
61 IMPORT_C TCalInstanceId InstanceIdL() const;
65 void ConstructL(CCalEntry* aEntry, const TCalTime& aTime);
68 CCalInstanceImpl* iImpl;
71 #endif // __CALINSTANCE_H__