mpx/tsrc/public/basic/common/testviewframework/inc/testutility.h
changeset 64 92dbd2a406d9
equal deleted inserted replaced
61:3b098142db83 64:92dbd2a406d9
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Help tools
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TESTUTILITY_H
       
    19 #define TESTUTILITY_H
       
    20 
       
    21 #include <e32cmn.h>
       
    22 #include <e32std.h>
       
    23 
       
    24 // FORWARD DECLARATION
       
    25 class CStifLogger;
       
    26 
       
    27 class TestUtility
       
    28     {
       
    29     public:
       
    30         /**
       
    31         * Convert a string to decemial
       
    32         * @param aStr a string to convert
       
    33         */
       
    34         IMPORT_C static TInt ConvertStrToDecL(const TDesC& aStr);
       
    35         
       
    36         /**
       
    37         * Log message to RDebug and Stiftestlogger if any
       
    38         * @param aLogger a STIF logger to use (can be NULL)
       
    39         * @param aFmt a string contains parameter list 
       
    40         * @param ...
       
    41         */
       
    42         IMPORT_C static void TestLog(CStifLogger* aLogger, 
       
    43                                      TRefByValue< const TDesC > aFmt, 
       
    44                                      ...);
       
    45                                      
       
    46     };
       
    47     
       
    48 #endif  //TESTUTILITY_H