sl@0: // Copyright (c) 2007-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: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent sl@0: */ sl@0: sl@0: #include sl@0: sl@0: #include "t_pseudoappdoc.h" sl@0: #include "t_pseudoapp.h" sl@0: #include "t_wservconsts.h" //KUidPseudoapp / KUidPseudoApp1 sl@0: sl@0: sl@0: /** sl@0: * Gets the application specific UID. sl@0: * @return - UID of the simpleapp application sl@0: * sl@0: */ sl@0: TUid CPseudoApplication::AppDllUid() const sl@0: { sl@0: #ifndef T_PSEUDOAPP1 sl@0: return KUidPseudoApp; sl@0: #else sl@0: return KUidPseudoApp1; sl@0: #endif //T_PSEUDOAPP1 sl@0: } sl@0: sl@0: /** sl@0: * Creates a document object for the application sl@0: * @return pointer to the newly created document sl@0: * sl@0: */ sl@0: CApaDocument* CPseudoApplication::CreateDocumentL() sl@0: { sl@0: return new (ELeave) CPseudoDocument(*this); sl@0: } sl@0: sl@0: /** sl@0: * Creates and returns the object of the application sl@0: * @return pointer to the newly created application sl@0: * sl@0: */ sl@0: LOCAL_C CApaApplication* NewApplication() sl@0: { sl@0: return new CPseudoApplication; sl@0: } sl@0: sl@0: /** sl@0: * Entry point for the application sl@0: * sl@0: */ sl@0: GLDEF_C TInt E32Main() sl@0: { sl@0: return EikStart::RunApplication(NewApplication); sl@0: } sl@0: sl@0: