|
1 // Copyright (c) 2006-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 /** |
|
17 @internalComponent |
|
18 */ |
|
19 |
|
20 |
|
21 #include "tptpipinitfailed.h" |
|
22 #include "ptpipdatatypes.h" |
|
23 // Dataset element metadata. |
|
24 const TPTPIPInitFailed::TElementInfo TPTPIPInitFailed::iElementMetaData[ENumElements] = |
|
25 { |
|
26 {EMTPTypeUINT32, 0, KMTPTypeUINT32Size}, // EbmRequestType |
|
27 {EMTPTypeUINT32, 4, KMTPTypeUINT32Size}, // EbRequest |
|
28 {EMTPTypeUINT32, 8, KMTPTypeUINT32Size}, // EwValue |
|
29 }; |
|
30 |
|
31 /** |
|
32 Constructor |
|
33 */ |
|
34 EXPORT_C TPTPIPInitFailed::TPTPIPInitFailed() : |
|
35 iElementInfo(iElementMetaData, ENumElements), |
|
36 iBuffer(KSize) |
|
37 { |
|
38 SetBuffer(iBuffer); |
|
39 } |
|
40 |
|
41 EXPORT_C TUint TPTPIPInitFailed::Type() const |
|
42 { |
|
43 return EPTPIPTypeInitFail; |
|
44 } |
|
45 |
|
46 EXPORT_C const TMTPTypeFlatBase::TElementInfo& TPTPIPInitFailed::ElementInfo(TInt aElementId) const |
|
47 { |
|
48 __ASSERT_DEBUG((aElementId < ENumElements), User::Invariant()); |
|
49 return iElementInfo[aElementId]; |
|
50 } |
|
51 |