email/mail/EditorSrc/MsgMailEditorApp.cpp
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implements main application class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "MsgMailEditorApp.h"
       
    21 #include    "MsgMailEditorDocument.h"
       
    22 #include    <MsgMailUIDs.h>             // UID for application
       
    23 #include 	<eikstart.h>
       
    24 #include    "MsgMailEditorAppServer.h"
       
    25 
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // ------------------------------------------------------------------------------
       
    30 // CMsgMailViewerAppUi::AppDllUid()
       
    31 // ------------------------------------------------------------------------------
       
    32 //
       
    33 TUid CMsgMailEditorApp::AppDllUid() const
       
    34     {
       
    35     return TUid::Uid(KUidMsgMailEditor);
       
    36     }
       
    37 
       
    38 // ------------------------------------------------------------------------------
       
    39 // CMsgMailViewerAppUi::CreateDocumentL()
       
    40 // ------------------------------------------------------------------------------
       
    41 //
       
    42 CApaDocument* CMsgMailEditorApp::CreateDocumentL()
       
    43     {
       
    44     return CMsgMailEditorDocument::NewL( *this );
       
    45     }
       
    46 
       
    47 // ------------------------------------------------------------------------------
       
    48 // CMsgMailViewerAppUi::NewApplication()
       
    49 // ------------------------------------------------------------------------------
       
    50 //
       
    51 LOCAL_C CApaApplication* NewApplication()
       
    52     {
       
    53     return new CMsgMailEditorApp;
       
    54     }
       
    55 
       
    56 // ------------------------------------------------------------------------------
       
    57 // CMsgMailViewerAppUi::E32Main()
       
    58 // ------------------------------------------------------------------------------
       
    59 //
       
    60 GLDEF_C TInt E32Main()
       
    61     {
       
    62     return EikStart::RunApplication(NewApplication);
       
    63     }
       
    64 
       
    65 // ------------------------------------------------------------------------------
       
    66 // CMsgMailViewerAppUi::NewAppServerL()
       
    67 // ------------------------------------------------------------------------------
       
    68 //    
       
    69 void CMsgMailEditorApp::NewAppServerL( CApaAppServer*& aAppServer )
       
    70 	{
       
    71 	aAppServer = new (ELeave) CMsgMailEditorAppServer;
       
    72 	}
       
    73 
       
    74 // End of File
       
    75