Nokia N97 SDK
Example Applications Guide

RichTextEditorApp.cpp

00001 /*
00002 * ============================================================================
00003 *  Name     : CRTEApp from RichTextEditorApp.cpp
00004 *  Part of  : RichTextEditor
00005 *  Created  : 05/08/2006 by Forum Nokia 
00006 *  Version  : 2.0
00007 *
00008 *  Copyright (c) 2006 - 2007 Nokia Corporation.
00009 *  This material, including documentation and any related
00010 *  computer programs, is protected by copyright controlled by
00011 *  Nokia Corporation.
00012 * ============================================================================
00013 */
00014 
00015 // INCLUDE FILES
00016 #include    "RichTextEditorApp.h"
00017 #include    "RichTextEditorDocument.h"
00018 #ifdef __SERIES60_3X__
00019 #include <eikstart.h>
00020 #endif
00021 // ================= MEMBER FUNCTIONS =======================
00022 
00023 // ---------------------------------------------------------
00024 // CRTEApp::AppDllUid()
00025 // Returns application UID
00026 // ---------------------------------------------------------
00027 //
00028 TUid CRTEApp::AppDllUid() const
00029     {
00030     return KUidRTE;
00031     }
00032 
00033 // ---------------------------------------------------------
00034 // CRTEApp::CreateDocumentL()
00035 // Creates CRTEDocument object
00036 // ---------------------------------------------------------
00037 //
00038 CApaDocument* CRTEApp::CreateDocumentL()
00039     {
00040     return CRTEDocument::NewL( *this );
00041     }
00042 
00043 // ================= OTHER EXPORTED FUNCTIONS ==============
00044 //
00045 // ---------------------------------------------------------
00046 // NewApplication() 
00047 // Constructs CRTEApp
00048 // Returns: created application object
00049 // ---------------------------------------------------------
00050 //
00051 EXPORT_C CApaApplication* NewApplication()
00052     {
00053     return new CRTEApp;
00054     }
00055 
00056 #ifndef __SERIES60_3X__
00057 // ---------------------------------------------------------
00058 // E32Dll(TDllReason) 
00059 // Entry point function for EPOC Apps
00060 // Returns: KErrNone: No error
00061 // ---------------------------------------------------------
00062 //
00063 GLDEF_C TInt E32Dll( TDllReason )
00064 {
00065     return KErrNone;
00066 }
00067 #else
00068 // ---------------------------------------------------------
00069 // E32Main()
00070 // Entry point function for new (>= 9.0) EPOC Apps (exe)
00071 // Returns: Sistem Wide error codes or KErrNone if all goes well
00072 // ---------------------------------------------------------
00073 //
00074 GLDEF_C TInt E32Main()
00075 {
00076         return EikStart::RunApplication( NewApplication );
00077 }
00078 #endif
00079 // End of File  
00080 

© Nokia 2009

Back to top