diff -r 000000000000 -r 08ec8eefde2f persistentstorage/sql/SRC/Server/SqlSrvCollation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/persistentstorage/sql/SRC/Server/SqlSrvCollation.h Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,48 @@ +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// User defined collations +// +// + +#ifndef __SQLSRVCOLLATION_H__ +#define __SQLSRVCOLLATION_H__ + +#include + +//Forward declarations +struct sqlite3; + +/** +This class manages the installation of the user-defined collations. +Also it gives information about the user-defined collations count and their names. +5 different collations are supported at the moment: +"CompareC0", "CompareC1", "CompareC2", "CompareC3" respectively for collation comparison levels 0, 1, 2 and 3 +and "CompareF" for folded string comparison. + +@internalComponent +*/ +class TSqlCollationUtil + { +public: + TSqlCollationUtil(sqlite3* aDbHandle); + void InstallCollationsL(); + TInt CollationCount() const; + TPtrC CollationName(TInt aIndex) const; + +private: + sqlite3* iDbHandle; + + }; + +#endif//__SQLSRVCOLLATION_H__