|         |      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    "MsgMailViewerApp.h" | 
|         |     21 #include    "MsgMailViewerDocument.h" | 
|         |     22 #include    "MsgMailViewerAppServer.h" | 
|         |     23 #include    <MsgMailUIDs.h>             // UID for application | 
|         |     24 #include 	<eikstart.h> | 
|         |     25  | 
|         |     26 // ================= MEMBER FUNCTIONS ======================= | 
|         |     27  | 
|         |     28 // --------------------------------------------------------- | 
|         |     29 // CMsgMailViewerApp::AppDllUid() | 
|         |     30 // Returns application UID | 
|         |     31 // --------------------------------------------------------- | 
|         |     32 // | 
|         |     33 TUid CMsgMailViewerApp::AppDllUid() const | 
|         |     34     { | 
|         |     35     return TUid::Uid(KUidMsgMailViewer); | 
|         |     36     } | 
|         |     37 // ---------------------------------------------------------------------------- | 
|         |     38 // CMsgMailViewerApp::NewAppServerL() | 
|         |     39 // ---------------------------------------------------------------------------- | 
|         |     40 // | 
|         |     41 void CMsgMailViewerApp::NewAppServerL( CApaAppServer*& aAppServer ) | 
|         |     42 	{ | 
|         |     43 	aAppServer = new (ELeave) CMsgMailViewerAppServer; | 
|         |     44 	}    | 
|         |     45  | 
|         |     46 // --------------------------------------------------------- | 
|         |     47 // CMsgMailViewerApp::CreateDocumentL() | 
|         |     48 // Creates CMsgMailViewerDocument object | 
|         |     49 // --------------------------------------------------------- | 
|         |     50 // | 
|         |     51 CApaDocument* CMsgMailViewerApp::CreateDocumentL() | 
|         |     52     { | 
|         |     53     return CMsgMailViewerDocument::NewL( *this ); | 
|         |     54     } | 
|         |     55  | 
|         |     56 // ================= OTHER EXPORTED FUNCTIONS ============== | 
|         |     57 // | 
|         |     58 // --------------------------------------------------------- | 
|         |     59 // NewApplication()  | 
|         |     60 // Constructs CMsgMailViewerApp | 
|         |     61 // Returns: CApaDocument*: created application object | 
|         |     62 // --------------------------------------------------------- | 
|         |     63 // | 
|         |     64 LOCAL_C CApaApplication* NewApplication() | 
|         |     65     { | 
|         |     66     return new CMsgMailViewerApp; | 
|         |     67     } | 
|         |     68  | 
|         |     69 GLDEF_C TInt E32Main() | 
|         |     70     { | 
|         |     71     return EikStart::RunApplication(NewApplication); | 
|         |     72     } | 
|         |     73  | 
|         |     74 // End of File   | 
|         |     75  |