author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 24 Nov 2009 08:56:33 +0200 | |
changeset 33 | 50974a8b132e |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* |
2 |
* Copyright (c) 2007-2007 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 the License "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: Contains functionality specific to link files |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
20 |
#include <MCLFItem.h> |
19 | 21 |
#include <e32base.h> |
22 |
#include <liwvariant.h> |
|
23 |
||
24 |
#include "mglinkfile.h" |
|
25 |
||
26 |
||
27 |
_LIT8( KMgLinkFirstURL, "LinkFirstURL" ); |
|
28 |
||
29 |
// --------------------------------------------------------------------------- |
|
30 |
// CMgLinkFile::NewL |
|
31 |
// Two-phased constructor |
|
32 |
// --------------------------------------------------------------------------- |
|
33 |
// |
|
34 |
||
35 |
CMgLinkFile* CMgLinkFile::NewL() |
|
36 |
{ |
|
37 |
CMgLinkFile* self = new( ELeave ) CMgLinkFile(); |
|
38 |
return self; |
|
39 |
} |
|
40 |
||
41 |
||
42 |
// --------------------------------------------------------------------------- |
|
43 |
// CMgLinkFile::FillInfo |
|
44 |
// Fills the attributes specific to link files |
|
45 |
// --------------------------------------------------------------------------- |
|
46 |
// |
|
47 |
void CMgLinkFile::FillInfo( CLiwDefaultMap *aOutputMap, const MCLFItem& aClfItem ) |
|
48 |
{ |
|
49 |
TPtrC firstUrl; // url of the link file |
|
50 |
FillCommonAttributes( aOutputMap, aClfItem ); |
|
51 |
if( aClfItem.GetField( ECLFFieldIdRamLinkFirstURL, firstUrl ) != KErrNone ) |
|
52 |
{ |
|
53 |
firstUrl.Set( KNullDesC ); |
|
54 |
} |
|
55 |
aOutputMap->InsertL(KMgLinkFirstURL,TLiwVariant( firstUrl ) ); |
|
56 |
} |
|
57 |
||
58 |
||
59 |
||
60 |
||
61 |
||
62 |
||
63 |
||
64 |
||
65 |
||
66 |