messagingfw/suplsmshandler/test/testserver/src/Te_SuplWdpWatcher.h
author hgs
Wed, 03 Nov 2010 22:41:46 +0530
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
permissions -rw-r--r--
201044_02

// 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__