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