|
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: Base class for all media types |
|
15 * Responsible for filling parameters common to all media types |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CMGMEDIAITEM_H |
|
21 #define __CMGMEDIAITEM_H |
|
22 |
|
23 class MCLFItem; |
|
24 class CLiwDefaultMap; |
|
25 |
|
26 /** |
|
27 * Base class for all media types |
|
28 * Responsible for filling parameters common to all media types |
|
29 * |
|
30 * @since Series60 v3.2 |
|
31 */ |
|
32 |
|
33 NONSHARABLE_CLASS( CMgMediaItem ) : public CBase |
|
34 { |
|
35 |
|
36 |
|
37 public: |
|
38 |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~CMgMediaItem(){}; |
|
44 |
|
45 /** |
|
46 * This is a pure virtual function, the appropriate version |
|
47 * of FillInfoL gets called depending on the object pointed to |
|
48 * @param aOutputMap contains a list of key-value pairs specific |
|
49 * to a media type |
|
50 * @param aClfItem A reference to the list model item to be processed |
|
51 * @return void |
|
52 */ |
|
53 virtual void FillInfoL( CLiwDefaultMap* aOutputMap, const MCLFItem& aClfItem ) = 0; |
|
54 |
|
55 |
|
56 protected: |
|
57 /** |
|
58 * This function gets the information common to all media types |
|
59 * @param aMediaItemMap a list of key-value pairs common to all |
|
60 * media types |
|
61 * @param aClfItem A reference to the list model item to be processed |
|
62 * @return void |
|
63 */ |
|
64 void FillCommonAttributesL( CLiwDefaultMap* aMediaItemMap, const MCLFItem& aClfItem ); |
|
65 |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // __CMGMEDIAITEM_H |