First public contribution.
1 // Copyright (c) 2010 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef T_SQLCMDLINEUTIL_H
17 #define T_SQLCMDLINEUTIL_H
31 inline TCmdLineParams(TDbEncoding aDefaultEncoding = EDbUtf16,
32 TInt aDefaultPageSize = 1024,
33 TInt aDefaultCacheSize = 1000) :
34 iDefaultEncoding(aDefaultEncoding),
35 iDefaultPageSize(aDefaultPageSize),
36 iDefaultCacheSize(aDefaultCacheSize)
41 inline void SetDefaults()
43 iDbEncoding = iDefaultEncoding;
44 iPageSize = iDefaultPageSize;
45 iCacheSize = iDefaultCacheSize;
46 iDriveName.Copy(_L("c:"));
50 const TDbEncoding iDefaultEncoding;
51 const TInt iDefaultPageSize;
52 const TInt iDefaultCacheSize;
54 TDbEncoding iDbEncoding;
57 TDriveName iDriveName;
58 TInt iSoftHeapLimitKb;
61 void GetCmdLineParamsAndSqlConfigString(RTest& aTest, const TDesC& aTestName, TCmdLineParams& aCmdLineParams, TDes8& aConfigStr);
62 void PrepareDbName(const TDesC& aDeafultDbName, const TDriveName& aDriveName, TDes& aDbName);
63 void SetSoftHeapLimit(TInt aSoftHeapLimit);
64 void ResetSoftHeapLimit();
66 #endif//T_SQLCMDLINEUTIL_H