epoc32/include/calinstance.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
--- a/epoc32/include/calinstance.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/calinstance.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,54 @@
-calinstance.h
+// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// 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
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef __CALINSTANCE_H__
+#define __CALINSTANCE_H__
+
+#include <caltime.h>
+
+class CCalEntry;
+class CCalInstanceImpl;
+
+/** Class representing an instance of a calendar entry.
+
+A calendar entry (CCalEntry) can have any number of instances. 
+A non-repeating entry will only have one instance.
+Any further instances will appear if the entry has recurrence data.
+
+The time of an instance is the start time of that instance of the entry.
+
+@publishedAll
+@released
+*/
+NONSHARABLE_CLASS(CCalInstance) : public CBase
+	{
+public:
+	static CCalInstance* NewL(CCalEntry* aEntry, const TCalTime& iTime);
+	IMPORT_C ~CCalInstance();
+	
+	IMPORT_C CCalEntry& Entry() const;
+	IMPORT_C TCalTime Time() const;
+	IMPORT_C TCalTime StartTimeL() const;
+	IMPORT_C TCalTime EndTimeL() const;
+
+private:
+	CCalInstance();
+	void ConstructL(CCalEntry* aEntry, const TCalTime& aTime);
+	
+private:
+	CCalInstanceImpl* iImpl;
+	};
+
+#endif // __CALINSTANCE_H__