application/src/PodcastDocument.cpp
author Sebastian Brannstrom <sebastianb@symbian.org>
Sat, 23 Oct 2010 16:38:32 +0100
branchRCL_3
changeset 274 03285b1fc18d
parent 2 29cda98b007e
permissions -rw-r--r--
Updated SIS, version 1.00.5

/*
* 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);
    }