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