mpx/tsrc/public/basic/common/testviewframework/inc/testutility.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:50:27 +0300
changeset 64 92dbd2a406d9
permissions -rw-r--r--
Revision: 201037 Kit: 201039

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