diff -r 000000000000 -r 72b543305e3a email/mail/EditorSrc/MsgMailEditorApp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email/mail/EditorSrc/MsgMailEditorApp.cpp Thu Dec 17 08:44:11 2009 +0200 @@ -0,0 +1,75 @@ +/* +* 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: Implements main application class +* +*/ + + +// INCLUDE FILES +#include "MsgMailEditorApp.h" +#include "MsgMailEditorDocument.h" +#include // UID for application +#include +#include "MsgMailEditorAppServer.h" + + +// ================= MEMBER FUNCTIONS ======================= + +// ------------------------------------------------------------------------------ +// CMsgMailViewerAppUi::AppDllUid() +// ------------------------------------------------------------------------------ +// +TUid CMsgMailEditorApp::AppDllUid() const + { + return TUid::Uid(KUidMsgMailEditor); + } + +// ------------------------------------------------------------------------------ +// CMsgMailViewerAppUi::CreateDocumentL() +// ------------------------------------------------------------------------------ +// +CApaDocument* CMsgMailEditorApp::CreateDocumentL() + { + return CMsgMailEditorDocument::NewL( *this ); + } + +// ------------------------------------------------------------------------------ +// CMsgMailViewerAppUi::NewApplication() +// ------------------------------------------------------------------------------ +// +LOCAL_C CApaApplication* NewApplication() + { + return new CMsgMailEditorApp; + } + +// ------------------------------------------------------------------------------ +// CMsgMailViewerAppUi::E32Main() +// ------------------------------------------------------------------------------ +// +GLDEF_C TInt E32Main() + { + return EikStart::RunApplication(NewApplication); + } + +// ------------------------------------------------------------------------------ +// CMsgMailViewerAppUi::NewAppServerL() +// ------------------------------------------------------------------------------ +// +void CMsgMailEditorApp::NewAppServerL( CApaAppServer*& aAppServer ) + { + aAppServer = new (ELeave) CMsgMailEditorAppServer; + } + +// End of File +