landmarks/locationlandmarks/localaccess/inc/EPos_CPosLmLocalIterator.h
changeset 0 667063e416a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/landmarks/locationlandmarks/localaccess/inc/EPos_CPosLmLocalIterator.h	Tue Feb 02 01:06:48 2010 +0200
@@ -0,0 +1,85 @@
+/*
+* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Local iterator base class.
+*
+*
+*/
+
+
+
+#ifndef CPOSLMLOCALITERATOR_H
+#define CPOSLMLOCALITERATOR_H
+
+#include <EPos_CPosLmItemIterator.h>
+
+/**
+* Local iterator base class.
+*/
+NONSHARABLE_CLASS(CPosLmLocalIterator) : public CPosLmItemIterator
+    {
+
+    public:  // Constructors and destructor
+
+        /**
+        * Destructor.
+        */
+        virtual ~CPosLmLocalIterator();
+
+    public: // From CPosLmItemIterator.
+
+        /*
+        * @return The next database item ID, or KPosLmNullItemId if there
+        *   are no more database items in the iterated set. */
+        TPosLmItemId NextL();
+
+        void Reset();
+
+        /**
+        * @return Number of items in the iterated database item set.
+        */
+        TUint NumOfItemsL();
+
+        /**
+        * @param[out] aIdArray Will contain the requested items.
+        * @param[in] aStartIndex The index of the first item to fetch.
+        * @param[in] aNumOfItems The number of items to fetch.
+        */
+        void GetItemIdsL(
+            RArray<TPosLmItemId>&  aIdArray,
+            TInt aStartIndex,
+            TInt aNumOfItems );
+
+    protected:
+
+        CPosLmLocalIterator();
+
+    private:
+        // Prohibit copy constructor if not deriving from CBase.
+        CPosLmLocalIterator(const CPosLmLocalIterator&);
+        // Prohibit assigment operator if not deriving from CBase.
+        CPosLmLocalIterator& operator=(const CPosLmLocalIterator&);
+
+    protected:  // Data
+
+        // Current item.
+        TInt iCurrent;
+
+        // All landmark ids.
+        RArray<TPosLmItemId> iIdArray;
+
+    };
+
+#endif      // CPOSLMLOCALITERATOR_H
+
+// End of File