os/graphics/windowing/windowserver/test/t_genericplugin/inc/t_testmwsinifile.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/windowing/windowserver/test/t_genericplugin/inc/t_testmwsinifile.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,60 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef T_TESTMWSINIFILE_H_
    1.20 +#define T_TESTMWSINIFILE_H_
    1.21 +
    1.22 +#include "graphics/wsplugin.h"
    1.23 +#include "t_testserviceplugin.h"
    1.24 +#include "PARSEINIDATA.H"
    1.25 +
    1.26 +/**
    1.27 +This is an implementation of MWsFader, in the form of a CWsPlugin.
    1.28 +The window server will use this to create test fader if the ini file specifies it.
    1.29 +*/
    1.30 +class CTestMWsIniFile : public CWsPlugin
    1.31 +  {
    1.32 +public:
    1.33 +	enum { EImplUid = 0x10285C5F };
    1.34 +
    1.35 +public:
    1.36 +	static CTestMWsIniFile* CreateL();
    1.37 +	~CTestMWsIniFile();
    1.38 +	void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData);
    1.39 +	const TDesC& PluginName() const;
    1.40 +		
    1.41 +private:
    1.42 +	void RunMWsIniFileTestsL();
    1.43 +	void FindScreenVariableL(TInt aScreen, const TDesC& aIntSection, const TDesC& aStringSection);
    1.44 +	void FindCustomSectionVariableL(const TDesC& aSection, const TDesC& aIntSection, const TDesC& aStringSection);
    1.45 +	void FindDefaultVariableL(const TDesC& aIntSection, const TDesC& aStringSection);
    1.46 +	void FindDefaultMissingVariableL(const TDesC& aMissingVariable);
    1.47 +	void FindScreenMissingVariableL(TInt aScreen, const TDesC& aMissingVariable);
    1.48 +	void FindCustomSectionMissingVariableL(const TDesC& aSection, const TDesC& aMissingVariable);
    1.49 +	void FindDefaultVarOppositeMethodL(const TDesC& aAttribute, const TDesC& aType);
    1.50 +	void FindScreenVarOppositeMethodL(TInt aScreen, const TDesC& aAttribute, const TDesC& aType);
    1.51 +	void FindCustomSectionVarOppositeMethodL(const TDesC& aSection, const TDesC& aAttribute, const TDesC& aType);
    1.52 +	void FindNEScreenVariableL(TInt aScreen, const TDesC& aIntSection, const TDesC& aStringSection);
    1.53 +	void FindNESectionVariableL(const TDesC& aSection, const TDesC& aIntSection, const TDesC& aStringSection);
    1.54 +protected:
    1.55 +	CTestMWsIniFile();
    1.56 +
    1.57 +protected:
    1.58 +	MWsIniFile* iWsIniFile;
    1.59 +	CIniData* iIniData;
    1.60 +	TBuf<255> iPrint;
    1.61 +  };
    1.62 +
    1.63 +#endif /*T_TESTMWSINIFILE_H_*/