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