epoc32/include/app/calinstance.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/calinstance.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     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 __CALINSTANCE_H__
    17 #define __CALINSTANCE_H__
    18 
    19 #include <caltime.h>
    20 
    21 class CCalEntry;
    22 class CCalInstanceImpl;
    23 
    24 /** Class representing an instance of a calendar entry.
    25 
    26 A calendar entry (CCalEntry) can have any number of instances. 
    27 A non-repeating entry will only have one instance.
    28 Any further instances will appear if the entry has recurrence data.
    29 
    30 The time of an instance is the start time of that instance of the entry.
    31 
    32 @publishedAll
    33 @released
    34 */
    35 NONSHARABLE_CLASS(CCalInstance) : public CBase
    36 	{
    37 public:
    38 	static CCalInstance* NewL(CCalEntry* aEntry, const TCalTime& iTime);
    39 	IMPORT_C ~CCalInstance();
    40 	
    41 	IMPORT_C CCalEntry& Entry() const;
    42 	IMPORT_C TCalTime Time() const;
    43 	IMPORT_C TCalTime StartTimeL() const;
    44 	IMPORT_C TCalTime EndTimeL() const;
    45 
    46 private:
    47 	CCalInstance();
    48 	void ConstructL(CCalEntry* aEntry, const TCalTime& aTime);
    49 	
    50 private:
    51 	CCalInstanceImpl* iImpl;
    52 	};
    53 
    54 #endif // __CALINSTANCE_H__