|
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 CSTSRESPHANDLER_H |
|
20 #define CSTSRESPHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "mstsresphandler.h" |
|
25 #include "cstsapduevent.h" |
|
26 |
|
27 namespace java |
|
28 { |
|
29 namespace satsa |
|
30 { |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Delivers response data and complete notification to java side. |
|
35 * |
|
36 * @since 3.0 |
|
37 */ |
|
38 NONSHARABLE_CLASS(CSTSRespHandler): public MSTSRespHandler, public CBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CSTSRespHandler* NewLC(JNIEnv& aJni, |
|
46 jobject aNotifyObject, |
|
47 jmethodID aHandleEventMethod); |
|
48 |
|
49 static CSTSRespHandler* NewL(JNIEnv& aJni, |
|
50 jobject aNotifyObject, |
|
51 jmethodID aHandleEventMethod); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CSTSRespHandler(); |
|
57 |
|
58 public: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * From MSTSRespHandler |
|
62 * @since 3.0 |
|
63 */ |
|
64 void SetOperationId(TInt aId); |
|
65 |
|
66 /** |
|
67 * From MSTSRespHandler |
|
68 * @since 3.0 |
|
69 */ |
|
70 void OperationComplete(JNIEnv* aJni, jobject aPeer, HBufC8* aResponse, TInt aError); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 */ |
|
77 CSTSRespHandler(); |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 */ |
|
82 void ConstructL(JNIEnv& aJni, |
|
83 jobject aNotifyObject, |
|
84 jmethodID aHandleEventMethod); |
|
85 |
|
86 private: // Data |
|
87 |
|
88 CSTSApduEvent* iApduEvent; //owned |
|
89 |
|
90 }; |
|
91 |
|
92 } // namespace satsa |
|
93 } // namespace java |
|
94 #endif // CSTSRESPHANDLER_H |
|
95 // End of File |