sapi_mediamanagement/tsrc/dev/tmediamgmttest/src/mglinkfile.cpp
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     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 
       
    20 #include <mclfitem.h>
       
    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