os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/src/hashing.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15  
    16 #if (!defined __TEFSQL_HASHING_H__)
    17 #define __TEFSQL_HASHING_H__
    18 
    19 #include <e32base.h>
    20 #include <e32hashtab.h>
    21 
    22 class CSQLHashUtil : public CBase
    23     {
    24 public:
    25     CSQLHashUtil(){};
    26     ~CSQLHashUtil();
    27     TPtrC* GetStringFromNum(TInt aErrNum);
    28     TInt GetNumFromString(TPtrC aErrMsg);
    29 protected:
    30     RHashMap<TInt, TPtrC> ihash;
    31     };
    32 class CSQLOsErrHash : public CSQLHashUtil
    33     {
    34 public:
    35     CSQLOsErrHash();
    36     };
    37 class CSQLErrHash : public CSQLOsErrHash
    38     {
    39 public:
    40     CSQLErrHash();
    41     };
    42 class CSQLColTypeHash : public CSQLHashUtil
    43     {
    44 public:
    45     CSQLColTypeHash();
    46     };
    47 class CSQLTEFAction : public CSQLHashUtil
    48     {
    49 public:
    50     CSQLTEFAction();
    51     };
    52 class CSQLSFSTEFAction : public CSQLHashUtil
    53     {
    54 public:
    55     CSQLSFSTEFAction();
    56 	enum { ESFS_SelectIntL, ESFS_SelectInt64L, ESFS_SelectRealL,
    57 		   ESFS_SelectTextL, ESFS_SelectBinaryL, };
    58 	};
    59 class CSQLCapability : public CSQLHashUtil
    60     {
    61 public:
    62     CSQLCapability();
    63     };
    64 class CSQLObject : public CSQLHashUtil
    65     {
    66 public:
    67     CSQLObject();
    68     };
    69 
    70 class CSQLPolicy : public CSQLHashUtil
    71 	{
    72 public:
    73 	CSQLPolicy();
    74 	};
    75 
    76 #endif  // __TEFSQL_HASHING_H__
    77