equal
deleted
inserted
replaced
|
1 /** |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * This is the header file for CT_MsgUtilsConfigFileParserUtility class |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @file |
|
26 */ |
|
27 |
|
28 |
|
29 |
|
30 #ifndef __T_UTILS_CONFIG_FILE_PARSER_UTILITY_H__ |
|
31 #define __T_UTILS_CONFIG_FILE_PARSER_UTILITY_H__ |
|
32 |
|
33 |
|
34 // epoc includes |
|
35 #include <e32base.h> |
|
36 |
|
37 |
|
38 /** |
|
39 This utility class used to parse a .txt(Email settings) file. |
|
40 */ |
|
41 class CT_MsgUtilsConfigFileParserUtility : public CBase |
|
42 { |
|
43 public: |
|
44 IMPORT_C static CT_MsgUtilsConfigFileParserUtility* NewL(const TDesC& aFileName); |
|
45 ~CT_MsgUtilsConfigFileParserUtility(); |
|
46 |
|
47 IMPORT_C TInt GetFieldAsInteger(const TDesC& aFieldName, TInt& aValue); |
|
48 IMPORT_C TInt GetFieldAsString(const TDesC& aFieldName, TPtrC& aString); |
|
49 IMPORT_C TInt GetFieldAsString8(const TDesC& aFieldName, TPtrC8& aString); |
|
50 |
|
51 private: |
|
52 IMPORT_C CT_MsgUtilsConfigFileParserUtility(); |
|
53 IMPORT_C void ConstructL(const TDesC& aFileName); |
|
54 |
|
55 private: |
|
56 RPointerArray<HBufC> iName; |
|
57 RPointerArray<HBufC> iContent; |
|
58 RPointerArray<HBufC8> iContent8; |
|
59 }; |
|
60 #endif //__T_UTILS_CONFIG_FILE_PARSER_UTILITY_H__ |