extras/calcsoft/src/CalcApp.cpp
branchRCL_3
changeset 21 10c6e6d6e4d9
parent 0 3ee3dfdd8d69
equal deleted inserted replaced
20:41b775cdc0c8 21:10c6e6d6e4d9
       
     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:  An application class, CCalcApplication, 
       
    15 *                derived from CEikApplication
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES 
       
    22 
       
    23 #include    "CalcDoc.h"
       
    24 #include    "CalcApp.h"
       
    25 
       
    26 // EXTERNAL FUNCTION PROTOTYPES  
       
    27 
       
    28 // ================= MEMBER FUNCTIONS =======================
       
    29 
       
    30 
       
    31 // ---------------------------------------------------------
       
    32 // CCalcApplication::CreateDocumentL
       
    33 // This function is called by framework when this calculator is opened. 
       
    34 // (other items were commented in a header).
       
    35 // ---------------------------------------------------------
       
    36 //
       
    37 CApaDocument* CCalcApplication::CreateDocumentL()
       
    38     {
       
    39     return CCalcDocument::NewL(*this);
       
    40     }
       
    41 
       
    42 
       
    43 // ---------------------------------------------------------
       
    44 // CCalcApplication::AppDllUid
       
    45 // This function is called by framework
       
    46 // when this calculator is opened or closed. 
       
    47 // (other items were commented in a header).
       
    48 // ---------------------------------------------------------
       
    49 //
       
    50 TUid  CCalcApplication::AppDllUid() const
       
    51     {
       
    52     return KUidCalc;
       
    53     }
       
    54 
       
    55 
       
    56 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    57 
       
    58 #include <eikstart.h>
       
    59 
       
    60 LOCAL_C CApaApplication* NewApplication()
       
    61     {
       
    62     return new CCalcApplication;
       
    63     }
       
    64 
       
    65 GLDEF_C TInt E32Main()
       
    66     {
       
    67     return EikStart::RunApplication(NewApplication);
       
    68     }
       
    69 
       
    70