sysstatemgmt/systemstatemgr/test/tsus/inc/tsus_swpchangesup.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:29:05 +0300
branchRCL_3
changeset 60 ccb4f6b3db21
parent 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201033 Kit: 201035

// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// This dll will be used by tsus_loadplugin to change the SWP
// 
//

/**
 @file
 @test
 @internalComponent - Internal Symbian test code 
*/


#ifndef __TSUS_SWPCHANGESUP_H__
#define __TSUS_SWPCHANGESUP_H__

#include <e32base.h>
#include <ssm/ssmutility.h>


// define a known swp so the test step can check if it was correctly updated
_LIT(KTestSwpLoadSupFile,"ssm.swp.policy.sustest");
const TUint KTestSwpLoadSup = {0x0012AB};
const TInt KTestSwpLoadSupNewValue = 334455;

// Use this semaphore to signal the test when this plugin is run
_LIT(KTestSwpLoadSupSemaphore, "TestSwpLoadSupSemaphore"); 

/**
*/		
NONSHARABLE_CLASS(CSwpLoadSup1) : public CActive, public MSsmUtility
	{
public:
	IMPORT_C static MSsmUtility* NewL();
	
	//from MSsmUtility
	void InitializeL();
	void StartL();
	void Release();

	//from CActive
	void DoCancel();
	void RunL();
	TInt RunError(TInt aError);
	
private:
	//from CBase
	CSwpLoadSup1();
	~CSwpLoadSup1();
	};

/**
*/		
NONSHARABLE_CLASS(CSwpLoadSup2) : public CActive, public MSsmUtility
	{
public:
	IMPORT_C static MSsmUtility* NewL();
	
	//from MSsmUtility
	void InitializeL();
	void StartL();
	void Release();

	//from CActive
	void DoCancel();
	void RunL();
	TInt RunError(TInt aError);
	
private:
	//from CBase
	CSwpLoadSup2();
	~CSwpLoadSup2();
	};

#endif