phonebookengines/contactsmodel/inc/cntpredictivesearch.h
changeset 46 efe85016a067
equal deleted inserted replaced
40:b46a585f6909 46:efe85016a067
       
     1 /*
       
     2 * Copyright (c) 2010 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: Class to hold the character to key mappings and provide
       
    15 *   conversion of strings to their numerical mappings. 
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __CNTPREDICTIVESEARCH_H__
       
    20 #define __CNTPREDICTIVESEARCH_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 NONSHARABLE_CLASS (CntPredictiveSearch) : public CBase
       
    30 {
       
    31 public:
       
    32     
       
    33     /**
       
    34      * Two phase construction
       
    35      */
       
    36     IMPORT_C static  CntPredictiveSearch* NewL();
       
    37     
       
    38     /**
       
    39      * Destructor
       
    40      */
       
    41     IMPORT_C virtual ~CntPredictiveSearch();
       
    42 
       
    43 public:
       
    44 
       
    45     /**
       
    46     * Construct SQL query.
       
    47     * aKeypad ETrue indicates key pad type.
       
    48     *                        
       
    49     */
       
    50     IMPORT_C  HBufC* CreateSQLQueryL(HBufC& searchQuery, int aKeypad);
       
    51     
       
    52 private:
       
    53     /**
       
    54     * Constructor
       
    55     */
       
    56     CntPredictiveSearch();
       
    57       
       
    58     /**
       
    59     * Second phase constructor
       
    60     */
       
    61     void ConstructL();
       
    62     
       
    63 };
       
    64 #endif // __CNTPREDICTIVESEARCH_H__
       
    65 
       
    66 // End of file