|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * Provides Postcard App methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // ========== INCLUDE FILES ================================ |
|
22 |
|
23 #include <eikstart.h> |
|
24 |
|
25 #include "PostcardApp.h" // Postcard application class |
|
26 #include "PostcardAppServer.h" // ServerApplication |
|
27 #include "PostcardDocument.h" // Postcard document class |
|
28 #include "PostcardLaf.h" // Panic enums |
|
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 const TUid KUidPostcardApplication = { 0x10207247 }; |
|
36 |
|
37 // --------------------------------------------------------- |
|
38 // MEMBER FUNCTIONS |
|
39 // --------------------------------------------------------- |
|
40 |
|
41 // ---------------------------------------------------- |
|
42 // CPostcardApplication::CreateDocumentL |
|
43 // ---------------------------------------------------- |
|
44 CApaDocument* CPostcardApplication::CreateDocumentL() |
|
45 { |
|
46 return CPostcardDocument::NewL( *this ); |
|
47 } |
|
48 |
|
49 // ---------------------------------------------------- |
|
50 // CPostcardApplication::AppDllUid |
|
51 // ---------------------------------------------------- |
|
52 TUid CPostcardApplication::AppDllUid() const |
|
53 { |
|
54 return KUidPostcardApplication; |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // CPostcardApplication::NewAppServerL |
|
59 // Called by framework. Creates an instance of AppServer. |
|
60 // --------------------------------------------------------- |
|
61 void CPostcardApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
62 { |
|
63 aAppServer = new (ELeave) CPostcardAppServer; |
|
64 } |
|
65 |
|
66 // ========== OTHER EXPORTED FUNCTIONS ===================== |
|
67 |
|
68 LOCAL_C CApaApplication* NewApplication() |
|
69 { |
|
70 return new CPostcardApplication; |
|
71 } |
|
72 |
|
73 GLDEF_C TInt E32Main( ) |
|
74 { |
|
75 return EikStart::RunApplication( NewApplication ); |
|
76 } |
|
77 |
|
78 // End of File |
|
79 |