genericopenlibs/cstdlib/TSTLIB/testconsole.h
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 /*
       
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Console redirection server 
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #include <redirstr.h>
       
    23 #include <e32keys.h>		//for TKeyCode
       
    24 
       
    25 
       
    26 class CActiveConsole;
       
    27 NONSHARABLE_CLASS(CTestConsole) : public CStreamBase2
       
    28 	{
       
    29 public:
       
    30 	CTestConsole();
       
    31 	~CTestConsole();
       
    32 	virtual void Write(TDes8& aDes);
       
    33 	virtual void Read(const RMessage2& aMessage);
       
    34 	void DoneReading(TKeyCode aKeyCode);
       
    35 private:
       
    36 	CConsoleBase* iConsole;
       
    37 	CActiveConsole* iActiveChap;
       
    38 	RMessage2 iMessage;
       
    39 
       
    40 	};
       
    41 
       
    42 
       
    43 NONSHARABLE_CLASS(CTestConsoleFactory) : public CStreamFactoryBase2
       
    44 	{
       
    45 public:
       
    46 	static CTestConsoleFactory* NewL();
       
    47 	virtual CStreamBase2* GetStream();
       
    48 	virtual void Configure();
       
    49 	};
       
    50 
       
    51