equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "CAliasAddress.h" |
|
17 |
|
18 CAliasAddress* CAliasAddress::NewL(TWspBearer aBearer, TUint16 aPort, const TDesC8& aAddress) |
|
19 { |
|
20 CAliasAddress* self = new (ELeave) CAliasAddress(aBearer, aPort); |
|
21 CleanupStack::PushL(self); |
|
22 self->ConstructL(aAddress); |
|
23 CleanupStack::Pop(self); |
|
24 return self; |
|
25 } |
|
26 |
|
27 CAliasAddress::~CAliasAddress() |
|
28 { |
|
29 delete iAddress; |
|
30 } |
|
31 |
|
32 CAliasAddress::CAliasAddress(TWspBearer aBearer, TUint16 aPort) |
|
33 : CBase(), iBearer(aBearer), iPort(aPort) |
|
34 { |
|
35 } |
|
36 |
|
37 void CAliasAddress::ConstructL(const TDesC8& aAddress) |
|
38 { |
|
39 iAddress = aAddress.AllocL(); |
|
40 } |