graphicsapitest/graphicssvs/wserv/inc/T_DataBackedUpWindow.h
changeset 111 29ddb8a72f0e
parent 110 7f25ef56562d
child 113 f3c3c510a760
child 152 9f1c3fea0f87
equal deleted inserted replaced
110:7f25ef56562d 111:29ddb8a72f0e
     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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-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_BACKEDUPWINDOW_H__)
       
    20 #define __T_GRAPHICS_WSERV_BACKEDUPWINDOW_H__
       
    21 
       
    22 // User Includes
       
    23 #include "T_DataDrawableWindow.h"
       
    24 
       
    25 /**
       
    26  * Test Active Notification class
       
    27  *
       
    28  */
       
    29 class CT_DataBackedUpWindow : public CT_DataDrawableWindow
       
    30 	{
       
    31 public:
       
    32 	/**
       
    33 	* Two phase constructor
       
    34 	*/
       
    35 	static CT_DataBackedUpWindow*	NewL();
       
    36 
       
    37 	/**
       
    38 	* Public destructor
       
    39 	*/
       
    40 	~CT_DataBackedUpWindow();
       
    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 iBackedUpWindow; }
       
    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_DataBackedUpWindow();
       
    70 
       
    71 	/**
       
    72 	* Second phase construction
       
    73 	*/
       
    74 	void	ConstructL();
       
    75 
       
    76 	virtual RDrawableWindow*	GetDrawableWindow() const;
       
    77 
       
    78 private:
       
    79 	/**
       
    80 	* Helper methods
       
    81 	*/
       
    82 	void	DestroyData();
       
    83 	void	DoCmdnewL(const TDesC& aSection);
       
    84 	void	DoCmdConstructL(const TDesC& aSection);
       
    85 	void	DoCmdBitmapHandle();
       
    86 	void	DoCmdUpdateScreenL(const TDesC& aSection);
       
    87 	void	DoCmdUpdateBackupBitmap();
       
    88 	void	DoCmdMaintainBackup();
       
    89 
       
    90 private:
       
    91 	RBackedUpWindow*	iBackedUpWindow;
       
    92 	};
       
    93 
       
    94 #endif /* __T_GRAPHICS_WSERV_BACKEDUPWINDOW_H__ */