profilesapplication/Profiles/ProfileApp/UIsrc/CProfileDocument.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:30:29 +0100
branchRCL_3
changeset 19 cd54903d48da
parent 0 ca436256272f
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002 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:  The document class for Profiles application.
*
*/



#ifndef CPROFILEDOCUMENT_H
#define CPROFILEDOCUMENT_H

// INCLUDES
#include <AknDoc.h>

// FORWARD DECLARATIONS
class CEikAppUi;
class CProfileEngineHandler;
class CProfileIndexHandler;

// CLASS DECLARATION
/**
*  The document class for Profiles application.
*  CProfileDocument owns Engine handler and Index handler.
*  An instance of both are needed during application lifetime.
*  CProfileDocument initializes the Feature Manager.
*
*  @lib ProfileApp.app
*  @since 1.2
*/
NONSHARABLE_CLASS( CProfileDocument ) : public CAknDocument
    {
    public:		// Constructors and destructor

        /**
        * Two-phased constructor.
        */
        static CProfileDocument* NewL( CEikApplication& aApp );

        /**
        * Destructor.
        */
        ~CProfileDocument();

    private:	// Functions from base classes

       /**
       * From CEikDocument
       */
       CEikAppUi* CreateAppUiL();

	private:

		/**
        * C++ constructor.
        */
        CProfileDocument( CEikApplication& aApp );

        /**
        * By default Symbian 2nd phase constructor is private.
        */
		void ConstructL();

	private:	// Data

        // Own: Engine handler.
        CProfileEngineHandler* iEngineHandler;

        // Own: Index handler.
        CProfileIndexHandler* iIndexHandler;

	};

#endif // CPROFILEDOCUMENT_H


// End of File