persistentstorage/sql/SRC/Server/SqlSrvCollation.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2005-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 // User defined collations
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __SQLSRVCOLLATION_H__
       
    19 #define __SQLSRVCOLLATION_H__
       
    20 
       
    21 #include <e32std.h>
       
    22 
       
    23 //Forward declarations
       
    24 struct sqlite3;
       
    25 
       
    26 /**
       
    27 This class manages the installation of the user-defined collations.
       
    28 Also it gives information about the user-defined collations count and their names.
       
    29 5 different collations are supported at the moment: 
       
    30 "CompareC0", "CompareC1", "CompareC2", "CompareC3" respectively for collation comparison levels 0, 1, 2 and 3
       
    31 and "CompareF" for folded string comparison.
       
    32 
       
    33 @internalComponent
       
    34 */
       
    35 class TSqlCollationUtil
       
    36 	{
       
    37 public:
       
    38 	TSqlCollationUtil(sqlite3* aDbHandle);
       
    39 	void  InstallCollationsL();
       
    40 	TInt  CollationCount() const;
       
    41 	TPtrC CollationName(TInt aIndex) const;
       
    42 
       
    43 private:
       
    44 	sqlite3*	iDbHandle;
       
    45 			
       
    46 	};
       
    47 
       
    48 #endif//__SQLSRVCOLLATION_H__