persistentstorage/sql/SRC/Server/SqlSrvUtil.h
changeset 0 08ec8eefde2f
child 23 26645d81f48d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/persistentstorage/sql/SRC/Server/SqlSrvUtil.h	Fri Jan 22 11:06:30 2010 +0200
@@ -0,0 +1,40 @@
+// Copyright (c) 2006-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:
+//
+
+#ifndef __SQLSRVUTIL_H__
+#define __SQLSRVUTIL_H__
+
+#include <f32file.h>		//RFs - used in SqlSrvUtil.inl
+#include "SqlSrvStrings.h"	//KSystemPrefix16, KSystemPrefix8, KSqlitePrefix16, KSqlitePrefix8 - used in SqlSrvUtil.inl
+#include "SqlUtil.h"		//CompareNoCase() - used in SqlSrvUtil.inl
+
+inline TBool IsSystemTableName(const TDesC16& aTableName);
+inline TBool IsSystemTableName(const TDesC8& aTableName);
+inline TBool IsSqliteTableName(const TDesC8& aTableName);
+
+#ifdef _NOTIFY
+void PrintAuthorizerArguments(TInt aDbOpType, const char* aDbObjName1, const char* aDbObjName2, 
+							  const char* aDbName, const char* aTrgOrViewName);
+#endif//_NOTIFY
+
+TBool UTF16ToUTF8(const TDesC& aIn, TDes8& aOut);
+TBool UTF16ZToUTF8Z(const TDesC& aFileName, TDes8& aFileNameDestBuf);
+TBool UTF16ToUTF8Z(const TDesC& aFileName, TDes8& aFileNameDestBuf);
+inline TBool FileExists(RFs& aFs, const TDesC& aFileName);
+TBool IsReadOnlyFileL(RFs& aFs, const TDesC& aDbFileName);
+
+#include "SqlSrvUtil.inl"
+
+#endif//__SQLSRVUTIL_H__