1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 // Publich access to the WapPorts and the WapAddresses - this file is exported
25 Gets the WAP port number.
27 @return WAP port number
32 inline TWapPortNumber TWapAddr::WapPort() const
34 return TWapPortNumber(Port());
39 * Sets the wap port number.
41 * @param aPort WAP port number
45 inline void TWapAddr::SetWapPort(TWapPortNumber aPort)
47 SetPort(TUint(aPort));
52 * Sets the WAP port address.
54 * @param aTel WAP address.
58 inline void TWapAddr::SetWapAddress(const TDesC8& aTel)
60 Mem::Copy(UserPtr(),aTel.Ptr(),aTel.Length()<EMaxWapAddressLength ? aTel.Length() : EMaxWapAddressLength);
61 SetUserLen(aTel.Length());
66 * Gets the WAP address.
72 inline TPtrC8 TWapAddr::WapAddress() const
74 return TPtrC8(UserPtr(),CONST_CAST(TWapAddr*,this)->GetUserLen());
79 * Comparison operator.
81 * @param aAddr Object to compare.
82 * @return True if the object value's are equal.
86 inline TBool TWapAddr::operator==(const TWapAddr& aAddr) const
88 if (WapPort()==aAddr.WapPort())