pimappservices/calendar/client/inc/caliteratorimpl.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CALITERATORIMPL_H__
       
    17 #define __CALITERATORIMPL_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CCalSessionImpl;
       
    22 class RAgendaServ;
       
    23 
       
    24 
       
    25 NONSHARABLE_CLASS(CCalIteratorImpl) : public CBase
       
    26 /** 
       
    27 An iterator for iterating though all the entries in the calendar store.
       
    28 
       
    29 This may be used by a synchronisation application to find entries that
       
    30 have been added\deleted between two synchronisations. 
       
    31 
       
    32 @internalComponent
       
    33 */
       
    34     {
       
    35 public:
       
    36 	CCalIteratorImpl(CCalSessionImpl& aSessionImpl);
       
    37 	~CCalIteratorImpl();
       
    38 	
       
    39 	const TDesC8& FirstL();
       
    40 	const TDesC8& NextL();
       
    41 	
       
    42 private:
       
    43 	void FindUidL();
       
    44 
       
    45 private:
       
    46 	CCalSessionImpl&	iCalSessionImpl;//Not owned
       
    47 	RAgendaServ&		iServer;
       
    48 	HBufC8*				iGuid;
       
    49 	TBool				iFileEntry;
       
    50 	};
       
    51 	
       
    52 #endif // __CALITER_H__