common/tools/ats/smoketest/graphics/wserv/inc/T_DataWsSprite.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_WSSPRITE_H__)
       
    20 #define __T_GRAPHICS_WSERV_WSSPRITE_H__
       
    21 
       
    22 // User Includes
       
    23 #include "T_DataWsSpriteBase.h"
       
    24 /**
       
    25  * Test Active Notification class
       
    26  *
       
    27  */
       
    28 class CT_DataWsSprite : public CT_DataWsSpriteBase
       
    29 	{
       
    30 public:
       
    31 	/**
       
    32 	* Two phase constructor
       
    33 	*/
       
    34 	static CT_DataWsSprite*	NewL();
       
    35 
       
    36 	/**
       
    37 	* Public destructor
       
    38 	*/
       
    39 	~CT_DataWsSprite();
       
    40 
       
    41 	/**
       
    42 	* Return a pointer to the object that the data wraps
       
    43 	*
       
    44 	* \return pointer to the object that the data wraps
       
    45 	*/
       
    46 	virtual TAny*	GetObject()	{ return iWsSprite; }
       
    47 
       
    48 	/**
       
    49 	* Set the object that the data wraps
       
    50 	*
       
    51 	* @param	aObject object that the wrapper is testing
       
    52 	*
       
    53 	*/
       
    54 	virtual void	SetObjectL(TAny* aAny);
       
    55 
       
    56 	/**
       
    57 	* The object will no longer be owned by this
       
    58 	*
       
    59 	* @leave	KErrNotSupported if the the function is not supported
       
    60 	*/
       
    61 	virtual void	DisownObjectL();
       
    62 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    63 
       
    64 protected:
       
    65 	/**
       
    66 	* Protected constructor. First phase construction
       
    67 	*/
       
    68 	CT_DataWsSprite();
       
    69 
       
    70 	/**
       
    71 	* Second phase construction
       
    72 	*/
       
    73 	void  ConstructL();
       
    74 
       
    75 	virtual RWsSpriteBase*		GetWsSpriteBase() const{return iWsSprite;}
       
    76 private:
       
    77 	void	DestroyData();
       
    78     void	DoCmdNewL(const TDesC& aSection);
       
    79 	void    DoCmdConstructL(const TDesC& aSection);
       
    80 	void	DoCmdSetPosition(const TDesC& aSection);
       
    81 	
       
    82 private:
       
    83     RWsSprite* iWsSprite;
       
    84 	};
       
    85 
       
    86 #endif /* __T_GRAPHICS_WSERV_WSSPRITE_H__ */