equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB |
|
3 * |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of the License "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * EmbedDev AB - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "PodcastDocument.h" |
|
20 #include "PodcastAppui.h" |
|
21 #include "PodcastModel.h" |
|
22 |
|
23 CPodcastDocument::CPodcastDocument( CEikApplication& aApp ) |
|
24 : CAknDocument( aApp ) |
|
25 { |
|
26 } |
|
27 |
|
28 CPodcastDocument::~CPodcastDocument() |
|
29 { |
|
30 delete iPodcastModel; |
|
31 } |
|
32 |
|
33 void CPodcastDocument::ConstructL() |
|
34 { |
|
35 DP("CPodcastDocument::ConstructL BEGIN"); |
|
36 iPodcastModel = CPodcastModel::NewL(); |
|
37 DP("CPodcastDocument::ConstructL END"); |
|
38 } |
|
39 |
|
40 CPodcastDocument* CPodcastDocument::NewL(CEikApplication& aApp ) |
|
41 { |
|
42 CPodcastDocument* self = new (ELeave) CPodcastDocument( aApp ); |
|
43 CleanupStack::PushL( self ); |
|
44 self->ConstructL(); |
|
45 CleanupStack::Pop( self ); |
|
46 return self; |
|
47 } |
|
48 |
|
49 CEikAppUi* CPodcastDocument::CreateAppUiL() |
|
50 { |
|
51 return new (ELeave) CPodcastAppUi(iPodcastModel); |
|
52 } |