~ubuntu-branches/ubuntu/quantal/qtmobility/quantal

« back to all changes in this revision

Viewing changes to plugins/contacts/symbian/contactsmodel/cntplsql/inc/cntsqlsearchbase.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-16 16:18:07 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20101116161807-k2dzt2nyse975r3l
Tags: 1.1.0-0ubuntu1
* New upstream release
* Syncronise with Debian, no remaining changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: 
 
15
*/
 
16
 
 
17
#ifndef CNTSQLSEARCHBASE_H_
 
18
#define CNTSQLSEARCHBASE_H_
 
19
 
 
20
#include "cntsqlsearchinterface.h"
 
21
#include <QString>
 
22
 
 
23
class C12keyKeyMap;
 
24
 
 
25
class CntSqlSearchBase : public CntSqlSearchInterface 
 
26
{
 
27
   
 
28
public:
 
29
    
 
30
    CntSqlSearchBase(){};
 
31
    
 
32
    CntSqlSearchBase(C12keyKeyMap* twelveKeyKeyMap);
 
33
    
 
34
    ~CntSqlSearchBase();
 
35
    
 
36
public: //from CCntSqlSearchInterface
 
37
 
 
38
    virtual QString createInputSpecificSearch(const QString &pattern){return QString();};
 
39
    
 
40
    virtual QueryType getQueryType(){return CntSqlSearchInterface::NA; };  
 
41
    
 
42
protected:
 
43
      
 
44
    QString exactMatch(const QString& pattern, QString table = "") const;
 
45
    
 
46
    QString exactMatchSearch(const QString& pattern) const;
 
47
    
 
48
    QString returnAllcontacts(const QString &pattern) const;
 
49
    
 
50
    QString selectTable(const QString &pattern) const;
 
51
    
 
52
private:
 
53
    
 
54
    const C12keyKeyMap* mTwelveKeyMap;
 
55
    
 
56
    friend class UT_CntSqlSearchBase;
 
57
        
 
58
};
 
59
    
 
60
 
 
61
#endif /* CNTSQLSEARCHBASE_H_ */