mpx/tsrc/public/basic/common/testviewframework/inc/testutility.h
changeset 64 92dbd2a406d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpx/tsrc/public/basic/common/testviewframework/inc/testutility.h	Mon Oct 04 00:50:27 2010 +0300
@@ -0,0 +1,48 @@
+/*
+* Copyright (c) 2002 - 2007 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:  Help tools
+*
+*/
+
+#ifndef TESTUTILITY_H
+#define TESTUTILITY_H
+
+#include <e32cmn.h>
+#include <e32std.h>
+
+// FORWARD DECLARATION
+class CStifLogger;
+
+class TestUtility
+    {
+    public:
+        /**
+        * Convert a string to decemial
+        * @param aStr a string to convert
+        */
+        IMPORT_C static TInt ConvertStrToDecL(const TDesC& aStr);
+        
+        /**
+        * Log message to RDebug and Stiftestlogger if any
+        * @param aLogger a STIF logger to use (can be NULL)
+        * @param aFmt a string contains parameter list 
+        * @param ...
+        */
+        IMPORT_C static void TestLog(CStifLogger* aLogger, 
+                                     TRefByValue< const TDesC > aFmt, 
+                                     ...);
+                                     
+    };
+    
+#endif  //TESTUTILITY_H