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: Factory method for media types
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef __CMGMEDIAITEMFACTORY_H
|
|
20 |
#define __CMGMEDIAITEMFACTORY_H
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
// FORWARD DECLARATIONS
|
|
26 |
class MCLFItem;
|
|
27 |
class CMgMediaItem;
|
|
28 |
|
|
29 |
//CLASS DECLARATION
|
|
30 |
/**
|
|
31 |
* Media Item Factory implementation.
|
|
32 |
* Returns an appropriate instance depending on
|
|
33 |
* the type of a media item
|
|
34 |
*
|
|
35 |
* @since Series60 v3.2
|
|
36 |
*/
|
|
37 |
|
|
38 |
|
|
39 |
NONSHARABLE_CLASS( MgMediaItemFactory )
|
|
40 |
{
|
|
41 |
|
|
42 |
public:
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Returns a reference to a media type depending on the type
|
|
46 |
* of the media item
|
|
47 |
* @param aClfItem A reference to an MCLFItem object
|
|
48 |
* @return An instance of CMgMediaItem
|
|
49 |
*/
|
|
50 |
static CMgMediaItem* GetMediaItemL( const MCLFItem& aClfItem );
|
|
51 |
|
|
52 |
};
|
|
53 |
|
|
54 |
#endif // __CMGMEDIAITEMFACTORY_H
|