classicui_plat/ganes_api/inc/ganes/HgSingleTextList.h
branchRCL_3
changeset 56 d48ab3b357f1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_plat/ganes_api/inc/ganes/HgSingleTextList.h	Wed Sep 01 12:16:19 2010 +0100
@@ -0,0 +1,65 @@
+/*
+* Copyright (c) 2009 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:
+*
+*/
+
+#ifndef HGSINGLETEXTLIST_H_
+#define HGSINGLETEXTLIST_H_
+
+#include <ganes/HgList.h>
+
+// Forward declarations
+class CHgItem;
+
+class CHgSingleTextList : public CHgList
+    {
+public:
+    /**
+     * Creates new CHgSingleTextList.
+     * 
+     * @param aRect Rect that the control draws onto.
+     * @param aItemCount Total count of items in the grid
+     * @param aDefaultIcon Default icon to be used.
+     * @param aSession Window server session for DSA. Default is NULL and DSA is disabled.
+     * 
+     * @return CHgSingleTextList-object
+     */
+    IMPORT_C static CHgSingleTextList* NewL ( const TRect& aRect, 
+          TInt aItemCount, 
+          CGulIcon* aDefaultIcon = NULL,
+          RWsSession* aSession = NULL); 
+
+    /**
+     * Destructor.
+     */
+    IMPORT_C virtual ~CHgSingleTextList( );
+
+protected: // CHgScroller
+    void HandleSizeChanged();
+    void HandleScrollbarVisibilityChange(TBool aVisible);
+    
+protected: // CHgList
+
+    void DrawItem(TInt aIndex, const TRect& aRect) const; 
+    
+protected:
+    CHgSingleTextList( TInt aItemCount, 
+            CGulIcon* aDefaultIcon );
+
+private: // Data
+    
+    };
+
+#endif /*HGSINGLETEXTLIST_H_*/