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 "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 // Publich access to the WapPorts and the WapAddresses - this file is exported
22 Gets the WAP port number.
24 @return WAP port number
29 inline TWapPortNumber TWapAddr::WapPort() const
31 return TWapPortNumber(Port());
36 * Sets the wap port number.
38 * @param aPort WAP port number
42 inline void TWapAddr::SetWapPort(TWapPortNumber aPort)
44 SetPort(TUint(aPort));
49 * Sets the WAP port address.
51 * @param aTel WAP address.
55 inline void TWapAddr::SetWapAddress(const TDesC8& aTel)
57 Mem::Copy(UserPtr(),aTel.Ptr(),aTel.Length()<EMaxWapAddressLength ? aTel.Length() : EMaxWapAddressLength);
58 SetUserLen(aTel.Length());
63 * Gets the WAP address.
69 inline TPtrC8 TWapAddr::WapAddress() const
71 return TPtrC8(UserPtr(),const_cast<TWapAddr*>(this)->GetUserLen());
76 * Comparison operator.
78 * @param aAddr Object to compare.
79 * @return True if the object value's are equal.
83 inline TBool TWapAddr::operator==(const TWapAddr& aAddr) const
85 if (WapPort()==aAddr.WapPort())