sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #if (!defined __TEFSQL_HASHING_H__) sl@0: #define __TEFSQL_HASHING_H__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: class CSQLHashUtil : public CBase sl@0: { sl@0: public: sl@0: CSQLHashUtil(){}; sl@0: ~CSQLHashUtil(); sl@0: TPtrC* GetStringFromNum(TInt aErrNum); sl@0: TInt GetNumFromString(TPtrC aErrMsg); sl@0: protected: sl@0: RHashMap ihash; sl@0: }; sl@0: class CSQLOsErrHash : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLOsErrHash(); sl@0: }; sl@0: class CSQLErrHash : public CSQLOsErrHash sl@0: { sl@0: public: sl@0: CSQLErrHash(); sl@0: }; sl@0: class CSQLColTypeHash : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLColTypeHash(); sl@0: }; sl@0: class CSQLTEFAction : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLTEFAction(); sl@0: }; sl@0: class CSQLSFSTEFAction : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLSFSTEFAction(); sl@0: enum { ESFS_SelectIntL, ESFS_SelectInt64L, ESFS_SelectRealL, sl@0: ESFS_SelectTextL, ESFS_SelectBinaryL, }; sl@0: }; sl@0: class CSQLCapability : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLCapability(); sl@0: }; sl@0: class CSQLObject : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLObject(); sl@0: }; sl@0: sl@0: class CSQLPolicy : public CSQLHashUtil sl@0: { sl@0: public: sl@0: CSQLPolicy(); sl@0: }; sl@0: sl@0: #endif // __TEFSQL_HASHING_H__ sl@0: