sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef T_TESTMWSINIFILE_H_ sl@0: #define T_TESTMWSINIFILE_H_ sl@0: sl@0: #include "graphics/wsplugin.h" sl@0: #include "t_testserviceplugin.h" sl@0: #include "PARSEINIDATA.H" sl@0: sl@0: /** sl@0: This is an implementation of MWsFader, in the form of a CWsPlugin. sl@0: The window server will use this to create test fader if the ini file specifies it. sl@0: */ sl@0: class CTestMWsIniFile : public CWsPlugin sl@0: { sl@0: public: sl@0: enum { EImplUid = 0x10285C5F }; sl@0: sl@0: public: sl@0: static CTestMWsIniFile* CreateL(); sl@0: ~CTestMWsIniFile(); sl@0: void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData); sl@0: const TDesC& PluginName() const; sl@0: sl@0: private: sl@0: void RunMWsIniFileTestsL(); sl@0: void FindScreenVariableL(TInt aScreen, const TDesC& aIntSection, const TDesC& aStringSection); sl@0: void FindCustomSectionVariableL(const TDesC& aSection, const TDesC& aIntSection, const TDesC& aStringSection); sl@0: void FindDefaultVariableL(const TDesC& aIntSection, const TDesC& aStringSection); sl@0: void FindDefaultMissingVariableL(const TDesC& aMissingVariable); sl@0: void FindScreenMissingVariableL(TInt aScreen, const TDesC& aMissingVariable); sl@0: void FindCustomSectionMissingVariableL(const TDesC& aSection, const TDesC& aMissingVariable); sl@0: void FindDefaultVarOppositeMethodL(const TDesC& aAttribute, const TDesC& aType); sl@0: void FindScreenVarOppositeMethodL(TInt aScreen, const TDesC& aAttribute, const TDesC& aType); sl@0: void FindCustomSectionVarOppositeMethodL(const TDesC& aSection, const TDesC& aAttribute, const TDesC& aType); sl@0: void FindNEScreenVariableL(TInt aScreen, const TDesC& aIntSection, const TDesC& aStringSection); sl@0: void FindNESectionVariableL(const TDesC& aSection, const TDesC& aIntSection, const TDesC& aStringSection); sl@0: protected: sl@0: CTestMWsIniFile(); sl@0: sl@0: protected: sl@0: MWsIniFile* iWsIniFile; sl@0: CIniData* iIniData; sl@0: TBuf<255> iPrint; sl@0: }; sl@0: sl@0: #endif /*T_TESTMWSINIFILE_H_*/