author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 18 Jan 2010 21:02:57 +0200 | |
changeset 27 | 02682e02e51f |
parent 23 | 50974a8b132e |
permissions | -rw-r--r-- |
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 video files |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
23
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
5
diff
changeset
|
19 |
#include <MCLFItem.h> |
5 | 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 |