logsui/logscntfinder/tsrc/st_logscntfinder/src/st_logscntfinderthai.cpp
changeset 21 2f0af9ba7665
parent 6 41c0a814d878
equal deleted inserted replaced
18:acd4e87b24b4 21:2f0af9ba7665
    18 #include "logscntfinder.h"
    18 #include "logscntfinder.h"
    19 #include "testresultxmlparser.h"
    19 #include "testresultxmlparser.h"
    20 
    20 
    21 #include <qtcontacts.h>
    21 #include <qtcontacts.h>
    22 #include <QtTest/QtTest>
    22 #include <QtTest/QtTest>
    23 #include <hbinputsettingproxy.h>
       
    24 
    23 
    25 void ST_LogsCntFinderThai::initTestCase()
    24 void ST_LogsCntFinderThai::initTestCase()
    26 {
    25 {
    27 }
    26 }
    28 
    27 
    32 }
    31 }
    33 
    32 
    34 
    33 
    35 void ST_LogsCntFinderThai::init()
    34 void ST_LogsCntFinderThai::init()
    36 {   
    35 {   
    37     HbInputLanguage eng( QLocale::Thai );
    36     ST_LOGSCNTFINDER_SET_LANGUAGE( QLocale::Thai );
    38     HbInputSettingProxy::instance()->setGlobalInputLanguage( eng );
       
    39     
    37     
    40     m_finder = 0;
    38     m_finder = 0;
    41     //open symbian database
    39     //open symbian database
    42     m_manager = new QContactManager("symbian");
    40     m_manager = new QContactManager("symbian");
    43     m_finder = new LogsCntFinder(*m_manager);
    41     m_finder = new LogsCntFinder(*m_manager);
    60 {
    58 {
    61     delete m_manager;
    59     delete m_manager;
    62     m_manager = 0;
    60     m_manager = 0;
    63     delete m_finder;
    61     delete m_finder;
    64     m_finder = 0;
    62     m_finder = 0;
    65     HbInputLanguage eng( QLocale::English );
    63     
    66     HbInputSettingProxy::instance()->setGlobalInputLanguage( eng );
    64     ST_LOGSCNTFINDER_SET_LANGUAGE( QLocale::English );
    67     
    65     
    68 }
    66 }
    69 
    67 
    70 void ST_LogsCntFinderThai::createThaiContacts()
    68 void ST_LogsCntFinderThai::createThaiContacts()
    71 {
    69 {
   122 // Tests
   120 // Tests
   123 //
   121 //
   124 
   122 
   125 void ST_LogsCntFinderThai::testPredictiveThaiSearchQuery()
   123 void ST_LogsCntFinderThai::testPredictiveThaiSearchQuery()
   126 {
   124 {
   127     HbInputLanguage thai( QLocale::Thai );
       
   128     HbInputSettingProxy::instance()->setGlobalInputLanguage( thai );
       
   129     		  
       
   130     createThaiContacts();
   125     createThaiContacts();
   131 
   126 
   132     QEXPECT_FAIL("", "Not supported yet. Issues", Abort );
   127     QEXPECT_FAIL("", "Not supported yet. Issues", Abort );
   133     
   128     
   134     //There is no recent call in logs UI
   129     //There is no recent call in logs UI