os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/src/hashing.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sql/TEST/testexecute/SQLite/src/hashing.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,77 @@
     1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 + 
    1.19 +#if (!defined __TEFSQL_HASHING_H__)
    1.20 +#define __TEFSQL_HASHING_H__
    1.21 +
    1.22 +#include <e32base.h>
    1.23 +#include <e32hashtab.h>
    1.24 +
    1.25 +class CSQLHashUtil : public CBase
    1.26 +    {
    1.27 +public:
    1.28 +    CSQLHashUtil(){};
    1.29 +    ~CSQLHashUtil();
    1.30 +    TPtrC* GetStringFromNum(TInt aErrNum);
    1.31 +    TInt GetNumFromString(TPtrC aErrMsg);
    1.32 +protected:
    1.33 +    RHashMap<TInt, TPtrC> ihash;
    1.34 +    };
    1.35 +class CSQLOsErrHash : public CSQLHashUtil
    1.36 +    {
    1.37 +public:
    1.38 +    CSQLOsErrHash();
    1.39 +    };
    1.40 +class CSQLErrHash : public CSQLOsErrHash
    1.41 +    {
    1.42 +public:
    1.43 +    CSQLErrHash();
    1.44 +    };
    1.45 +class CSQLColTypeHash : public CSQLHashUtil
    1.46 +    {
    1.47 +public:
    1.48 +    CSQLColTypeHash();
    1.49 +    };
    1.50 +class CSQLTEFAction : public CSQLHashUtil
    1.51 +    {
    1.52 +public:
    1.53 +    CSQLTEFAction();
    1.54 +    };
    1.55 +class CSQLSFSTEFAction : public CSQLHashUtil
    1.56 +    {
    1.57 +public:
    1.58 +    CSQLSFSTEFAction();
    1.59 +	enum { ESFS_SelectIntL, ESFS_SelectInt64L, ESFS_SelectRealL,
    1.60 +		   ESFS_SelectTextL, ESFS_SelectBinaryL, };
    1.61 +	};
    1.62 +class CSQLCapability : public CSQLHashUtil
    1.63 +    {
    1.64 +public:
    1.65 +    CSQLCapability();
    1.66 +    };
    1.67 +class CSQLObject : public CSQLHashUtil
    1.68 +    {
    1.69 +public:
    1.70 +    CSQLObject();
    1.71 +    };
    1.72 +
    1.73 +class CSQLPolicy : public CSQLHashUtil
    1.74 +	{
    1.75 +public:
    1.76 +	CSQLPolicy();
    1.77 +	};
    1.78 +
    1.79 +#endif  // __TEFSQL_HASHING_H__
    1.80 +