|
1 /* |
|
2 * Copyright (c) 2006 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <streaminglinkmodel.h> |
|
20 #include "commonuimpengineapiloader.h" |
|
21 |
|
22 // ======== MEMBER FUNCTIONS ======== |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // C++ default constructor can NOT contain any code, that might leave. |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 CCommonUiMPEngineApiLoader::CCommonUiMPEngineApiLoader() |
|
29 { |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // Symbian 2nd phase constructor can leave. |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 void CCommonUiMPEngineApiLoader::ConstructL() |
|
37 { |
|
38 iMPlayerModel = CStreamingLinkModel::NewL(); |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // Two-phased constructor. |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 CCommonUiMPEngineApiLoader* CCommonUiMPEngineApiLoader::NewL() |
|
46 { |
|
47 CCommonUiMPEngineApiLoader* self = |
|
48 new( ELeave ) CCommonUiMPEngineApiLoader(); |
|
49 |
|
50 CleanupStack::PushL( self ); |
|
51 self->ConstructL(); |
|
52 CleanupStack::Pop( self ); |
|
53 |
|
54 return self; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // Destructor |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 CCommonUiMPEngineApiLoader::~CCommonUiMPEngineApiLoader() |
|
62 { |
|
63 delete iMPlayerModel; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // Sets tone for all profiles. |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 TInt CCommonUiMPEngineApiLoader::CreateNewLinkFileL( |
|
71 const TDesC& aFileName, |
|
72 MDesCArray* aLinkArray, |
|
73 TBool aOverWrite ) |
|
74 { |
|
75 return iMPlayerModel->CreateNewLinkFileL( |
|
76 aFileName, |
|
77 aLinkArray, |
|
78 aOverWrite ); |
|
79 } |
|
80 |
|
81 //---------------------------------------------------------------------------- |
|
82 // Launcher gate function |
|
83 //---------------------------------------------------------------------------- |
|
84 EXPORT_C TAny* GateFunction() |
|
85 { |
|
86 CCommonUiMPEngineApiLoader* launcher = NULL; |
|
87 TRAPD( err, launcher = CCommonUiMPEngineApiLoader::NewL() ); |
|
88 if( err != KErrNone ) |
|
89 { |
|
90 return NULL; |
|
91 } |
|
92 |
|
93 return launcher; |
|
94 } |
|
95 |
|
96 // End of File |