notepad/notepad1/AppSrc/NpdApp.cpp
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     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:  Implementation of Notepad application class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "NpdApp.h"
       
    21 #include "NpdDocument.h"
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 #include <eikstart.h>
       
    27 
       
    28 LOCAL_C CApaApplication* NewApplication()
       
    29     {
       
    30     return new CNotepadApp;
       
    31     }
       
    32 
       
    33 GLDEF_C TInt E32Main()
       
    34     {
       
    35     return EikStart::RunApplication(NewApplication);
       
    36     }
       
    37 
       
    38 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    39 // -----------------------------------------------------------------------------
       
    40 // E32Dll(TDllReason) 
       
    41 // Entry point function for SymbianOS Apps
       
    42 // Returns: KErrNone: No error
       
    43 // -----------------------------------------------------------------------------
       
    44 //
       
    45 #ifndef EKA2
       
    46 GLDEF_C TInt E32Dll(TDllReason)
       
    47  {
       
    48     return KErrNone;
       
    49  }
       
    50 #endif 
       
    51 
       
    52 
       
    53 
       
    54 // ============================ MEMBER FUNCTIONS ===============================
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CNotepadApp::AppDllUid
       
    58 // Returns application UID
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 TUid CNotepadApp::AppDllUid() const
       
    62     {
       
    63     return KUidNotepad;
       
    64     }
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // CNotepadApp::CreateDocumentL
       
    68 // Creates CNotepadDocument object
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 CApaDocument* CNotepadApp::CreateDocumentL()
       
    72     {
       
    73     return new(ELeave) CNotepadDocument(*this);
       
    74     }
       
    75 
       
    76 // End of File  
       
    77