1 /* |
|
2 * Copyright (c) 2009 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 #ifndef __HTI__SOAP_HANDLER_INTERFACE_H_ |
|
17 #define __HTI__SOAP_HANDLER_INTERFACE_H_ |
|
18 |
|
19 #include "hticommon.h" |
|
20 |
|
21 class HtiSoapHandlerInterface |
|
22 { |
|
23 public: |
|
24 |
|
25 /** |
|
26 * wait for hti message |
|
27 * Suspend thread until HtiMessage for the loaded plug-in is received |
|
28 * Return true if hti message is received or false if timeout |
|
29 **/ |
|
30 virtual bool WaitForHtiMessage( DWORD timeout ) = 0; |
|
31 virtual bool WaitForHtiMessage( ) = 0; |
|
32 |
|
33 /** |
|
34 * Returns received hti message |
|
35 **/ |
|
36 //virtual HtiMessage* GetReceivedHtiMessage() = 0; |
|
37 virtual int ReceivedHtiMessageBodySize() = 0; |
|
38 virtual void* ReceivedHtiMessageBody() = 0; |
|
39 |
|
40 /** |
|
41 * Send HtiMessage to symbian side |
|
42 **/ |
|
43 virtual void SendHtiMessage( DWORD serviceId, void* body, DWORD len ) = 0; |
|
44 virtual void SendHtiMessage( DWORD serviceId, void* body, DWORD len, BYTE priority ) = 0; |
|
45 |
|
46 //error message |
|
47 virtual bool IsReceivedHtiError()=0; |
|
48 virtual int HtiErrorCode()=0; |
|
49 virtual int HtiServiceErrorCode()=0; |
|
50 virtual char* HtiServiceErrorDerscription()=0; |
|
51 virtual void SendSoapFaultFromReceivedHtiError()=0; |
|
52 }; |
|
53 |
|
54 #endif //__HTI__SOAP_HANDLER_INTERFACE_H_ |
|