diff -r 17af172ffa5f -r 630d2f34d719 wapstack/wapmessageapi/sws/WapMsgUtils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wapstack/wapmessageapi/sws/WapMsgUtils.h Tue Aug 31 16:23:08 2010 +0300 @@ -0,0 +1,50 @@ +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Utilities +// +// + +#ifndef __CSWSWAPMSGUTILS_H__ +#define __CSWSWAPMSGUTILS_H__ + +#include +#include +#include +#include + +const TInt KWapStackMaxDatagramSize = 4000; +const TInt KWapStackNorminalDatagramSize = 4000; + + + +class CSWSWapMsgUtils : public CBase +/** +Provide a set of static function which to be used by SWS. Contains the functions to build a +specific socket address from given parameters, analyse a specific socket address, and to +determine the SMS bearer type, GSM. +@internalComponent +@released +@since v8.0 +*/ + { +public: + // Returns the current local address, a null pointer must be passed in, buffer ownership is given to the client + static TInt GetLocalAddress(HBufC8*& aLocalHost); + static void BuildAddrL(TSockAddr& aAddr, Wap::TBearer aBearer, const TDesC8& aRemoteHost, Wap::TPort aRemotePort); + static void AnalyseAddrL(TSockAddr& aAddr, Wap::TBearer aBearer, TDes8& aRemoteHost, Wap::TPort& aRemotePort); + + }; + +#endif //__CSWSWAPMSGUTILS_H__ +