Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
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 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.
21 /** Size of CIpAddress buffer. */
22 const TInt KIpAddressSize = 39; // large enough for full IPv6 address = 39 (8 * 4 + 7)
24 class CIpAddress : public CBase
25 /** Utility class to hold an IP address as a string on the heap.
27 This can be useful for parsers that have IP address fields.
33 IMPORT_C static CIpAddress* NewL(const TDesC& aAddr);
34 IMPORT_C static CIpAddress* NewLC(const TDesC& aAddr);
35 inline static CIpAddress* NewL();
36 inline static CIpAddress* NewLC();
37 IMPORT_C ~CIpAddress();
38 IMPORT_C void SetAddrL(const TDesC& aAddr);
39 IMPORT_C const TDesC& Addr() const;
46 inline CIpAddress* CIpAddress::NewL()
47 /** Allocates and constructs a new empty IP address object.
49 @return New IP address object */
51 return NewL(KNullDesC);
54 inline CIpAddress* CIpAddress::NewLC()
55 /** Allocates and constructs a new empty IP address object, leaving the object
58 @return New IP address object */
60 return NewLC(KNullDesC);