equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 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". |
15 |
15 |
16 #ifndef __SQLSRVMAIN_H__ |
16 #ifndef __SQLSRVMAIN_H__ |
17 #define __SQLSRVMAIN_H__ |
17 #define __SQLSRVMAIN_H__ |
18 |
18 |
19 #include <f32file.h> |
19 #include <f32file.h> |
20 #include "SqlPanic.h" //TSqlPanic |
20 #include "SqlAssert.h" //TSqlPanic |
21 #include "SqlSrvFileData.h" //TSqlSrvFileData |
21 #include "SqlSrvFileData.h" //TSqlSrvFileData |
22 #include "SqlSrvAuthorizer.h" //MSqlPolicyInspector |
22 #include "SqlSrvAuthorizer.h" //MSqlPolicyInspector |
23 #include "SqlSrvSecurityMap.h" // |
23 #include "SqlSrvSecurityMap.h" // |
24 #include "SqlSrvDriveSpace.h" //RSqlDriveSpaceCol |
24 #include "SqlSrvDriveSpace.h" //RSqlDriveSpaceCol |
25 #include "SqlSrvBurInterface.h" //MSqlSrvBurInterface |
25 #include "SqlSrvBurInterface.h" //MSqlSrvBurInterface |
88 CSqlServer(); |
88 CSqlServer(); |
89 void ConstructL(); |
89 void ConstructL(); |
90 void GetCollationDllNameL(); |
90 void GetCollationDllNameL(); |
91 void CacheDbConfigFileNamesL(RFs& aFs, const TDesC& aServerPrivatePath); |
91 void CacheDbConfigFileNamesL(RFs& aFs, const TDesC& aServerPrivatePath); |
92 TInt ReAllocBuf(TInt aNewBufSize); |
92 TInt ReAllocBuf(TInt aNewBufSize); |
93 void DeleteTempFilesL(TInt aDriveNumber, const TDesC& aServerPrivatePath)const; |
93 void DeleteTempFilesL(TInt aDriveNumber, const TDesC& aServerPrivatePath) const; |
94 |
94 |
95 private: |
95 private: |
96 TSqlSrvFileData iFileData; //Used as a temporary storage for file data (file name, drive, path, secure uid) |
96 TSqlSrvFileData iFileData; //Used as a temporary storage for file data (file name, drive, path, secure uid) |
97 RSqlSecurityMap iSecurityMap; //Collection of database security policies |
97 RSqlSecurityMap iSecurityMap; //Collection of database security policies |
98 RSqlDriveSpaceCol iDriveSpaceCol; //Collection of "drive space" objects (reserved drive space management) |
98 RSqlDriveSpaceCol iDriveSpaceCol; //Collection of "drive space" objects (reserved drive space management) |
161 @return A reference to the compactor. |
161 @return A reference to the compactor. |
162 @panic SqlDb 7 In _DEBUG mode if the compactor is NULL. |
162 @panic SqlDb 7 In _DEBUG mode if the compactor is NULL. |
163 */ |
163 */ |
164 inline CSqlCompactor& CSqlServer::Compactor() |
164 inline CSqlCompactor& CSqlServer::Compactor() |
165 { |
165 { |
166 __SQLASSERT(iCompactor != NULL, ESqlPanicInternalError); |
166 __ASSERT_DEBUG(iCompactor != NULL, __SQLPANIC(ESqlPanicInternalError)); |
167 return *iCompactor; |
167 return *iCompactor; |
168 } |
168 } |
169 |
169 |
170 #endif//__SQLSRVMAIN_H__ |
170 #endif//__SQLSRVMAIN_H__ |