equal
deleted
inserted
replaced
|
1 // Copyright (c) 2000-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 __MSVTESTCONFIG_H__ |
|
17 #define __MSVTESTCONFIG_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <f32file.h> |
|
21 |
|
22 const TInt KConfigSelectionGranularity = 8; |
|
23 |
|
24 class TMsvConfigEntry |
|
25 { |
|
26 public: |
|
27 IMPORT_C TInt Set(const TDesC& aLine); |
|
28 IMPORT_C TVersion Version() const; |
|
29 IMPORT_C TInt Int() const; |
|
30 // |
|
31 inline const TDesC& Name() const; |
|
32 inline const TDesC& String() const; |
|
33 inline TUid Uid() const; |
|
34 // |
|
35 private: |
|
36 TInt Find(const TDesC& aString, const TDesC& aFind); |
|
37 TInt Int(TPtrC aPtr) const; |
|
38 // |
|
39 TBuf<128> iName; |
|
40 TBuf<128> iValue; |
|
41 }; |
|
42 |
|
43 class CMsvConfigEntrySelection : public CArrayFixFlat<TMsvConfigEntry> |
|
44 { |
|
45 public: |
|
46 IMPORT_C static CMsvConfigEntrySelection* NewL(RFs& aFs, const TDesC& aFileName); |
|
47 IMPORT_C TInt FindPos(const TDesC& aName) const; |
|
48 IMPORT_C const TMsvConfigEntry* Find(const TDesC& aName) const; |
|
49 // |
|
50 private: |
|
51 CMsvConfigEntrySelection(); |
|
52 }; |
|
53 |
|
54 #include <msvtestconfig.inl> |
|
55 |
|
56 #endif |