os/boardsupport/haitest/bspsvs/suite/e32/inc/T_RConsoleData.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/e32/inc/T_RConsoleData.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,78 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#if (!defined __T_R_CONSOLE_DATA_H__)
    1.23 +#define __T_R_CONSOLE_DATA_H__
    1.24 +
    1.25 +//	EPOC includes
    1.26 +#include <e32twin.h>
    1.27 +
    1.28 +
    1.29 +//	User Includes
    1.30 +#include "T_RSessionBaseData.h"
    1.31 +#include "T_ActiveRConsoleRead.h"
    1.32 +
    1.33 +
    1.34 +class CT_RConsoleData : public CT_RSessionBaseData
    1.35 +
    1.36 +/**
    1.37 +* Test Active Notification class
    1.38 +@test
    1.39 +@publishedPartner
    1.40 +@see CT_RSessionBaseData
    1.41 +*/
    1.42 +	{
    1.43 +public:
    1.44 +	/**
    1.45 +	* Public  destructor
    1.46 +	*/
    1.47 +	~CT_RConsoleData();
    1.48 +	static	CT_RConsoleData*	NewL();
    1.49 +	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    1.50 +	virtual TAny*	GetObject();
    1.51 +
    1.52 +protected:
    1.53 +	CT_RConsoleData();
    1.54 +	void	ConstructL();
    1.55 +	TInt	DoCmdRead(const TDesC& aSection , const TInt aAsyncErrorIndex);
    1.56 +	TInt	DoCmdConstructor();
    1.57 +	void	DoCmdDestructor();
    1.58 +	TInt	DoCmdControl(const TDesC& aSection);
    1.59 +	TInt	DoCmdInit(const TDesC& aSection);
    1.60 +	TInt	DoCmdCreate();
    1.61 +	TInt	DoCmdDestroy();
    1.62 +	TInt	DoCmdWrite(const TDesC& aSection);
    1.63 +	TInt	DoCmdClearScreen();
    1.64 +
    1.65 +	//	CT_RSessionBaseData implementation
    1.66 +	virtual RSessionBase*	GetSessionBase();
    1.67 +
    1.68 +	//	CT_RHandleBaseData implementation
    1.69 +	virtual RHandleBase*	GetHandleBase();
    1.70 +
    1.71 +private:
    1.72 +	void 	DestroyData();
    1.73 +	void	RunL(CActive* aActive, TInt aIndex);
    1.74 +	virtual void	DoCancel(CActive* aActive, TInt aIndex);
    1.75 +
    1.76 +protected:
    1.77 +	CT_ActiveRConsoleRead*	iActiveRConsoleRead;
    1.78 +	RConsole*				iConsole;
    1.79 +	};
    1.80 +
    1.81 +#endif /*__T_R_CONSOLE_DATA_H__ */