kerneltest/f32test/shostmassstorage/msman/app/cdisplay.h
branchRCL_3
changeset 19 4a8fed1c0ef6
parent 0 a41df078684a
--- a/kerneltest/f32test/shostmassstorage/msman/app/cdisplay.h	Tue Feb 02 01:24:03 2010 +0200
+++ b/kerneltest/f32test/shostmassstorage/msman/app/cdisplay.h	Sat Feb 20 00:10:51 2010 +0200
@@ -33,11 +33,11 @@
 class CScrollWindow: public CBase
 {
 public:
-    static CScrollWindow* NewL(CConsoleBase& aConsole);
+    static CScrollWindow* NewL(CConsoleBase& aConsole, TInt aStartRow, TInt aEndRow);
     ~CScrollWindow();
 
 private:
-    CScrollWindow(CConsoleBase& aConsole);
+    CScrollWindow(CConsoleBase& aConsole, TInt aStartRow, TInt aEndRow);
     void ConstructL();
 
 public:
@@ -56,7 +56,9 @@
 
     RArray<TLine> iLineArray;
     TInt iPage;
-    static const TInt KPageLength = 8;
+    const TInt iStartRow;
+    const TInt iEndRow;
+    const TInt iPageLength;
 };
 
 
@@ -100,12 +102,20 @@
 
     void CursorHome() const;
 
-private:
+    void SetFooterPos(TPoint iPos) const;
+
+private:    
+    static const TInt iFooterX = 0;
+    static const TInt iFooterY = 4;
+
     RFs& iFs;
     CConsoleBase& iConsole;
 
+    TSize iScreenSize;
     TPoint iCursorPos;
 
+    TPoint iPointFooter;
+
     CScrollWindow* iScrollWindow;
     };
 
@@ -115,7 +125,11 @@
     iConsole.SetPos(iCursorPos.iX, iCursorPos.iY);
     }
 
-
+inline void CDisplay::SetFooterPos(TPoint iPos) const
+    {
+    TPoint pos = iPos + iPointFooter;
+    iConsole.SetPos(pos.iX, pos.iY);
+    }
 
 class CMessageKeyProcessor : public CActive
 	{