messagingfw/suplsmshandler/test/testserver/src/Te_SuplWdpWatcher.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:36:02 +0200
changeset 0 8e480a14352b
permissions -rw-r--r--
Revision: 201001 Kit: 201003

// Copyright (c) 2007-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:
// A test wrapper over the CSuplWdpWatcher class.
// 
//

#if (!defined __TE_LBSSUPLWDPWATCHER__)
#define __TE_LBSSUPLWDPWATCHER__

#include "LbsSuplWdpWatcher.h"

/**
A test wrapper over the CSuplWdpWatcher class.

@see CSuplWdpWatcher
*/
class CTe_LbsSuplWdpWatcher : public CLbsSuplWdpWatcher
	{
private:
	/** The flag for enabling/disabling asserts for the CLbsSuplWdpWatcher class */
	static TBool iEnableAsserts;
	
public:
	inline static TBool AssertsEnabled();
	inline static void EnableAsserts();
	inline static void DisableAsserts();
	
private:
	//This constructor is only for avoiding gcce error
	CTe_LbsSuplWdpWatcher(TInt aPriority, CWatcherLog& aLog) : 
		CLbsSuplWdpWatcher(aPriority, aLog){};
	
	};
	
	
inline TBool CTe_LbsSuplWdpWatcher::AssertsEnabled()	
	{
	return iEnableAsserts;
	}

inline void CTe_LbsSuplWdpWatcher::EnableAsserts()
	{
	iEnableAsserts = ETrue;
	}

inline void CTe_LbsSuplWdpWatcher::DisableAsserts()
	{
	iEnableAsserts = EFalse;
	}

#endif //__TE_LBSSUPLWDPWATCHER__