os/graphics/windowing/windowserver/test/t_genericplugin/inc/t_testmwsinifile.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef T_TESTMWSINIFILE_H_
    17 #define T_TESTMWSINIFILE_H_
    18 
    19 #include "graphics/wsplugin.h"
    20 #include "t_testserviceplugin.h"
    21 #include "PARSEINIDATA.H"
    22 
    23 /**
    24 This is an implementation of MWsFader, in the form of a CWsPlugin.
    25 The window server will use this to create test fader if the ini file specifies it.
    26 */
    27 class CTestMWsIniFile : public CWsPlugin
    28   {
    29 public:
    30 	enum { EImplUid = 0x10285C5F };
    31 
    32 public:
    33 	static CTestMWsIniFile* CreateL();
    34 	~CTestMWsIniFile();
    35 	void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData);
    36 	const TDesC& PluginName() const;
    37 		
    38 private:
    39 	void RunMWsIniFileTestsL();
    40 	void FindScreenVariableL(TInt aScreen, const TDesC& aIntSection, const TDesC& aStringSection);
    41 	void FindCustomSectionVariableL(const TDesC& aSection, const TDesC& aIntSection, const TDesC& aStringSection);
    42 	void FindDefaultVariableL(const TDesC& aIntSection, const TDesC& aStringSection);
    43 	void FindDefaultMissingVariableL(const TDesC& aMissingVariable);
    44 	void FindScreenMissingVariableL(TInt aScreen, const TDesC& aMissingVariable);
    45 	void FindCustomSectionMissingVariableL(const TDesC& aSection, const TDesC& aMissingVariable);
    46 	void FindDefaultVarOppositeMethodL(const TDesC& aAttribute, const TDesC& aType);
    47 	void FindScreenVarOppositeMethodL(TInt aScreen, const TDesC& aAttribute, const TDesC& aType);
    48 	void FindCustomSectionVarOppositeMethodL(const TDesC& aSection, const TDesC& aAttribute, const TDesC& aType);
    49 	void FindNEScreenVariableL(TInt aScreen, const TDesC& aIntSection, const TDesC& aStringSection);
    50 	void FindNESectionVariableL(const TDesC& aSection, const TDesC& aIntSection, const TDesC& aStringSection);
    51 protected:
    52 	CTestMWsIniFile();
    53 
    54 protected:
    55 	MWsIniFile* iWsIniFile;
    56 	CIniData* iIniData;
    57 	TBuf<255> iPrint;
    58   };
    59 
    60 #endif /*T_TESTMWSINIFILE_H_*/