equal
deleted
inserted
replaced
|
1 // Copyright (c) 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 HCIINIFILE_H |
|
17 #define HCIINIFILE_H |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 /** |
|
27 Defines an interface to access the ini data file |
|
28 */ |
|
29 NONSHARABLE_CLASS(CIniFileData) : public CBase |
|
30 { |
|
31 public: |
|
32 // Constructor, pass in name of ini file to open |
|
33 // Default search path is '\private\101F7989\Bluetooth' |
|
34 // on target filesystem ie. |
|
35 // 'NewL(_L("ttools.ini"))' is equivalent to |
|
36 // 'NewL(_L("\\private\\101F7989\\Bluetooth\\ttools.ini"))' |
|
37 // with drives searched in standard F32 order. |
|
38 static CIniFileData* NewL(const TDesC& aName); |
|
39 virtual ~CIniFileData(); |
|
40 TBool FindVar(const TDesC &aSectName,const TDesC &aKeyName,TPtrC &aResult); |
|
41 |
|
42 private: |
|
43 CIniFileData(); |
|
44 void ConstructL(const TDesC& aName); |
|
45 |
|
46 private: |
|
47 HBufC* iName; |
|
48 HBufC* iToken; |
|
49 TPtr iPtr; |
|
50 }; |
|
51 |
|
52 #endif // HCIINIFILE_H |