equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 "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: This interface is for getting metadata from a media. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "cmmametadatacontrol.h" |
|
21 |
|
22 |
|
23 _LIT(KControlName, "MetaDataControl"); |
|
24 |
|
25 |
|
26 CMMAMetaDataControl::CMMAMetaDataControl() |
|
27 { |
|
28 // Nothing, OK. |
|
29 } |
|
30 |
|
31 void CMMAMetaDataControl::StaticKeysCountL(CMMAMetaDataControl* aMetaDataControl, TInt *aCount) |
|
32 { |
|
33 *aCount = aMetaDataControl->KeyCountL(); |
|
34 } |
|
35 |
|
36 void CMMAMetaDataControl::StaticKeyL(CMMAMetaDataControl* aMetaDataControl, HBufC** aKey, TInt aIndex) |
|
37 { |
|
38 *aKey = aMetaDataControl->KeyL(aIndex); |
|
39 } |
|
40 |
|
41 void CMMAMetaDataControl::StaticKeyValueL( |
|
42 CMMAMetaDataControl* aMetaDataControl, |
|
43 HBufC** aValue, |
|
44 TDesC* aKey) |
|
45 { |
|
46 /* Just pass the call through to the real implementation. The ownership of the returned data |
|
47 * is received from the implementation and passed to the caller as well. |
|
48 * |
|
49 */ |
|
50 *aValue = aMetaDataControl->KeyValueL(*aKey); |
|
51 } |
|
52 |
|
53 const TDesC& CMMAMetaDataControl::ClassName() const |
|
54 { |
|
55 return KControlName; |
|
56 } |
|
57 |
|
58 // END OF FILE |