|
1 /* |
|
2 * Copyright (c) 2009 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: Factory method to create playback utility object |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include"mpxplaybackutilityimpl.h" |
|
20 |
|
21 |
|
22 // ============================== MEMBER FUNCTIONS ============================ |
|
23 |
|
24 // ---------------------------------------------------------------------------- |
|
25 // Create the playback utility object |
|
26 // ---------------------------------------------------------------------------- |
|
27 // |
|
28 EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::NewL(const TUid& aModeId, |
|
29 MMPXPlaybackObserver* aObs) |
|
30 { |
|
31 return CMPXPlaybackUtility::NewL(aModeId,aObs, EMPXCategoryMusic); |
|
32 } |
|
33 |
|
34 // ---------------------------------------------------------------------------- |
|
35 // Create the playback utility object |
|
36 // ---------------------------------------------------------------------------- |
|
37 // |
|
38 |
|
39 EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::NewL(const TMPXCategory aCategory, |
|
40 const TUid& aModeId, |
|
41 MMPXPlaybackObserver* aObs) |
|
42 { |
|
43 return CMPXPlaybackUtility::NewL(aModeId,aObs,aCategory); |
|
44 } |
|
45 |
|
46 // ---------------------------------------------------------------------------- |
|
47 // Creates the playback utility object if not already created |
|
48 // ---------------------------------------------------------------------------- |
|
49 // |
|
50 EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::UtilityL( const TUid& aModeId ) |
|
51 { |
|
52 return CMPXPlaybackUtility::UtilityL( aModeId, EMPXCategoryMusic ); |
|
53 } |
|
54 |
|
55 // ---------------------------------------------------------------------------- |
|
56 // Creates the playback utility object if not already created |
|
57 // ---------------------------------------------------------------------------- |
|
58 // |
|
59 |
|
60 EXPORT_C MMPXPlaybackUtility* MMPXPlaybackUtility::UtilityL(const TMPXCategory aCategory, |
|
61 const TUid& aModeId ) |
|
62 { |
|
63 return CMPXPlaybackUtility::UtilityL( aModeId, aCategory ); |
|
64 } |