applayerpluginsandutils/httpprotocolplugins/WspProtocolHandler/CUnknownCapability.cpp
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 "CUnknownCapability.h" |
|
17 |
|
18 CUnknownCapability* CUnknownCapability::NewL(const TDesC8& aIdentifier, const TDesC8& aValue) |
|
19 { |
|
20 CUnknownCapability* self = new (ELeave) CUnknownCapability(); |
|
21 CleanupStack::PushL(self); |
|
22 self->ConstructL(aIdentifier, aValue); |
|
23 CleanupStack::Pop(self); |
|
24 return self; |
|
25 } |
|
26 |
|
27 CUnknownCapability::~CUnknownCapability() |
|
28 { |
|
29 delete iIdentifier; |
|
30 delete iValue; |
|
31 } |
|
32 |
|
33 CUnknownCapability::CUnknownCapability() |
|
34 : CBase() |
|
35 { |
|
36 } |
|
37 |
|
38 void CUnknownCapability::ConstructL(const TDesC8& aIdentifier, const TDesC8& aValue) |
|
39 { |
|
40 iIdentifier = aIdentifier.AllocL(); |
|
41 iValue = aValue.AllocL(); |
|
42 } |