1 /* |
|
2 * Copyright (c) 2009 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: This file contains CAppUIApp class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "AppUIApp.h" |
|
20 #include "AppUIDocument.h" |
|
21 |
|
22 // ================= MEMBER FUNCTIONS ======================= |
|
23 |
|
24 // --------------------------------------------------------- |
|
25 // CSTIFAppUIApp::AppDllUid() |
|
26 // Returns application UID |
|
27 // --------------------------------------------------------- |
|
28 // |
|
29 TUid CAppUIApp::AppDllUid() const |
|
30 { |
|
31 return KUidAppUI; |
|
32 } |
|
33 |
|
34 |
|
35 // --------------------------------------------------------- |
|
36 // CSTIFAppUIApp::CreateDocumentL() |
|
37 // Creates CSTIFAppUIDocument object |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 CApaDocument* CAppUIApp::CreateDocumentL() |
|
41 { |
|
42 return CAppUIDocument::NewL( *this ); |
|
43 } |
|
44 |
|
45 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
46 // |
|
47 |
|
48 #include <eikstart.h> |
|
49 // --------------------------------------------------------- |
|
50 // NewApplication() |
|
51 // Exported function |
|
52 // Returns: CApaApplication: |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 LOCAL_C CApaApplication* NewApplication() |
|
56 { |
|
57 return new CAppUIApp; |
|
58 } |
|
59 // --------------------------------------------------------- |
|
60 // E32Main() |
|
61 // EXE Entry point |
|
62 // Returns: KErrNone: No error |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 GLDEF_C TInt E32Main() |
|
66 { |
|
67 return EikStart::RunApplication(NewApplication); |
|
68 } |
|
69 |
|
70 // End of File |
|