messagingfw/suplsmshandler/test/testserver/src/Te_SuplWdpWatcher.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingfw/suplsmshandler/test/testserver/src/Te_SuplWdpWatcher.h	Wed Nov 03 22:41:46 2010 +0530
@@ -0,0 +1,62 @@
+// 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__