vtuis/videotelui/inc/commands/mvtuicommanditerator.h
branchRCL_3
changeset 25 779871d1e4f4
parent 0 ed9695c8bcbe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vtuis/videotelui/inc/commands/mvtuicommanditerator.h	Wed Sep 01 12:29:12 2010 +0100
@@ -0,0 +1,53 @@
+/*
+* Copyright (c) 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:  Command iterator API definition.
+*
+*/
+
+
+#ifndef M_VTUICOMMANDITERATOR_H
+#define M_VTUICOMMANDITERATOR_H
+
+#include <e32base.h>
+
+/**
+ *  MVtUiCommandIterator
+ *
+ *  API for iterating through set of commands.
+ *
+ *  @since S60 v3.2
+ */
+class MVtUiCommandIterator
+    {
+
+public:
+
+    /**
+     * Returns ETrue if the iteration has more elements
+     *
+     * @return ETrue if iteration contains more commands (i.e. call to Next()
+     * will return a valid command), EFalse otherwise.
+     */
+    virtual TBool HasNext() const = 0;
+
+    /**
+     * Returns the next command in the iteration.
+     *
+     * @return Next command in the iteration.
+     */
+    virtual TInt Next() = 0;
+
+    };
+
+#endif // M_VTUICOMMANDITERATOR_H