diff -r e4ebb16b39ea -r 603d3f8b6302 plugins/contacts/symbian/contactsmodel/cntplsql/src/cntpredictivesearch.cpp --- a/plugins/contacts/symbian/contactsmodel/cntplsql/src/cntpredictivesearch.cpp Fri Sep 17 08:34:34 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -/* -* Copyright (c) 2010 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: Retrieves the character map for each of the numeric keys. -*/ - -// INCLUDE FILES -#include "cntpredictivesearch.h" -#include "cntsqlsearch.h" - -#include -#include -#include - -// ============================== MEMBER FUNCTIONS ============================ - -// ---------------------------------------------------------------------------- -// CntPredictiveSearch::NewL -// ---------------------------------------------------------------------------- -EXPORT_C CntPredictiveSearch* CntPredictiveSearch::NewL() - { - CntPredictiveSearch* self = new (ELeave) CntPredictiveSearch(); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -// ---------------------------------------------------------------------------- -// CntPredictiveSearch::NewL -// ---------------------------------------------------------------------------- -EXPORT_C CntPredictiveSearch::~CntPredictiveSearch() -{ - -} - -// ---------------------------------------------------------------------------- -// CntPredictiveSearch::CreateSQLQuery -// Construct SQL query. -// ---------------------------------------------------------------------------- -EXPORT_C HBufC* CntPredictiveSearch::CreateSQLQueryL(HBufC& searchQuery, int aKeypad) -{ - QString qString; - QString queryString; - QT_TRYCATCH_LEAVING({ - qString = QString((QChar*)searchQuery.Des().Ptr(),searchQuery.Length()); - CntSqlSearch SqlSearch; - queryString = SqlSearch.CreatePredictiveSearch(qString); - }); - TPtrC myDescriptor (reinterpret_cast(queryString.constData()),queryString.length()); - return myDescriptor.AllocL(); -} - -// ---------------------------------------------------------------------------- -// CntPredictiveSearch::CntPredictiveSearch -// ---------------------------------------------------------------------------- -CntPredictiveSearch::CntPredictiveSearch() -{ -} - -// ---------------------------------------------------------------------------- -// CntPredictiveSearch::ConstructL -// ---------------------------------------------------------------------------- -void CntPredictiveSearch::ConstructL() -{ -} -// End of file