1 /* |
|
2 * Copyright (c) 2007-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: CSC Application |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <aknapp.h> |
|
20 #include <AknDoc.h> |
|
21 #include <eikstart.h> |
|
22 |
|
23 #include "cscdocument.h" |
|
24 #include "cscconstants.h" |
|
25 #include "cscapplication.h" |
|
26 |
|
27 |
|
28 // ======== MEMBER FUNCTIONS ======== |
|
29 |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // Returns the uid of the app. |
|
33 // --------------------------------------------------------------------------- |
|
34 // |
|
35 TUid CCSCApplication::AppDllUid() const |
|
36 { |
|
37 return KUidCSCApp; |
|
38 } |
|
39 |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // Creates an instance of CCSCDocument and returns it. |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 CApaDocument* CCSCApplication::CreateDocumentL() |
|
46 { |
|
47 return CCSCDocument::NewL( *this ); |
|
48 } |
|
49 |
|
50 |
|
51 // ======== GLOBAL FUNCTIONS ======== |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // Constructs and returns an application object. |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 LOCAL_C CApaApplication* NewApplication() |
|
58 { |
|
59 return new CCSCApplication; |
|
60 } |
|
61 |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // Main function of the application executable. |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 GLDEF_C TInt E32Main() |
|
68 { |
|
69 return EikStart::RunApplication( NewApplication ); |
|
70 } |
|
71 |
|