homescreenpluginsrv/inc/mhspsdomiterator.h
changeset 0 79c6a41cd166
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenpluginsrv/inc/mhspsdomiterator.h	Thu Dec 17 08:54:17 2009 +0200
@@ -0,0 +1,76 @@
+/*
+* Copyright (c) 2008 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:  Interface class for dom iterators
+*
+*/
+
+
+
+#ifndef Mhsps_DOM_ITERATOR_H
+#define Mhsps_DOM_ITERATOR_H
+
+
+// FORWARD DECLARATIONS
+class ChspsDomNode;
+
+
+// CLASS DECLARATION
+
+/**
+*  Mixin class to let us define different iterators for 
+*  different traversal policies.
+*
+*  @lib hspsdomdocument.lib
+*  @since S60 5.0
+*  @ingroup group_hspsdom
+*/
+class MhspsDomIterator
+    {
+   public:  // Destructor
+        
+        /**
+        * Destructor.
+        * 
+        * @since S60 5.0
+        */
+        virtual ~MhspsDomIterator(){}
+
+    public: // Adding and removing
+    	
+    	/**
+        * Get first i.e root node.
+        * 
+        * @since S60 5.0
+        */
+        virtual ChspsDomNode* First()=0;
+    	
+        /**
+        * Get next node.
+        * 
+        * @since S60 5.0
+        */
+        virtual ChspsDomNode* NextL()=0;        
+        
+        /**
+         * Get next sibling.
+         * 
+         * @since S60 5.0
+        */
+        virtual ChspsDomNode* NextSibling( ChspsDomNode& aNode )=0;
+        
+    };
+
+#endif      // Mhsps_DOM_ITERATOR_H  
+            
+// End of File