|
1 /* |
|
2 * Copyright (c) 2003 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: SWIM APDU Response Header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SWIMAPDURESPHEADER_H |
|
20 #define SWIMAPDURESPHEADER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "SwimReaderConsts.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Services for parse APDU responce header |
|
29 * Used by class CSwimReader |
|
30 * |
|
31 * @lib SwimReader.lib |
|
32 * @since Series60 2.1 |
|
33 */ |
|
34 class TSwimApduRespHeader |
|
35 { |
|
36 |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * C++ default constructor. |
|
41 @ param aData Data |
|
42 */ |
|
43 TSwimApduRespHeader( const TDesC8& aData ); |
|
44 |
|
45 public: // New functions |
|
46 |
|
47 /** |
|
48 * operator= |
|
49 * @param aData Data to be assigned |
|
50 * @return void |
|
51 */ |
|
52 void operator=( const TDesC8& aData ); |
|
53 |
|
54 /** |
|
55 * Return byte in given index |
|
56 * @param aIndex Index of byte |
|
57 * @return TUint8 |
|
58 */ |
|
59 TUint8 AnyByte( TUint8 aIndex ); |
|
60 |
|
61 /** |
|
62 * Copy data |
|
63 * @param aData |
|
64 * @return void |
|
65 */ |
|
66 void Copy( const TDesC8& aData ); |
|
67 |
|
68 /** |
|
69 * Return Data length |
|
70 * @return Data Length |
|
71 */ |
|
72 TUint16 DataLength(); |
|
73 |
|
74 /** |
|
75 * Return Service type byte |
|
76 * @return TUint8 |
|
77 */ |
|
78 TUint8 ServiceType(); |
|
79 |
|
80 /** |
|
81 * Return short data length |
|
82 * @return Lenght |
|
83 */ |
|
84 TUint8 ShortDataLength(); |
|
85 |
|
86 /** |
|
87 * Return Status byte |
|
88 * @return Status byte |
|
89 */ |
|
90 TUint8 Status(); |
|
91 |
|
92 private: //Data |
|
93 // APDU data |
|
94 TBuf8<KMaxApduHeaderLen> iData; |
|
95 }; |
|
96 |
|
97 #endif // SWIMAPDURESPHEADER_H |
|
98 |
|
99 // End of File |