application/src/PodcastDocument.cpp
changeset 2 29cda98b007e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/application/src/PodcastDocument.cpp	Thu Feb 25 14:29:19 2010 +0000
@@ -0,0 +1,52 @@
+/*
+* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB
+*
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* EmbedDev AB - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+
+#include "PodcastDocument.h"
+#include "PodcastAppui.h"
+#include "PodcastModel.h"
+
+CPodcastDocument::CPodcastDocument( CEikApplication& aApp )
+    : CAknDocument( aApp )    
+    {
+    }
+
+CPodcastDocument::~CPodcastDocument()
+    {
+    delete iPodcastModel;
+    }
+
+void CPodcastDocument::ConstructL()
+    {
+    DP("CPodcastDocument::ConstructL BEGIN");
+    iPodcastModel = CPodcastModel::NewL();
+    DP("CPodcastDocument::ConstructL END");
+    }
+
+CPodcastDocument* CPodcastDocument::NewL(CEikApplication& aApp )
+    {
+    CPodcastDocument* self = new (ELeave) CPodcastDocument( aApp );
+    CleanupStack::PushL( self );
+    self->ConstructL();
+    CleanupStack::Pop( self );
+    return self;
+    }
+    
+CEikAppUi* CPodcastDocument::CreateAppUiL()
+    {
+    return new (ELeave) CPodcastAppUi(iPodcastModel);
+    }