sl@0: /* sl@0: * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Series 60 version of Hindi Demo application sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef __HINDIDEMO_DOCUMENT_H__ sl@0: #define __HINDIDEMO_DOCUMENT_H__ sl@0: sl@0: #include sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Forward references sl@0: // ----------------------------------------------------------------------- sl@0: class HindiDemoAppUi; sl@0: class CEikApplication; sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // CHindiDemoDocument sl@0: // ----------------------------------------------------------------------- sl@0: class CHindiDemoDocument : public CAknDocument sl@0: { sl@0: public: sl@0: // ----------------------------------------------------------------------- sl@0: // Constructs CHindiDemoDocument for the AVKON application aApp sl@0: // using two phase construction, and return a pointer to the created sl@0: // object sl@0: // @param aApp application creating this document sl@0: // @return a pointer to the created instance of CHindiDemoDocument sl@0: // ----------------------------------------------------------------------- sl@0: static CHindiDemoDocument* NewL(CEikApplication& aApp); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Constructs CHindiDemoDocument for the AVKON application aApp sl@0: // using two phase construction, and return a pointer to the created sl@0: // object sl@0: // @param aApp application creating this document sl@0: // @return a pointer to the created instance of CHindiDemoDocument sl@0: // ----------------------------------------------------------------------- sl@0: static CHindiDemoDocument* NewLC(CEikApplication& aApp); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Destroys this document object and releases all memory sl@0: // ----------------------------------------------------------------------- sl@0: ~CHindiDemoDocument(); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Creates a CHindiDemoAppUi object and return a pointer to it sl@0: // @return a pointer to the created instance of the AppUi created sl@0: // ----------------------------------------------------------------------- sl@0: CEikAppUi* CreateAppUiL(); sl@0: sl@0: private: sl@0: // -------------------------------------------------------------------------- sl@0: // Performs second phase construction for this CHindiDemoDocument object sl@0: // -------------------------------------------------------------------------- sl@0: void ConstructL(); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Private constructor sl@0: // ----------------------------------------------------------------------- sl@0: CHindiDemoDocument(CEikApplication& aApp); sl@0: }; sl@0: sl@0: #endif // __HINDIDEMO_DOCUMENT_H__