pimappservices/calendar/client/inc/calcalendariteratorimpl.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CALCALENDARINFOITERATORIMPL_H__
       
    17 #define __CALCALENDARINFOITERATORIMPL_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <badesca.h>
       
    21 
       
    22 #include "calcommon.h"
       
    23 
       
    24 class CCalCalendarInfo;
       
    25 class CCalSession;
       
    26 
       
    27 NONSHARABLE_CLASS(CCalCalendarIteratorImpl) : public CBase
       
    28     {
       
    29 public:
       
    30     static CCalCalendarIteratorImpl* NewL(CCalSession& aSession);
       
    31     ~CCalCalendarIteratorImpl();
       
    32     
       
    33     CCalCalendarInfo* FirstL(); 
       
    34     CCalCalendarInfo* NextL();
       
    35     CCalCalendarInfo* CurrentL();
       
    36     
       
    37     TInt Count() const;
       
    38 
       
    39 private:
       
    40     CCalCalendarIteratorImpl(CCalSession& aSession);
       
    41     void ConstructL();
       
    42     
       
    43 private:
       
    44     CCalSession& iSession;
       
    45     
       
    46     CDesCArray* iCalendarFiles;
       
    47     TInt iCurrentItem;
       
    48     };
       
    49 
       
    50 #endif
       
    51