common/tools/ats/smoketest/graphics/wserv/inc/T_DataWsEvent.h
changeset 833 6ffc235847d0
child 872 17498133d9ad
equal deleted inserted replaced
832:9b2bf01d4d36 833:6ffc235847d0
       
     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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-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_GRAPHICS_WSERV_EVENT_H__)
       
    20 #define __T_GRAPHICS_WSERV_EVENT_H__
       
    21 
       
    22 //	User Includes
       
    23 #include "DataWrapperBase.h"
       
    24 
       
    25 //	EPOC Includes
       
    26 #include <w32std.h>
       
    27 
       
    28 class CT_DataWsEvent : public CDataWrapperBase
       
    29 	{
       
    30 public:
       
    31 	static CT_DataWsEvent*	NewL();
       
    32 
       
    33 	~CT_DataWsEvent();
       
    34 
       
    35 	virtual TAny*	GetObject();
       
    36 	virtual void	SetObjectL(TAny* aAny);
       
    37 	virtual void	DisownObjectL();
       
    38 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    39 
       
    40 protected:
       
    41 	CT_DataWsEvent();
       
    42 	void	ConstructL();
       
    43 
       
    44 private:
       
    45 	/**
       
    46 	* Helper methods
       
    47 	*/
       
    48 	void	DestroyData();
       
    49 	void	DoCmdnew();
       
    50 	void	DoCmdErrorMessage(const TDesC& aSection);
       
    51 	void	DoCmdEventData(const TDesC& aSection);
       
    52 	void	DoCmdHandle(const TDesC& aSection);
       
    53 	void	DoCmdInt(const TDesC& aSection);
       
    54 	void	DoCmdKey(const TDesC& aSection);
       
    55 	void	DoCmdModifiersChanged(const TDesC& aSection);
       
    56 	void	DoCmdPointer(const TDesC& aSection);
       
    57 	void	DoCmdSetHandle(const TDesC& aSection);
       
    58 	void	DoCmdSetTimeNow();
       
    59 	void	DoCmdSetType(const TDesC& aSection);
       
    60 	void	DoCmdTime();
       
    61 	void	DoCmdType(const TDesC& aSection);
       
    62 	void	DoCmdVisibilityChanged(const TDesC& aSection);
       
    63 
       
    64 private:
       
    65 	TWsEvent*			iWsEvent;
       
    66     };
       
    67 
       
    68 #endif /* __T_GRAPHICS_WSERV_EVENT_H__ */