wapstack/wapmessageapi/sws/WapFullySpecCLWSP.cpp
author Nithin Vijay <nithin.vjay@nokia.com>
Tue, 20 Apr 2010 17:00:49 +0100
branchRCL_3
changeset 18 50bae5c5c85f
permissions -rw-r--r--
Add wapstack/wapmessageapi component, to fix Bug 1398
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     1
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     7
//
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    10
//
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    11
// Contributors:
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    12
//
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    13
// Description:
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    14
//
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    15
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    16
#include "WapFullySpecCLWSP.h"
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    17
#include "WapMsgUtils.h"
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    18
#include "CLWSPPduHandler.h"
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    19
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    20
CSWSWapFullySpecCLWSPService* CSWSWapFullySpecCLWSPService::NewL()
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    21
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    22
Static new function
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    23
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    24
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    25
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    26
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    27
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    28
	CSWSWapFullySpecCLWSPService* me = new(ELeave)CSWSWapFullySpecCLWSPService();
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    29
	CleanupStack::PushL(me);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    30
	me->ConstructL();
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    31
	CleanupStack::Pop(me);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    32
	return me;
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    33
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    34
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    35
CSWSWapFullySpecCLWSPService::CSWSWapFullySpecCLWSPService()
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    36
	: CWapFullySpecCLWSPService()
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    37
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    38
Constructor
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    39
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    40
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    41
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    42
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    43
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    44
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    45
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    46
CSWSWapFullySpecCLWSPService::~CSWSWapFullySpecCLWSPService()
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    47
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    48
Destructor
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    49
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    50
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    51
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    52
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    53
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    54
	delete iAgent;
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    55
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    56
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    57
void CSWSWapFullySpecCLWSPService::ConstructL()
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    58
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    59
Second phase constructor
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    60
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    61
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    62
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    63
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    64
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    65
	// Parent class construction
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    66
	CWapFullySpecCLWSPService::ConstructL();
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    67
	iAgent=CWspMessageApiAgent::NewL();
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    68
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    69
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    70
TInt CSWSWapFullySpecCLWSPService::Connect(const TDesC8& aRemoteHost, Wap::TPort aPort, Wap::TBearer aBearer, TBool aSecure)
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    71
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    72
Opens a end-point which is to be used only with a single, named remote host.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    73
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    74
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    75
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    76
@param aRemoteHost the bearer-dependent address of the remote host with which the data will be exchanged
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    77
@param aPort the port on the remote host to which data will be sent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    78
@param aBearer the bearer to use (not EAll)
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    79
@param aSecure security flag indicates whether WTLS will be used or not
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    80
@returns KErrNone on successful completion, or one of the system error codes on failure.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    81
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    82
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    83
	if(aSecure) 
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    84
		{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    85
		return KErrNotSupported;
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    86
		}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    87
	return iAgent->Connect(aRemoteHost, aPort, aBearer, aSecure);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    88
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    89
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    90
TInt CSWSWapFullySpecCLWSPService::MethodInvoke(TUint aMethod, const TDesC& aURI, const TDesC8& aReqHeaders, const TDesC8& aReqBody, const TUint8 aTransactionId)
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    91
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    92
A synchronous call to send a method invoke method to the remote host.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    93
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    94
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    95
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    96
@param aMethod (in) the method that will be invoked on server
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    97
@param aURI (in) the uri to build wsp message
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    98
@param aReqHeaders (in) the wsp header to be used to build method invoke message
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
    99
@param aReqBody (in) the wsp body to be used to build method invoke message
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   100
@param aTransactionId (in) the transaction Id of the method invoke message
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   101
@returns KErrNone on successful completion, or one of the system error codes on failure.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   102
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   103
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   104
	return iAgent->SendWspMessage(TWSPPduType(aMethod), aURI, aReqHeaders, aReqBody, aTransactionId);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   105
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   106
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   107
TInt CSWSWapFullySpecCLWSPService::MethodResult(TDes8& aReqHeaders, TDes8& aReqBody, TPckgBuf<TUint8>& aTransactionIdPckg, TWSPStatus& aWspStatus, TRequestStatus& aReqStatus, TUint32 aTimeout)
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   108
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   109
Request an asynchronous notification upon arrival of the method result messages on the listening connection.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   110
The request completes upon receipt of the message, filling the buffers with as much received data as possible.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   111
A return code will indicate whether further data remains.  The call must be re-issued for subsequent messages
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   112
or to receive remaining data from a previous method result message.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   113
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   114
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   115
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   116
@param aReqHeaders (out) (client-allocated) - when a method result message arrives the header data is written here
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   117
@param aReqBody (out) (client-allocated) - when a method result message arrives the body data is written here
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   118
@param aTransactionIdPckg (out) when a method result message arrives an integer ID that uniquely specifies the message is written here
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   119
@param aWspStatus (out) when a method result message arrives, the wsp status is written here.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   120
@param aReqStatus (inout) used by the service provider to notify the client when a method result has arrived
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   121
@param aTimeout (in) an optional millisecond time-out which allows a timed read to be made.  If no data is received 
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   122
within the timeout period the request completes with KErrTimedOut. If a value of 0 is supplied the timeout is infinite.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   123
@returns KErrNone on successful completion, or one of the system error codes on failure.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   124
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   125
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   126
	return iAgent->ReceiveWspMessage(aReqHeaders, aReqBody, aTransactionIdPckg, aWspStatus, aReqStatus, aTimeout);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   127
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   128
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   129
void CSWSWapFullySpecCLWSPService::CancelReq()
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   130
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   131
Cancel a previously-requested method result notification.  If a method result message arrives the client will not be notified.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   132
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   133
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   134
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   135
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   136
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   137
	iAgent->CancelRequest();
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   138
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   139
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   140
TInt CSWSWapFullySpecCLWSPService::GetLocalPort(Wap::TPort& aPort)
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   141
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   142
Get the local port of this endpoint.Useful if one was chosen automatically.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   143
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   144
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   145
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   146
@param aPort (out) the port number
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   147
@returns KErrNone on successful completion, or one of the system error codes on failure.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   148
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   149
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   150
	return iAgent->GetLocalPort(aPort);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   151
	}
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   152
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   153
TInt CSWSWapFullySpecCLWSPService::GetLocalAddress(HBufC8*& aLocalHost)
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   154
/**
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   155
Get the local address of this endpoint.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   156
@internalComponent
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   157
@released
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   158
@since v8.0
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   159
@param aLocalHost (inout) the address of the local host. A reference to a HBufC8 pointer should 
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   160
be passed in. This pointer MUST be null! A HBufC8 will be allocated to hold the address, ownership 
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   161
of this buffer will be passed over to the client.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   162
@returns KErrNone on successful completion, or one of the system error codes on failure.
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   163
*/
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   164
	{
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   165
	return iAgent->GetLocalAddress(aLocalHost);
50bae5c5c85f Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff changeset
   166
	}