|
1 /* |
|
2 * Copyright (c) 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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOGSEVENTPARSER_H |
|
19 #define LOGSEVENTPARSER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 #include <logwrap.h> |
|
24 |
|
25 // FORWARD DECLARATION |
|
26 class CPhCltEmergencyCall; |
|
27 class LogsEventData; |
|
28 class LogsEventStrings; |
|
29 class LogsEvent; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * |
|
35 */ |
|
36 class LogsEventParser |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Parses the event and fills parsed data to given dest event. |
|
42 * Event state and view status are updated automatically at |
|
43 * this phase. |
|
44 * @param source, source event |
|
45 * @param dest, destination event |
|
46 * @param strings, list of strings used for comparison |
|
47 */ |
|
48 static void parseL( const CLogEvent& source, |
|
49 LogsEvent& dest, |
|
50 const LogsEventStrings& strings ); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * Resolve event type based on available information. |
|
56 */ |
|
57 static void resolveEventType(LogsEvent& dest); |
|
58 |
|
59 static void eventTypeSpecificParsing(LogsEvent& dest); |
|
60 |
|
61 static bool isUnknownRemoteParty(LogsEvent& dest, const QString& remoteParty); |
|
62 |
|
63 private: // Testing related friend class definitions |
|
64 |
|
65 friend class UT_LogsEventParser; |
|
66 }; |
|
67 |
|
68 #endif // LOGSEVENTPARSER_H |
|
69 |
|
70 // End of File |