|
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 CSTSCARDAPPMANAGER_H |
|
20 #define CSTSCARDAPPMANAGER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 namespace java |
|
26 { |
|
27 namespace satsa |
|
28 { |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CSTSApduExchanger; |
|
32 class CSTSSelectFile; |
|
33 class CSTSRespApdu; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 /** |
|
37 * Handels the card application selection related operations. |
|
38 * Used for selecting and deselecting card applications. |
|
39 * |
|
40 * @since 3.0 |
|
41 */ |
|
42 |
|
43 NONSHARABLE_CLASS(CSTSCardAppManager): public CBase |
|
44 { |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 */ |
|
50 static CSTSCardAppManager* NewL(CSTSApduExchanger* aApduExchanger, |
|
51 const TDesC8& aAID); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CSTSCardAppManager(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 /** |
|
61 * Selects card application. |
|
62 * @since 3.0 |
|
63 * @return Error code. KErrNone, if no problems occured. |
|
64 */ |
|
65 TInt SelectApplication(); |
|
66 |
|
67 /** |
|
68 * Deselects card application. |
|
69 * @since 3.0 |
|
70 * @return Error code. KErrNone, if no problems occured. |
|
71 */ |
|
72 TInt DeselectApplication(); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 */ |
|
79 CSTSCardAppManager(CSTSApduExchanger* aApduExchanger); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL(const TDesC8& aAID); |
|
85 |
|
86 TInt DoExchange(); |
|
87 |
|
88 private: // Data |
|
89 //for sending apdus, not owned |
|
90 CSTSApduExchanger* iApduExchanger; |
|
91 CSTSSelectFile* iSelectFileApdu; //owned |
|
92 CSTSRespApdu* iRespApdu;//owned |
|
93 |
|
94 }; |
|
95 |
|
96 } // namespace satsa |
|
97 } // namespace java |
|
98 #endif // CSTSCARDAPPMANAGER_H |
|
99 // End of File |