wapstack/wapmessageapi/sws/WapFullySpecCLPush.h
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
child 21 4814c5a49428
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     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 __CSWSWAPFULLYSPECCLPUSHSERVICE_H__
       
    17 #define __CSWSWAPFULLYSPECCLPUSHSERVICE_H__
       
    18 
       
    19 // Include definitions of ECOM interfaces for the WAP Messaging API
       
    20 #include <wapmessage.h>
       
    21 #include "WapMessageApiAgent.h"
       
    22 
       
    23 class CSWSWapFullySpecCLPushService : public CWapFullySpecCLPushService
       
    24 /** 
       
    25 The WAP Messaging API, SWS WAP Stack binding. Implementation of the fully-specified connectionless push API.
       
    26 @internalComponent
       
    27 @released
       
    28 @since v8.0
       
    29 */
       
    30 {
       
    31 public:
       
    32 	static CSWSWapFullySpecCLPushService* NewL();
       
    33 	virtual ~CSWSWapFullySpecCLPushService();
       
    34 
       
    35 public:
       
    36 	virtual TInt Connect(const TDesC8& aRemoteHost,
       
    37 					  Wap::TPort aRemotePort,
       
    38 					  Wap::TBearer aBearer,
       
    39 					  TBool aSecure,
       
    40 					  TInetAddr aInetAddr);
       
    41 	virtual TInt Connect(const TDesC8& aRemoteHost,
       
    42 					  Wap::TPort aRemotePort,
       
    43 					  Wap::TBearer aBearer,
       
    44 					  TBool aSecure);
       
    45 	virtual TInt AwaitPush(TDes8& aPushHeaders,
       
    46 						  TDes8& aPushBody,
       
    47 						  TPckgBuf<TUint8>& aPushIdPckg,
       
    48 						  TRequestStatus& aReqStatus);
       
    49 	virtual void CancelAwaitPush();
       
    50 	virtual TInt GetLocalPort(Wap::TPort& aPort);
       
    51 	virtual TInt GetLocalAddress(HBufC8*& aLocalHost);
       
    52 
       
    53 private:
       
    54 	CSWSWapFullySpecCLPushService();
       
    55 	void ConstructL();
       
    56 
       
    57 private:
       
    58 	/**
       
    59 	the agent instance which actually handles wsp PDU.
       
    60 	*/
       
    61 	CWspMessageApiAgent* iAgent;
       
    62 	/**
       
    63 	the wsp status in received wsp PDU.
       
    64 	*/
       
    65 	TWSPStatus iWspStatus;
       
    66 };
       
    67 
       
    68 
       
    69 #endif // __CSWSWAPFULLYSPECCLPUSHSERVICE_H__