logsui/logscntfinder/tsrc/ut_logscntfinder/inc/ut_logspredictive12keytranslator.h
changeset 2 7119b73b84d6
child 17 90fe74753f71
equal deleted inserted replaced
0:4a5361db8937 2:7119b73b84d6
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 #ifndef UT_LOGSPREDICTIV12KEYTRANSLATOR_H
       
    18 #define UT_LOGSPREDICTIV12KEYTRANSLATOR_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <hbinputlanguage.h>
       
    22 
       
    23 class LogsPredictive12KeyTranslator;
       
    24 
       
    25 class UT_LogsPredictive12KeyTranslator : public QObject                 
       
    26 {
       
    27      Q_OBJECT
       
    28     
       
    29 private slots:
       
    30 
       
    31 /*
       
    32  * In addition, there are four private slots that are not treated as testfunctions. 
       
    33  * They will be executed by the testing framework and can be used to initialize and clean up 
       
    34  * either the entire test or the current test function.
       
    35  * 
       
    36  * initTestCase() will be called before the first testfunction is executed.
       
    37  * cleanupTestCase() will be called after the last testfunction was executed.
       
    38  * init() will be called before each testfunction is executed.
       
    39  * cleanup() will be called after every testfunction.
       
    40 */
       
    41     void initTestCase();
       
    42     void cleanupTestCase();
       
    43     void init();
       
    44     void cleanup();
       
    45 
       
    46 private slots: //test methods
       
    47 
       
    48     void testConstructor();
       
    49     void testPatternTokens();
       
    50     void testHasPatternSeparators();
       
    51     void testTranslateChar();
       
    52 
       
    53 private:
       
    54  
       
    55     LogsPredictive12KeyTranslator* mTranslator;
       
    56     HbInputLanguage mOrigLang; 
       
    57     
       
    58 };
       
    59 
       
    60 
       
    61 #endif //UT_LOGSPREDICTIV12KEYTRANSLATOR_H