graphicsapitest/graphicssvs/gdi/inc/T_DataPalette.h
changeset 103 2717213c588a
parent 98 bf7481649c98
child 116 171fae344dd4
child 121 d72fc2aace31
child 187 9f66f99ee56f
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
     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 @test
       
    20 @internalComponent
       
    21 
       
    22 This contains CT_DataPalette
       
    23 */
       
    24 
       
    25 #if (!defined __T_DATA_PALETTE_H__)
       
    26 #define __T_DATA_PALETTE_H__
       
    27 
       
    28 //	User Includes
       
    29 #include "DataWrapperBase.h"
       
    30 
       
    31 //	EPOC includes
       
    32 #include <e32std.h>
       
    33 #include <gdi.h>
       
    34 
       
    35 class CT_DataPalette : public CDataWrapperBase
       
    36 	{
       
    37 public:
       
    38 
       
    39 	static CT_DataPalette*	NewL();
       
    40 
       
    41 	~CT_DataPalette();
       
    42 
       
    43 	virtual TAny* GetObject();
       
    44 
       
    45 	void DestroyData();
       
    46 
       
    47 	virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    48 
       
    49 protected:
       
    50 	CT_DataPalette();
       
    51 	void ConstructL();
       
    52 
       
    53 private:
       
    54 	void	DoCmdNew(const TDesC& aSection);
       
    55 	void	DoCmdNewDefault(const TDesC& aSection);
       
    56 
       
    57 private:
       
    58 	/** CPalette class instance to work with*/
       
    59     CPalette* iPalette;
       
    60 	};
       
    61 
       
    62 #endif /* __T_DATA_PALETTE_H__ */