persistentstorage/sql/SRC/Server/SqlSrvDatabase.inl
branchRCL_3
changeset 45 cc28652e0254
parent 44 26645d81f48d
equal deleted inserted replaced
44:26645d81f48d 45:cc28652e0254
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   142 
   142 
   143 @panic SqlDb 7 In _DEBUG mode. iDbHandle is NULL.
   143 @panic SqlDb 7 In _DEBUG mode. iDbHandle is NULL.
   144 */
   144 */
   145 inline sqlite3* CSqlSrvDatabase::RawDbHandle() const
   145 inline sqlite3* CSqlSrvDatabase::RawDbHandle() const
   146 	{
   146 	{
   147 	__ASSERT_DEBUG(iDbHandle != NULL, __SQLPANIC(ESqlPanicInternalError));
   147 	__SQLASSERT(iDbHandle != NULL, ESqlPanicInternalError);
   148 	return iDbHandle;	
   148 	return iDbHandle;	
   149 	}
   149 	}
   150 
   150 
   151 /**
   151 /**
   152 @return A pointer to the database security policies object.
   152 @return A pointer to the database security policies object.
   222 
   222 
   223 @panic SqlDb 4 In _DEBUG mode if aCompactionMode parameter value is invalid.
   223 @panic SqlDb 4 In _DEBUG mode if aCompactionMode parameter value is invalid.
   224 */
   224 */
   225 inline void CSqlSrvDatabase::StoreSettingsL(const TDesC& aCollationDllName, TInt aDbConfigFileVersion, TSqlCompactionMode aCompactionMode)
   225 inline void CSqlSrvDatabase::StoreSettingsL(const TDesC& aCollationDllName, TInt aDbConfigFileVersion, TSqlCompactionMode aCompactionMode)
   226 	{
   226 	{
   227 	__ASSERT_DEBUG(aCompactionMode == ESqlCompactionManual || aCompactionMode == ESqlCompactionBackground || aCompactionMode == ESqlCompactionAuto, __SQLPANIC(ESqlPanicBadArgument));
   227 	__SQLASSERT(aCompactionMode == ESqlCompactionManual || aCompactionMode == ESqlCompactionBackground || aCompactionMode == ESqlCompactionAuto, ESqlPanicBadArgument);
   228 #if !defined(__SQL_DISABLE_SYMBIAN_SETTINGS_TABLE__)		
   228 #if !defined(__SQL_DISABLE_SYMBIAN_SETTINGS_TABLE__)		
   229 	TSqlDbSysSettings dbSettings(iDbHandle);
   229 	TSqlDbSysSettings dbSettings(iDbHandle);
   230 	dbSettings.StoreSettingsL(KMainDb16, aCollationDllName, aDbConfigFileVersion, aCompactionMode);
   230 	dbSettings.StoreSettingsL(KMainDb16, aCollationDllName, aDbConfigFileVersion, aCompactionMode);
   231 #else
   231 #else
   232 	aCollationDllName.Ptr(); // to avoid compile-time warning
   232 	aCollationDllName.Ptr(); // to avoid compile-time warning