persistentstorage/sql/SRC/Server/SqlSrvUtil.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:39:58 +0100
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201035 Kit: 201035

// 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__