taskswitcher/taskswitcherui/taskswitcherapp/inc/tsdocument.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 11:48:23 +0200
changeset 4 4d54b72983ae
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2008 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:  Document class
 *
*/


#ifndef TSDOCUMENT_H
#define TSDOCUMENT_H

#include <e32base.h> 
#include <AknDoc.h>

class CTsDocument : public CAknDocument
    {
public:
    /**
     * Construct a CTsDocument for the AVKON application aApp
     * using two phase construction, and return a pointer to the created object
     * aApp application creating this document
     *
     * @since S60 v5.0
     * @return a pointer to the created instance of CTsDocument
     */
    static CTsDocument* NewL( CEikApplication& aApp );

    /**
     * Construct a CTsDocument for the AVKON application aApp
     * using two phase construction, and return a pointer to the created object
     *
     * @since S60 v5.0
     * @param aApp application creating this document
     * @return a pointer to the created instance of CTsDocument
     */
    static CTsDocument* NewLC( CEikApplication& aApp );

    /**
     * Destroy the object and release all memory objects
     *
     * @since S60 v5.0
     */
    ~CTsDocument( );

    /**
     * Makes Startup-application hidden in menu shell and fastswap window
     *
     * @since S60 v5.0
     * @param aWgName application windows group name
     */
    void UpdateTaskNameL( CApaWindowGroupName* aWgName );

public:
    // from CAknDocument
    /**
     * Create a CTsAppUi object and return a pointer to it
     *
     * @since S60 v5.0
     * @return a pointer to the created instance of the AppUi created
     */
    CEikAppUi* CreateAppUiL( );

private:
    /**
     * Perform the second phase construction of a CTsDocument object
     *
     * @since S60 v5.0
     */
    void ConstructL( );

    /**
     * Perform the first phase of two phase construction
     *
     * @since S60 v5.0
     * @param aApp application creating this document
     */
    CTsDocument( CEikApplication& aApp );
    };

#endif // TSDOCUMENT_H