equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 #include "tptpipinitevtack.h" |
|
21 #include "ptpipdatatypes.h" |
|
22 |
|
23 // Dataset element metadata. |
|
24 const TPTPIPInitEvtAck::TElementInfo TPTPIPInitEvtAck::iElementMetaData[ENumElements] = |
|
25 { |
|
26 {EMTPTypeUINT32, 0, KMTPTypeUINT32Size}, // ELength |
|
27 {EMTPTypeUINT32, 4, KMTPTypeUINT32Size}, // EType |
|
28 }; |
|
29 |
|
30 /** |
|
31 Constructor |
|
32 */ |
|
33 EXPORT_C TPTPIPInitEvtAck::TPTPIPInitEvtAck() : |
|
34 iElementInfo(iElementMetaData, ENumElements), |
|
35 iBuffer(KSize) |
|
36 { |
|
37 SetBuffer(iBuffer); |
|
38 } |
|
39 |
|
40 EXPORT_C TUint TPTPIPInitEvtAck::Type() const |
|
41 { |
|
42 return EPTPIPTypeInitEvtAck ; |
|
43 } |
|
44 |
|
45 EXPORT_C const TMTPTypeFlatBase::TElementInfo& TPTPIPInitEvtAck::ElementInfo(TInt aElementId) const |
|
46 { |
|
47 __ASSERT_DEBUG((aElementId < ENumElements), User::Invariant()); |
|
48 return iElementInfo[aElementId]; |
|
49 } |