williamr@2: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __CALITER_H__ williamr@2: #define __CALITER_H__ williamr@2: williamr@2: williamr@2: #include williamr@2: williamr@2: class CCalSession; williamr@2: class CCalIteratorImpl; williamr@2: williamr@2: /** williamr@2: An iterator for iterating though all the entries in the calendar store. williamr@2: williamr@2: This may be used by a synchronisation application to iterate all entries in the file to find entries that williamr@2: have been added\\deleted between two synchronisations. williamr@2: williamr@2: The application must not create the entry view or instance view while iterating through the entries. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: NONSHARABLE_CLASS(CCalIter) : public CBase williamr@2: williamr@2: { williamr@2: public: williamr@2: IMPORT_C static CCalIter* NewL(CCalSession& aSession); williamr@2: IMPORT_C ~CCalIter(); williamr@2: williamr@2: IMPORT_C const TDesC8& FirstL(); williamr@2: IMPORT_C const TDesC8& NextL(); williamr@2: williamr@2: private: williamr@2: CCalIter(); williamr@2: void ConstructL(CCalSession& aSession); williamr@2: williamr@2: private: williamr@2: CCalIteratorImpl* iCalIteratorImpl; williamr@2: }; williamr@2: williamr@2: #endif // __CALITER_H__