haitest/bspsvs/suite/e32/inc/T_RConsoleData.h
changeset 0 cec860690d41
equal deleted inserted replaced
-1:000000000000 0:cec860690d41
       
     1 /*
       
     2 * Copyright (c) 2005-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 *
       
    16 */
       
    17 
       
    18 
       
    19 #if (!defined __T_R_CONSOLE_DATA_H__)
       
    20 #define __T_R_CONSOLE_DATA_H__
       
    21 
       
    22 //	EPOC includes
       
    23 #include <e32twin.h>
       
    24 
       
    25 
       
    26 //	User Includes
       
    27 #include "T_RSessionBaseData.h"
       
    28 #include "T_ActiveRConsoleRead.h"
       
    29 
       
    30 
       
    31 class CT_RConsoleData : public CT_RSessionBaseData
       
    32 
       
    33 /**
       
    34 * Test Active Notification class
       
    35 @test
       
    36 @publishedPartner
       
    37 @see CT_RSessionBaseData
       
    38 */
       
    39 	{
       
    40 public:
       
    41 	/**
       
    42 	* Public  destructor
       
    43 	*/
       
    44 	~CT_RConsoleData();
       
    45 	static	CT_RConsoleData*	NewL();
       
    46 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    47 	virtual TAny*	GetObject();
       
    48 
       
    49 protected:
       
    50 	CT_RConsoleData();
       
    51 	void	ConstructL();
       
    52 	TInt	DoCmdRead(const TDesC& aSection , const TInt aAsyncErrorIndex);
       
    53 	TInt	DoCmdConstructor();
       
    54 	void	DoCmdDestructor();
       
    55 	TInt	DoCmdControl(const TDesC& aSection);
       
    56 	TInt	DoCmdInit(const TDesC& aSection);
       
    57 	TInt	DoCmdCreate();
       
    58 	TInt	DoCmdDestroy();
       
    59 	TInt	DoCmdWrite(const TDesC& aSection);
       
    60 	TInt	DoCmdClearScreen();
       
    61 
       
    62 	//	CT_RSessionBaseData implementation
       
    63 	virtual RSessionBase*	GetSessionBase();
       
    64 
       
    65 	//	CT_RHandleBaseData implementation
       
    66 	virtual RHandleBase*	GetHandleBase();
       
    67 
       
    68 private:
       
    69 	void 	DestroyData();
       
    70 	void	RunL(CActive* aActive, TInt aIndex);
       
    71 	virtual void	DoCancel(CActive* aActive, TInt aIndex);
       
    72 
       
    73 protected:
       
    74 	CT_ActiveRConsoleRead*	iActiveRConsoleRead;
       
    75 	RConsole*				iConsole;
       
    76 	};
       
    77 
       
    78 #endif /*__T_R_CONSOLE_DATA_H__ */