equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Result of getting user selected contact link. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <AiwGenericParam.h> |
|
20 #include "tphcntcontactlinkresult.h" |
|
21 |
|
22 // ======== MEMBER FUNCTIONS ======== |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // Constructor |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 TPhCntContactLinkResult::TPhCntContactLinkResult( |
|
29 HBufC8*& aLink ) : |
|
30 iLink( aLink ) |
|
31 { |
|
32 |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // From class MPhCntServiceResult |
|
37 // Takes the contact link descriptor from AIW result. |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 void TPhCntContactLinkResult::ParseResult( |
|
41 CAiwGenericParamList& aResult ) |
|
42 { |
|
43 TInt index = 0; |
|
44 const TAiwGenericParam* param = |
|
45 aResult.FindFirst( index, EGenericParamContactLinkArray ); |
|
46 if ( param ) |
|
47 { |
|
48 delete iLink; |
|
49 iLink = NULL; |
|
50 iLink = param->Value().AsData().Alloc(); |
|
51 } |
|
52 } |
|
53 |