|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSTSAPDUMASKPERMISSION_H |
|
20 #define CSTSAPDUMASKPERMISSION_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cstsasn1sequence.h" |
|
24 |
|
25 namespace java |
|
26 { |
|
27 namespace satsa |
|
28 { |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * APDUMaskPermission type module |
|
33 * |
|
34 * APDUMaskPermission ::= SEQUENCE { |
|
35 * apduHeader APDUHeader, |
|
36 * mask APDUMask |
|
37 * } |
|
38 * APDUHeader ::= OCTET STRING (SIZE(4)) |
|
39 * APDUMask ::= OCTET STRING (SIZE(4)) |
|
40 * |
|
41 * @since 3.0 |
|
42 */ |
|
43 NONSHARABLE_CLASS(CSTSAPDUMaskPermission): public CSTSASN1Sequence |
|
44 { |
|
45 public: // Constructors and destructor |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CSTSAPDUMaskPermission* NewLC(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CSTSAPDUMaskPermission(); |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * Getter for apdu mask |
|
60 * @since 3.0 |
|
61 * @return apdu mask in TDesC reference |
|
62 */ |
|
63 const TDesC8& ApduMask() const; |
|
64 |
|
65 /** |
|
66 * Getter for apdu header |
|
67 * @since 3.0 |
|
68 * @return apdu header in TDesC reference |
|
69 */ |
|
70 const TDesC8& ApduHeader() const; |
|
71 |
|
72 public: // Functions from base classes |
|
73 |
|
74 /** |
|
75 * From MSTSASN1Module |
|
76 * @since 3.0 |
|
77 * @param aRawData raw-data to be parsed in this instance |
|
78 */ |
|
79 void DecodeL(const TDesC8& aRawData); |
|
80 |
|
81 protected: // New functions |
|
82 |
|
83 /** |
|
84 * Protected construction to allow derivation |
|
85 */ |
|
86 void ConstructL(); |
|
87 |
|
88 /** |
|
89 * C++ default constructor. |
|
90 */ |
|
91 CSTSAPDUMaskPermission(); |
|
92 |
|
93 protected: // Data |
|
94 // ApduMask, owned |
|
95 HBufC8* iApduMask; |
|
96 // ApduHeader, owned |
|
97 HBufC8* iApduHeader; |
|
98 |
|
99 }; |
|
100 |
|
101 } // namespace satsa |
|
102 } // namespace java |
|
103 #endif // CSTSAPDUMASKPERMISSION_H |
|
104 // End of File |
|
105 |