logsui/logscntfinder/tsrc/st_logscntfinder/inc/st_logscntfinderqwerty.h
changeset 6 41c0a814d878
child 15 76d2cf7a585e
equal deleted inserted replaced
4:e52d42f9500c 6:41c0a814d878
       
     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 ST_LOGSCNTFINDERQWERTY_H
       
    18 #define ST_LOGSCNTFINDERQWERTY_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <qcontactmanager.h>
       
    22 #include <hbinputlanguage.h>
       
    23 
       
    24 QTM_USE_NAMESPACE
       
    25 
       
    26 class LogsCntFinder;
       
    27 
       
    28 
       
    29 class ST_LogsCntFinderQwerty : public QObject                 
       
    30 {
       
    31      Q_OBJECT
       
    32     
       
    33 private slots:
       
    34 
       
    35 /*
       
    36  * In addition, there are four private slots that are not treated as testfunctions. 
       
    37  * They will be executed by the testing framework and can be used to initialize and clean up 
       
    38  * either the entire test or the current test function.
       
    39  * 
       
    40  * initTestCase() will be called before the first testfunction is executed.
       
    41  * cleanupTestCase() will be called after the last testfunction was executed.
       
    42  * init() will be called before each testfunction is executed.
       
    43  * cleanup() will be called after every testfunction.
       
    44 */
       
    45      void initTestCase();
       
    46      void cleanupTestCase();
       
    47      void init();
       
    48      void cleanup();
       
    49 
       
    50 private slots: //test methods
       
    51 
       
    52     void testPredictiveEmailSearchNameAndEmailMatch();
       
    53     void testPredictiveEmailSearchWithSpace();
       
    54     void testPredictiveEmailSearchEmailMatch();
       
    55     void testPredictiveEmailSearchNoEmails();
       
    56     void testPredictiveEmailSearchOverLongPattern();
       
    57     void testPredictiveEmailSearchSpecialCharsInPattern();
       
    58 
       
    59 private:
       
    60 
       
    61     void createContacts();
       
    62 
       
    63 private:
       
    64     QContactManager *m_manager;
       
    65 };
       
    66 
       
    67 
       
    68 #endif // ST_LOGSCNTFINDERQWERTY_H