--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/commonservices/activitymanager/src/activitymanagerdebug.h Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,61 @@
+// 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:
+//
+
+#ifndef ACTIVITYMANAGERDEBUG_H
+#define ACTIVITYMANAGERDEBUG_H
+
+#include <e32debug.h>
+
+// Make sure release builds get a warning if
+#ifndef _DEBUG
+#if (defined SYMBIAN_BAFL_ACTIVITYMANAGER_TRACE)
+#warning "Use of RDebug::Print tracing in a release build, check MMP files"
+#endif
+#endif
+
+
+//
+// MACROs for trace statements in client/server code.
+//
+
+#ifdef SYMBIAN_BAFL_ACTIVITYMANAGER_TRACE
+
+#define __ACTIVITYMANAGER_TRACE(_text) RDebug::Print(_L(_text))
+#define __ACTIVITYMANAGER_TRACE1(_text, _a1) RDebug::Print(_L(_text), (_a1))
+#define __ACTIVITYMANAGER_TRACE2(_text, _a1, _a2) RDebug::Print(_L(_text), (_a1), (_a2))
+#define __ACTIVITYMANAGER_TRACE3(_text, _a1, _a2, _a3) RDebug::Print(_L(_text), (_a1), (_a2), (_a3))
+#define __ACTIVITYMANAGER_TRACE4(_text, _a1, _a2, _a3, _a4) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4))
+#define __ACTIVITYMANAGER_TRACE5(_text, _a1, _a2, _a3, _a4, _a5) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5))
+#define __ACTIVITYMANAGER_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6) RDebug::Print(_L(_text), (_a1), (_a2), (_a3), (_a4), (_a5), (_a6))
+
+#else
+
+#define __ACTIVITYMANAGER_TRACE(_text)
+#define __ACTIVITYMANAGER_TRACE1(_text, _a1)
+#define __ACTIVITYMANAGER_TRACE2(_text, _a1, _a2)
+#define __ACTIVITYMANAGER_TRACE3(_text, _a1, _a2, _a3)
+#define __ACTIVITYMANAGER_TRACE4(_text, _a1, _a2, _a3, _a4)
+#define __ACTIVITYMANAGER_TRACE5(_text, _a1, _a2, _a3, _a4, _a5)
+#define __ACTIVITYMANAGER_TRACE6(_text, _a1, _a2, _a3, _a4, _a5, _a6)
+
+#endif
+
+// Declarations to support panics in production code
+_LIT(KCUserActivityManager,"CUserActivityMan");
+#define UAM_PANIC(p) User::Panic(KCUserActivityManager,(p))
+
+
+#endif // ACTIVITYMANAGERDEBUG_H
+