#include <mw/ipaddr.h>
class CIpAddress : public CBase |
Public Member Functions | |
---|---|
~CIpAddress() | |
IMPORT_C const TDesC & | Addr() |
IMPORT_C CIpAddress * | NewL(const TDesC &) |
CIpAddress * | NewL() |
IMPORT_C CIpAddress * | NewLC(const TDesC &) |
CIpAddress * | NewLC() |
IMPORT_C void | SetAddrL(const TDesC &) |
Utility class to hold an IP address as a string on the heap.
This can be useful for parsers that have IP address fields.
IMPORT_C CIpAddress * | NewL | ( | const TDesC & | aAddr | ) | [static] |
Allocates and constructs a new IP address object with a specified address.
A buffer is allocated on the heap and aAddr copied into it.
Parameter | Description |
---|---|
aAddr | IP address string |
Returns: New IP address object
CIpAddress * | NewL | ( | ) | [static, inline] |
Allocates and constructs a new empty IP address object.
Returns: New IP address object
IMPORT_C CIpAddress * | NewLC | ( | const TDesC & | aAddr | ) | [static] |
Allocates and constructs a new IP address object with a specified address, leaving the object on the cleanup stack.
A buffer is allocated on the heap and aAddr copied into it.
Parameter | Description |
---|---|
aAddr | IP address string |
Returns: New IP address object
CIpAddress * | NewLC | ( | ) | [static, inline] |
Allocates and constructs a new empty IP address object, leaving the object on the cleanup stack.
Returns: New IP address object
IMPORT_C void | SetAddrL | ( | const TDesC & | aAddr | ) |
Sets the IP address.
A buffer is allocated on the heap and aAddr copied into it.
Parameter | Description |
---|---|
aAddr | IP address string |