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