|
1 // Copyright (c) 2005-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 __SQLSRVSTARTUP_H__ |
|
17 #define __SQLSRVSTARTUP_H__ |
|
18 |
|
19 #include <e32std.h> //TInt, TVersion |
|
20 |
|
21 //SqlDb server name |
|
22 _LIT(KSqlSrvName, "!SQL Server"); |
|
23 |
|
24 //SQL server image name |
|
25 _LIT(KSqlSrvImg, "SqlSrv"); |
|
26 |
|
27 //SQL server: major version number, minor version number, build number constants. |
|
28 const TInt KSqlMajorVer = 1; |
|
29 const TInt KSqlMinorVer = 1; |
|
30 const TInt KSqlBuildVer = 0; |
|
31 |
|
32 const TUid KSqlSrvUid3 = {0x10281E17};//The same UID is in SqlSrv.mmp file |
|
33 |
|
34 //Stack, Min & Max server heap size |
|
35 const TInt KSqlSrvStackSize = 0x10000; // 64K |
|
36 const TInt KSqlSrvMinHeapSize = 0x1000; // 4K |
|
37 const TInt KSqlSrvMaxHeapSize = 0x400000; // 4M |
|
38 |
|
39 /** |
|
40 @return SQL server version. |
|
41 |
|
42 @internalComponent |
|
43 */ |
|
44 inline TVersion SqlSrvVersion() |
|
45 { |
|
46 return TVersion(KSqlMajorVer, KSqlMinorVer, KSqlBuildVer); |
|
47 } |
|
48 |
|
49 TInt StartSqlServer(); |
|
50 |
|
51 #endif //__SQLSRVSTARTUP_H__ |