diff -r b7fa36b488f8 -r cd54903d48da profilesapplication/Profiles/ProfileApp/UIsrc/CProfileDocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profilesapplication/Profiles/ProfileApp/UIsrc/CProfileDocument.h Wed Sep 01 12:30:29 2010 +0100 @@ -0,0 +1,87 @@ +/* +* 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 + +// 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