persistentstorage/sql/SRC/Server/SqlSrvUtil.h
changeset 0 08ec8eefde2f
child 23 26645d81f48d
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     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 #ifndef __SQLSRVUTIL_H__
       
    17 #define __SQLSRVUTIL_H__
       
    18 
       
    19 #include <f32file.h>		//RFs - used in SqlSrvUtil.inl
       
    20 #include "SqlSrvStrings.h"	//KSystemPrefix16, KSystemPrefix8, KSqlitePrefix16, KSqlitePrefix8 - used in SqlSrvUtil.inl
       
    21 #include "SqlUtil.h"		//CompareNoCase() - used in SqlSrvUtil.inl
       
    22 
       
    23 inline TBool IsSystemTableName(const TDesC16& aTableName);
       
    24 inline TBool IsSystemTableName(const TDesC8& aTableName);
       
    25 inline TBool IsSqliteTableName(const TDesC8& aTableName);
       
    26 
       
    27 #ifdef _NOTIFY
       
    28 void PrintAuthorizerArguments(TInt aDbOpType, const char* aDbObjName1, const char* aDbObjName2, 
       
    29 							  const char* aDbName, const char* aTrgOrViewName);
       
    30 #endif//_NOTIFY
       
    31 
       
    32 TBool UTF16ToUTF8(const TDesC& aIn, TDes8& aOut);
       
    33 TBool UTF16ZToUTF8Z(const TDesC& aFileName, TDes8& aFileNameDestBuf);
       
    34 TBool UTF16ToUTF8Z(const TDesC& aFileName, TDes8& aFileNameDestBuf);
       
    35 inline TBool FileExists(RFs& aFs, const TDesC& aFileName);
       
    36 TBool IsReadOnlyFileL(RFs& aFs, const TDesC& aDbFileName);
       
    37 
       
    38 #include "SqlSrvUtil.inl"
       
    39 
       
    40 #endif//__SQLSRVUTIL_H__