launcher/inc/launcherdocument.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:17:27 +0200
changeset 0 d6fe6244b863
child 11 454d022d514b
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* 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:  
*
*/



#ifndef __LAUNCHER_DOCUMENT_H__
#define __LAUNCHER_DOCUMENT_H__


#include <akndoc.h>

// Forward references
class CLauncherAppUi;
class CEikApplication;


/*! 
  @class CLauncherDocument
  
  @discussion An instance of class CLauncherDocument is the Document part of the AVKON
  application framework for the Launcher example application
  */
class CLauncherDocument : public CAknDocument
    {
public:

/*!
  @function NewL
  
  @discussion Construct a CLauncherDocument for the AVKON application aApp 
  using two phase construction, and return a pointer to the created object
  @param aApp application creating this document
  @result a pointer to the created instance of CLauncherDocument
  */
    static CLauncherDocument* NewL(CEikApplication& aApp);

/*!
  @function NewLC
  
  @discussion Construct a CLauncherDocument for the AVKON application aApp 
  using two phase construction, and return a pointer to the created object
  @param aApp application creating this document
  @result a pointer to the created instance of CLauncherDocument
  */
    static CLauncherDocument* NewLC(CEikApplication& aApp);

/*!
  @function ~CLauncherDocument
  
  @discussion Destroy the object and release all memory objects
  */
    ~CLauncherDocument();

/*!
  @function CreateAppUiL 
  
  @discussion Create a CLauncherAppUi object and return a pointer to it
  @result a pointer to the created instance of the AppUi created
  */
    CEikAppUi* CreateAppUiL();
private:

/*!
  @function ConstructL
  
  @discussion Perform the second phase construction of a CLauncherDocument object
  */
    void ConstructL();

/*!
  @function CLauncherDocument
  
  @discussion Perform the first phase of two phase construction 
  @param aApp application creating this document
  */
    CLauncherDocument(CEikApplication& aApp);

    };


#endif // __LAUNCHER_DOCUMENT_H__