graphics/wserv/inc/T_DataFrame.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_FRAME_H__)
       
    20 #define __T_GRAPHICS_WSERV_FRAME_H__
       
    21 
       
    22 #include <w32stdgraphic.h>
       
    23 
       
    24 /**
       
    25  * Test Active Notification class
       
    26  *
       
    27  */
       
    28 class CT_DataFrame : public CDataWrapperBase
       
    29 	{
       
    30 public:
       
    31 	/**
       
    32 	* Two phase constructor
       
    33 	*/
       
    34 	static CT_DataFrame*	NewL();
       
    35 
       
    36 	/**
       
    37 	* Public destructor
       
    38 	*/
       
    39 	~CT_DataFrame();
       
    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 iFrame; }
       
    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_DataFrame();
       
    69 
       
    70 	/**
       
    71 	* Second phase construction
       
    72 	*/
       
    73 	void  ConstructL();
       
    74 
       
    75 private:
       
    76 	void	DoCmdDestroy();
       
    77     void	DoCmdNewL();
       
    78 	void    DoCmdFrameInfo(const TDesC& aSection);
       
    79 	void	DoCmdSetFrameInfo(const TDesC& aSection);
       
    80     void    DoCmdBitmapL(const TDesC& aSection);
       
    81     void    DoCmdSetBitmapL(const TDesC& aSection);
       
    82 	void    DoCmdMaskL(const TDesC& aSection);
       
    83     void    DoCmdSetMaskL(const TDesC& aSection);
       
    84 private:
       
    85     CWsGraphicBitmapAnimation::CFrame* iFrame;
       
    86 	};
       
    87 
       
    88 #endif /* __T_GRAPHICS_WSERV_FRAME_H__ */