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