stifui/avkon/stifui/src/AppUIDocument.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:39:46 +0300
branchRCL_3
changeset 17 d40e813b23c0
parent 9 404ad6c9bc20
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "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:
* Nokia Corporation - initial contribution.
*
* Contributors:
* 
* Description: This file contains CAppUIDocument class definition.
*
*/

// INCLUDE FILES
#include "AppUIDocument.h"
#include "AppUIAppUi.h"

// ================= MEMBER FUNCTIONS =======================

// constructor
CAppUIDocument::CAppUIDocument(CEikApplication& aApp)
: CAknDocument(aApp)    
    {
    }

// destructor
CAppUIDocument::~CAppUIDocument()
    {
    }

// Symbian OS default constructor can leave.
void CAppUIDocument::ConstructL()
    {
    }

// Two-phased constructor.
CAppUIDocument* CAppUIDocument::NewL(
        CEikApplication& aApp)     // CAppUIApp reference
    {
    CAppUIDocument* self = new (ELeave) CAppUIDocument( aApp );
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();

    return self;
    }
    
// ----------------------------------------------------
// CAppUIDocument::CreateAppUiL()
// constructs CAppUIAppUi
// ----------------------------------------------------
//
CEikAppUi* CAppUIDocument::CreateAppUiL()
    {
    return new (ELeave) CAppUIAppUi;
    }

// End of File