libraries/lineeditor/inc/abstract_console_writer.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // abstract_console_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 #ifndef __ABSTRACT_CONSOLE_WRITER_H__
       
    14 #define __ABSTRACT_CONSOLE_WRITER_H__
       
    15 
       
    16 class MAbstractConsoleWriter
       
    17 	{
       
    18 public:
       
    19 	virtual TInt GetCursorPos(TPoint& aPos) const = 0;
       
    20 	virtual TInt SetCursorPosAbs(const TPoint& aPos) = 0;
       
    21 	virtual TInt SetCursorPosRel(const TPoint& aPos) = 0;
       
    22 	virtual TInt SetCursorHeight(TInt aPercentage) = 0;
       
    23 	virtual TInt SetTitle(const TDesC& aTitle) = 0;
       
    24 	virtual TInt ClearScreen() = 0;
       
    25 	virtual TInt ClearToEndOfLine() = 0;
       
    26 	virtual TInt GetScreenSize(TSize& aSize) const = 0;
       
    27 	virtual TInt Write(const TDesC& aDes) = 0;
       
    28 	};
       
    29 
       
    30 
       
    31 
       
    32 #endif //__ABSTRACT_CONSOLE_WRITER_H__