libraries/lineeditor/src/iocons_writer.cpp
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 // iocons_writer.cpp
       
     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 #include <e32base.h>
       
    14 #include "iocons_writer.h"
       
    15 #include <fshell/iocli.h>
       
    16 
       
    17 //______________________________________________________________________________
       
    18 //						TIoConsWriterAdaptor
       
    19 EXPORT_C TIoConsWriterAdaptor::TIoConsWriterAdaptor(RIoConsoleWriteHandle& aWriteHandle)
       
    20 	: iWriteHandle(aWriteHandle)
       
    21 	{
       
    22 	}
       
    23 
       
    24 TInt TIoConsWriterAdaptor::GetCursorPos(TPoint& aPos) const
       
    25 	{
       
    26 	return iWriteHandle.GetCursorPos(aPos);
       
    27 	}
       
    28 
       
    29 
       
    30 TInt TIoConsWriterAdaptor::SetCursorPosAbs(const TPoint& aPos)
       
    31 	{
       
    32 	return iWriteHandle.SetCursorPosAbs(aPos);
       
    33 	}
       
    34 
       
    35 TInt TIoConsWriterAdaptor::SetCursorPosRel(const TPoint& aPos)
       
    36 	{
       
    37 	return iWriteHandle.SetCursorPosRel(aPos);
       
    38 	}
       
    39 
       
    40 TInt TIoConsWriterAdaptor::SetCursorHeight(TInt aPercentage)
       
    41 	{
       
    42 	return iWriteHandle.SetCursorHeight(aPercentage);
       
    43 	}
       
    44 
       
    45 TInt TIoConsWriterAdaptor::SetTitle(const TDesC& aTitle)
       
    46 	{
       
    47 	return iWriteHandle.SetTitle(aTitle);
       
    48 	}
       
    49 
       
    50 TInt TIoConsWriterAdaptor::ClearScreen()
       
    51 	{
       
    52 	return iWriteHandle.ClearScreen();
       
    53 	}
       
    54 
       
    55 TInt TIoConsWriterAdaptor::ClearToEndOfLine()
       
    56 	{
       
    57 	return iWriteHandle.ClearToEndOfLine();
       
    58 	}
       
    59 
       
    60 TInt TIoConsWriterAdaptor::GetScreenSize(TSize& aSize) const
       
    61 	{
       
    62 	return iWriteHandle.GetScreenSize(aSize);
       
    63 	}
       
    64 
       
    65 
       
    66 TInt TIoConsWriterAdaptor::Write(const TDesC& aDes)
       
    67 	{
       
    68 	return iWriteHandle.Write(aDes);
       
    69 	}
       
    70 
       
    71