wapstack/wapmessageapi/sws/WapFullySpecCLWSP.h
branchRCL_3
changeset 18 50bae5c5c85f
equal deleted inserted replaced
17:3f227a47ad75 18:50bae5c5c85f
       
     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 __CSWSWAPFULLYSPECCLWSPSERVICE_H__
       
    17 #define __CSWSWAPFULLYSPECCLWSPSERVICE_H__
       
    18 
       
    19 // Include definitions of ECOM interfaces for the WAP Messaging API
       
    20 #include <wapmessage.h>
       
    21 #include "WapMessageApiAgent.h"
       
    22 
       
    23 class CSWSWapFullySpecCLWSPService : public CWapFullySpecCLWSPService
       
    24 /** 
       
    25 The WAP Messaging API, SWS WAP Stack binding. Implementation of Fully-Specified Connectionless WSP API
       
    26 @internalComponent
       
    27 @released
       
    28 @since v8.0
       
    29 */
       
    30 {
       
    31 public:
       
    32 	static CSWSWapFullySpecCLWSPService* NewL();
       
    33 	virtual ~CSWSWapFullySpecCLWSPService();
       
    34 public:
       
    35 	virtual TInt Connect(const TDesC8& aRemoteHost, Wap::TPort aRemotePort, Wap::TBearer aBearer, TBool aSecure);
       
    36 	virtual TInt MethodInvoke(TUint aMethod, const TDesC& aURI, const TDesC8& aReqHeaders, const TDesC8& aReqBody, TUint8 aTransactionId);
       
    37 	virtual TInt MethodResult(TDes8& aReqHeaders, TDes8& aReqBody, TPckgBuf<TUint8>& aTransactionIdPckg, TWSPStatus& aWspStatus, TRequestStatus& aReqStatus, TUint32 aTimeout);
       
    38 	virtual void CancelReq();
       
    39 	virtual TInt GetLocalPort(Wap::TPort& aPort);
       
    40 	virtual TInt GetLocalAddress(HBufC8*& aLocalHost);
       
    41 protected:
       
    42 	CSWSWapFullySpecCLWSPService();
       
    43 	void ConstructL();
       
    44 private:
       
    45 	/**
       
    46 	the agent instance which actually handles wsp PDU.
       
    47 	*/
       
    48 	CWspMessageApiAgent* iAgent;
       
    49 };
       
    50 
       
    51 #endif //__CSWSWAPFULLYSPECCLWSPSERVICE_H__