|
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 #ifndef _TPTPIPInitEvtAck_H_ |
|
20 #define _TPTPIPInitEvtAck_H_ |
|
21 |
|
22 #include <mtp/tmtptypeflatbase.h> |
|
23 |
|
24 /** |
|
25 Defines the PTP/IP InitAck DataSet. |
|
26 @internalComponent |
|
27 */ |
|
28 class TPTPIPInitEvtAck: public TMTPTypeFlatBase |
|
29 { |
|
30 public: |
|
31 |
|
32 /** |
|
33 PTP/IP Init Ack packet. |
|
34 */ |
|
35 enum TElements |
|
36 { |
|
37 ELength, |
|
38 EType, |
|
39 ENumElements |
|
40 }; |
|
41 |
|
42 public: |
|
43 IMPORT_C TPTPIPInitEvtAck(); |
|
44 |
|
45 public: // From TMTPTypeFlatBase |
|
46 IMPORT_C TUint Type() const; |
|
47 |
|
48 private: // From TMTPTypeFlatBase |
|
49 IMPORT_C const TMTPTypeFlatBase::TElementInfo& ElementInfo(TInt aElementId) const; |
|
50 |
|
51 private: |
|
52 /** |
|
53 The dataset size in bytes. |
|
54 */ |
|
55 static const TInt KSize = 8; |
|
56 |
|
57 /** |
|
58 The dataset element metadata table content. |
|
59 */ |
|
60 static const TMTPTypeFlatBase::TElementInfo iElementMetaData[]; |
|
61 |
|
62 /** |
|
63 The dataset element metadata table. |
|
64 */ |
|
65 const TFixedArray<TElementInfo, ENumElements> iElementInfo; |
|
66 |
|
67 /** |
|
68 The data buffer. |
|
69 */ |
|
70 TBuf8<KSize> iBuffer; |
|
71 }; |
|
72 |
|
73 #endif // _TPTPIPInitEvtAck_H_ |
|
74 |
|
75 |