|
1 /* |
|
2 * ============================================================================== |
|
3 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 * ============================================================================== |
|
18 */ |
|
19 |
|
20 #include "Luid.h" |
|
21 #include "OstTraceDefinitions.h" |
|
22 #ifdef OST_TRACE_COMPILER_IN_USE |
|
23 #include "LuidTraces.h" |
|
24 #endif |
|
25 |
|
26 |
|
27 // ======== LOCAL FUNCTIONS ========= |
|
28 |
|
29 // ======== MEMBER FUNCTIONS ======== |
|
30 |
|
31 //------------------------------------------------------------------------------ |
|
32 // TLuid::TLuid() |
|
33 //------------------------------------------------------------------------------ |
|
34 TLuid::TLuid() |
|
35 { |
|
36 |
|
37 } |
|
38 |
|
39 //------------------------------------------------------------------------------ |
|
40 // TLuid::TLuid() |
|
41 //------------------------------------------------------------------------------ |
|
42 TLuid::TLuid( const TDesC8& aName, const TUint32 aCmId ) |
|
43 { |
|
44 OstTraceExt2( TRACE_NORMAL, TLUID_TLUID, "ENTRY: TLuid::TLuid;aName=%s;aCmId=%u", aName, aCmId ); |
|
45 |
|
46 iName = aName; |
|
47 iCmId = aCmId; |
|
48 } |
|
49 |
|
50 //------------------------------------------------------------------------------ |
|
51 // TLuid::Equals() |
|
52 //------------------------------------------------------------------------------ |
|
53 TBool TLuid::Equals( TUint32 aId ) const |
|
54 { |
|
55 OstTraceFunctionEntry1( TLUID_EQUALS_ENTRY, this ); |
|
56 if ( aId == iCmId) |
|
57 { |
|
58 OstTraceFunctionExitExt( TLUID_EQUALS_EXIT, this, ETrue ); |
|
59 return ETrue; |
|
60 } |
|
61 else |
|
62 { |
|
63 OstTraceFunctionExitExt( DUP1_TLUID_EQUALS_EXIT, this, EFalse ); |
|
64 return EFalse; |
|
65 } |
|
66 } |
|
67 |
|
68 //------------------------------------------------------------------------------ |
|
69 // TLuid::GetCmId() |
|
70 //------------------------------------------------------------------------------ |
|
71 TUint32 TLuid::GetCmId() |
|
72 { |
|
73 OstTrace1( TRACE_NORMAL, TLUID_GETCMID, "TLuid::GetCmId;iCmId=%u", iCmId ); |
|
74 |
|
75 return iCmId; |
|
76 } |
|
77 |
|
78 // ======== GLOBAL FUNCTIONS ======== |