serviceproviders/sapi_mediamanagement/src/mgvideofile.cpp
changeset 5 989d2f495d90
child 23 50974a8b132e
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     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 video files
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <mclfitem.h>
       
    20 #include <e32base.h>
       
    21 #include <liwvariant.h>
       
    22 
       
    23 #include "mgvideofile.h"
       
    24 
       
    25 _LIT8( KMgSongName, "SongName" );
       
    26 _LIT8( KMgArtist, "Artist" );
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CMgVideoFile::NewL
       
    30 // Two-phased constructor
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33  
       
    34 CMgVideoFile* CMgVideoFile::NewL()
       
    35     {
       
    36     return new( ELeave ) CMgVideoFile();
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // CMgVideoFile::FillInfoL
       
    41 // Fills the attributes specific to video files 
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 void CMgVideoFile::FillInfoL( CLiwDefaultMap *aOutputMap, const MCLFItem& aClfItem )
       
    45     {
       
    46     TPtrC artist; //artist of video file
       
    47     TPtrC title; //title of video file
       
    48     
       
    49     FillCommonAttributesL( aOutputMap, aClfItem );
       
    50     
       
    51     aOutputMap->InsertL( KMgArtist,TLiwVariant( artist ) );
       
    52     aOutputMap->InsertL( KMgSongName,TLiwVariant( title ) );
       
    53     
       
    54     }
       
    55 
       
    56 
       
    57 
       
    58 
       
    59 
       
    60 
       
    61 
       
    62