common/tools/ats/smoketest/graphics/wserv/inc/T_DataWsGraphicBitmap.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_WSGRAPHICBITMAP_H__)
       
    20 #define __T_GRAPHICS_WSERV_WSGRAPHICBITMAP_H__
       
    21 
       
    22 // User Includes
       
    23 #include "T_DataWsGraphic.h"
       
    24 
       
    25 
       
    26 // EPOC includes
       
    27 #include <w32stdgraphic.h>
       
    28 
       
    29 
       
    30 /**
       
    31  * Test Active Notification class
       
    32  *
       
    33  */
       
    34 class CT_DataWsGraphicBitmap : public CT_DataWsGraphic
       
    35 	{
       
    36 
       
    37 public:
       
    38 	/**
       
    39 	* Two phase constructor
       
    40 	*/
       
    41 	static CT_DataWsGraphicBitmap*	NewL();
       
    42 
       
    43 	/**
       
    44 	* Public destructor
       
    45 	*/
       
    46 	~CT_DataWsGraphicBitmap();
       
    47 
       
    48 	/**
       
    49 	* Return a pointer to the object that the data wraps
       
    50 	*
       
    51 	* \return pointer to the object that the data wraps
       
    52 	*/
       
    53 	virtual TAny*	GetObject()	{ return iWsGraphicBitmap; }
       
    54 
       
    55 	/**
       
    56 	* Set the object that the data wraps
       
    57 	*
       
    58 	* @param	aObject object that the wrapper is testing
       
    59 	*
       
    60 	*/
       
    61 	virtual void	SetObjectL(TAny* aAny);
       
    62 
       
    63 	/**
       
    64 	* The object will no longer be owned by this
       
    65 	*
       
    66 	* @leave	KErrNotSupported if the the function is not supported
       
    67 	*/
       
    68 	virtual void	DisownObjectL();
       
    69 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    70 
       
    71 protected:
       
    72 	/**
       
    73 	* Protected constructor. First phase construction
       
    74 	*/
       
    75 	CT_DataWsGraphicBitmap();
       
    76 
       
    77 	/**
       
    78 	* Second phase construction
       
    79 	*/
       
    80 	void  ConstructL();
       
    81 
       
    82 	//	CT_DataWsGraphic Implementation
       
    83 	virtual CWsGraphic*	GetWsGraphic() const;
       
    84 	virtual TInt		Share(TSecureId aClientId);
       
    85 	virtual TInt		ShareGlobally();
       
    86 	virtual TInt		UnShare(TSecureId aClientId);
       
    87 	virtual TInt		UnShareGlobally();
       
    88 
       
    89 private:
       
    90 	/**
       
    91 	* Helper methods
       
    92 	*/
       
    93 	void	DestroyData();
       
    94 	void	DoCmdNewL(const TDesC& aEntry);
       
    95 	void	DoCmdDestructor();
       
    96 
       
    97 private:
       
    98 	CWsGraphicBitmap*	iWsGraphicBitmap;
       
    99 
       
   100 	};
       
   101 #endif /* __T_GRAPHICS_WSERV_WSGRAPHICBITMAP_H__ */