44
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef __CSWSWAPBOUNDCLWSPSERVICE_H__
|
|
17 |
#define __CSWSWAPBOUNDCLWSPSERVICE_H__
|
|
18 |
|
|
19 |
// Include definitions of ECOM interfaces for the WAP Messaging API
|
|
20 |
#include <wapmessage.h>
|
|
21 |
#include "ActiveSocket.h"
|
|
22 |
#include "WapMessageApiAgent.h"
|
|
23 |
|
|
24 |
class CSWSWapBoundCLWSPService : public CWapBoundCLWSPService
|
|
25 |
/**
|
|
26 |
The WAP Messaging API, SWS WAP Stack binding. Implementation of the bound Connectionless WSP API.
|
|
27 |
@internalComponent
|
|
28 |
@released
|
|
29 |
@since v8.0
|
|
30 |
*/
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
static CSWSWapBoundCLWSPService* NewL();
|
|
34 |
virtual ~CSWSWapBoundCLWSPService();
|
|
35 |
|
|
36 |
public:
|
|
37 |
|
|
38 |
virtual TInt Connect(Wap::TBearer aBearer,Wap::TPort aPort, TBool aSecure);
|
|
39 |
virtual TInt MethodInvoke(Wap::TBearer aBearer, const TDesC8& aRemoteHost, Wap::TPort aRemotePort, TUint aMethod, const TDesC& aURI, const TDesC8& aReqHeaders, const TDesC8& aReqBody, const TUint8 aTransactionId);
|
|
40 |
virtual TInt MethodResult(TDes8& aReqHeaders, TDes8& aReqBody, TPckgBuf<TUint8>& aTransactionIdPckg, TWSPStatus& aWspStatus, TRequestStatus& aReqStatus, TUint32 aTimeout);
|
|
41 |
virtual void CancelReq();
|
|
42 |
virtual TInt GetLocalPort(Wap::TPort& aPort);
|
|
43 |
virtual TInt GetLocalAddress(HBufC8*& aLocalHost);
|
|
44 |
virtual TInt GetBearer(Wap::TBearer& aBearer);
|
|
45 |
virtual TInt GetServerAddress(HBufC8*& aServerAddress);
|
|
46 |
private:
|
|
47 |
CSWSWapBoundCLWSPService();
|
|
48 |
void ConstructL();
|
|
49 |
|
|
50 |
|
|
51 |
private:
|
|
52 |
/**
|
|
53 |
the agent instance which actually handles wsp PDU.
|
|
54 |
*/
|
|
55 |
CWspMessageApiAgent* iAgent;
|
|
56 |
|
|
57 |
};
|
|
58 |
|
|
59 |
#endif // __CSWSWAPBOUNDCLWSPSERVICE_H__
|