libraries/lineeditor/inc/iocons_writer.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // iocons_writer.h
       
     2 // 
       
     3 // Copyright (c) 2008 - 2010 Accenture. All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 // 
       
     9 // Initial Contributors:
       
    10 // Accenture - Initial contribution
       
    11 //
       
    12 
       
    13 
       
    14 #ifndef __IOCONS_WRITER_H__
       
    15 #define __IOCONS_WRITER_H__
       
    16 
       
    17 #include <fshell/abstract_console_writer.h>
       
    18 class RIoConsoleWriteHandle;
       
    19 
       
    20 class TIoConsWriterAdaptor : public MAbstractConsoleWriter
       
    21 	{
       
    22 public:
       
    23 	IMPORT_C TIoConsWriterAdaptor(RIoConsoleWriteHandle& aWriteHandle);
       
    24 
       
    25 	virtual TInt GetCursorPos(TPoint& aPos) const;
       
    26 	virtual TInt SetCursorPosAbs(const TPoint& aPos);
       
    27 	virtual TInt SetCursorPosRel(const TPoint& aPos);
       
    28 	virtual TInt SetCursorHeight(TInt aPercentage);
       
    29 	virtual TInt SetTitle(const TDesC& aTitle);
       
    30 	virtual TInt ClearScreen();
       
    31 	virtual TInt ClearToEndOfLine();
       
    32 	virtual TInt GetScreenSize(TSize& aSize) const;
       
    33 	virtual TInt Write(const TDesC& aDes);
       
    34 private:
       
    35 	RIoConsoleWriteHandle& iWriteHandle;
       
    36 	};
       
    37 
       
    38 #endif //__IOCONS_WRITER_H__