5
|
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 |
#include <mclfitem.h>
|
|
20 |
#include <e32base.h>
|
|
21 |
#include <liwvariant.h>
|
|
22 |
|
|
23 |
#include "mglinkfile.h"
|
|
24 |
|
|
25 |
|
|
26 |
_LIT8( KMgLinkFirstURL, "LinkFirstURL" );
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
// ---------------------------------------------------------------------------
|
|
31 |
// CMgLinkFile::NewL
|
|
32 |
// Two-phased constructor
|
|
33 |
// ---------------------------------------------------------------------------
|
|
34 |
//
|
|
35 |
|
|
36 |
CMgLinkFile* CMgLinkFile::NewL()
|
|
37 |
{
|
|
38 |
|
|
39 |
return new( ELeave ) CMgLinkFile();
|
|
40 |
|
|
41 |
}
|
|
42 |
|
|
43 |
|
|
44 |
// ---------------------------------------------------------------------------
|
|
45 |
// CMgLinkFile::FillInfoL
|
|
46 |
// Fills the attributes specific to link files
|
|
47 |
// ---------------------------------------------------------------------------
|
|
48 |
//
|
|
49 |
void CMgLinkFile::FillInfoL( CLiwDefaultMap *aOutputMap, const MCLFItem& aClfItem )
|
|
50 |
{
|
|
51 |
TPtrC firstUrl; // url of the link file
|
|
52 |
|
|
53 |
FillCommonAttributesL( aOutputMap, aClfItem );
|
|
54 |
|
|
55 |
if( KErrNone != aClfItem.GetField( ECLFFieldIdRamLinkFirstURL, firstUrl ) )
|
|
56 |
{
|
|
57 |
firstUrl.Set( KNullDesC );
|
|
58 |
}
|
|
59 |
|
|
60 |
aOutputMap->InsertL( KMgLinkFirstURL,TLiwVariant( firstUrl ) );
|
|
61 |
|
|
62 |
}
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|