|
1 /* |
|
2 * Copyright (c) 2007 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: Encapsulates log event information |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "tlogseventinfo.h" |
|
22 #include "logsextconsts.h" |
|
23 #include "simpledebug.h" |
|
24 |
|
25 // ---------------------------------------------------------------------------- |
|
26 // TLogsEventInfo::TLogsEventInfo |
|
27 // ---------------------------------------------------------------------------- |
|
28 // |
|
29 TLogsEventInfo::TLogsEventInfo() : |
|
30 iServiceId( 0 ), |
|
31 iBrandingIconIndex( KInitialIndexValue ) |
|
32 { |
|
33 } |
|
34 |
|
35 |
|
36 // ---------------------------------------------------------------------------- |
|
37 // TLogsEventInfo::TLogsEventInfo |
|
38 // ---------------------------------------------------------------------------- |
|
39 // |
|
40 TLogsEventInfo::TLogsEventInfo( TUint32 aServiceId ) : |
|
41 iServiceId( aServiceId ), |
|
42 iBrandingIconIndex( KInitialIndexValue ) |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 // ---------------------------------------------------------------------------- |
|
48 // TLogsEventInfo::SetBrandingIconIndex |
|
49 // ---------------------------------------------------------------------------- |
|
50 // |
|
51 void TLogsEventInfo::SetBrandingIconIndex( TInt aBrandingIconIndex ) |
|
52 { |
|
53 _LOGP("TLogsEventInfo::SetBrandingIconIndex =%d", |
|
54 aBrandingIconIndex ) |
|
55 iBrandingIconIndex = aBrandingIconIndex; |
|
56 _LOG("TLogsEventInfo::SetBrandingIconIndex end" ) |
|
57 } |
|
58 |
|
59 // ---------------------------------------------------------------------------- |
|
60 // TLogsEventInfo::ServiceId |
|
61 // ---------------------------------------------------------------------------- |
|
62 // |
|
63 TUint32 TLogsEventInfo::ServiceId() |
|
64 { |
|
65 _LOGP("TLogsEventInfo::ServiceId() serviceid=%d", iServiceId ) |
|
66 return iServiceId; |
|
67 } |
|
68 |
|
69 |
|
70 // ---------------------------------------------------------------------------- |
|
71 // TLogsEventInfo::BrandingIconIndex |
|
72 // ---------------------------------------------------------------------------- |
|
73 // |
|
74 TInt TLogsEventInfo::BrandingIconIndex() |
|
75 { |
|
76 _LOGP("TLogsEventInfo::BrandingIconIndex() =%d" , |
|
77 iBrandingIconIndex ) |
|
78 return iBrandingIconIndex; |
|
79 } |
|
80 |