equal
deleted
inserted
replaced
|
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 MSTSRESPHANDLER_H |
|
20 #define MSTSRESPHANDLER_H |
|
21 |
|
22 #include <jni.h> |
|
23 |
|
24 namespace java |
|
25 { |
|
26 namespace satsa |
|
27 { |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 //Base class for response handler |
|
32 |
|
33 NONSHARABLE_CLASS(MSTSRespHandler) |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 // Setter for operation id |
|
39 virtual void SetOperationId(TInt aId) = 0; |
|
40 |
|
41 /** |
|
42 * Informs java side, that operation is completed. |
|
43 * @param aResponse Response bytes to be delivered to java side. |
|
44 * Ownership transferred. |
|
45 * @param aError Error code to be delivered to java side |
|
46 */ |
|
47 virtual void OperationComplete(JNIEnv* aJni, jobject aPeer, |
|
48 HBufC8* aResponse, TInt aError) = 0; |
|
49 |
|
50 virtual ~MSTSRespHandler() |
|
51 { |
|
52 } |
|
53 ; |
|
54 |
|
55 } |
|
56 ; |
|
57 |
|
58 } // namespace satsa |
|
59 } // namespace java |
|
60 #endif // MSTSRESPHANDLER_H |
|
61 // End of File |