|
1 /* |
|
2 * Copyright (c) 2006,2007 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: Provides Uni Editor App methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // ========== INCLUDE FILES ================================ |
|
21 |
|
22 #include <eikstart.h> |
|
23 |
|
24 #include "UniEditorApp.h" // UniEditor application class |
|
25 #include "UniEditorAppServer.h" // ServerApplication |
|
26 #include "UniEditorDocument.h" // UniEditor document class |
|
27 |
|
28 #include "UniEditorUids.hrh" |
|
29 |
|
30 // ========== CONSTANTS ==================================== |
|
31 // Note that the UID values are recorded in two places: |
|
32 // - this source file (below, as a constant for AppDllUid() method) |
|
33 // - MMP file (i.e. also in the makefile) |
|
34 |
|
35 // --------------------------------------------------------- |
|
36 // MEMBER FUNCTIONS |
|
37 // --------------------------------------------------------- |
|
38 |
|
39 // ---------------------------------------------------- |
|
40 // CUniEditorApplication::CreateDocumentL |
|
41 // ---------------------------------------------------- |
|
42 // |
|
43 CApaDocument* CUniEditorApplication::CreateDocumentL() |
|
44 { |
|
45 return CUniEditorDocument::NewL( *this, *iCoeEnv ); |
|
46 } |
|
47 |
|
48 // ---------------------------------------------------- |
|
49 // CUniEditorApplication::AppDllUid |
|
50 // ---------------------------------------------------- |
|
51 // |
|
52 TUid CUniEditorApplication::AppDllUid() const |
|
53 { |
|
54 return TUid::Uid( KUidUniEditorApplication ); |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // CUniEditorApplication::NewAppServerL |
|
59 // Called by framework. Creates an instance of AppServer. |
|
60 // --------------------------------------------------------- |
|
61 // |
|
62 void CUniEditorApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
63 { |
|
64 aAppServer = new( ELeave ) CUniEditorAppServer; |
|
65 } |
|
66 |
|
67 // ========== OTHER EXPORTED FUNCTIONS ===================== |
|
68 |
|
69 // --------------------------------------------------------- |
|
70 // NewApplication |
|
71 // --------------------------------------------------------- |
|
72 // |
|
73 LOCAL_C CApaApplication* NewApplication() |
|
74 { |
|
75 return new CUniEditorApplication; |
|
76 } |
|
77 |
|
78 // --------------------------------------------------------- |
|
79 // E32Main |
|
80 // --------------------------------------------------------- |
|
81 // |
|
82 GLDEF_C TInt E32Main() |
|
83 { |
|
84 return EikStart::RunApplication( NewApplication ); |
|
85 } |
|
86 |
|
87 // End of File |
|
88 |