1 // Copyright (c) 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 __CALCALENDARINFOITERATOR_H__
17 #define __CALCALENDARINFOITERATOR_H__
22 class CCalCalendarInfo;
23 class CCalCalendarIteratorImpl;
26 An iterator for iterating though all calendar file metadata.
28 The iterator returns CCalCalendarInfo objects for calendar files that
29 have metadata set. The iterator is unordered.
31 The iterator implementation will cache filenames on the client side
36 NONSHARABLE_CLASS(CCalCalendarIterator) : public CBase
39 IMPORT_C static CCalCalendarIterator* NewL(CCalSession& aSession);
40 IMPORT_C ~CCalCalendarIterator();
42 IMPORT_C CCalCalendarInfo* FirstL();
43 IMPORT_C CCalCalendarInfo* NextL();
44 IMPORT_C CCalCalendarInfo* CurrentL();
46 IMPORT_C TInt Count() const;
49 CCalCalendarIterator();
50 void ConstructL(CCalSession& aSession);
53 CCalCalendarIteratorImpl* iImpl;