|
1 /* |
|
2 * Copyright (c) 2002-2008 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: CSysApApp implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "SysApApp.h" |
|
21 #include "SysApDocument.h" |
|
22 |
|
23 // ========================= MEMBER FUNCTIONS ================================ |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CSysApApp::AppDllUid() |
|
27 // Returns application UID |
|
28 // --------------------------------------------------------------------------- |
|
29 |
|
30 TUid CSysApApp::AppDllUid() const |
|
31 { |
|
32 return KUidSysAp; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // CSysApApp::CreateDocumentL() |
|
37 // Creates CSysApDocument object |
|
38 // --------------------------------------------------------------------------- |
|
39 |
|
40 CApaDocument* CSysApApp::CreateDocumentL() |
|
41 { |
|
42 return new( ELeave ) CSysApDocument( *this ); |
|
43 } |
|
44 |
|
45 // ===================== OTHER EXPORTED FUNCTIONS ============================ |
|
46 |
|
47 #include <eikstart.h> |
|
48 |
|
49 LOCAL_C CApaApplication* NewApplication() |
|
50 { |
|
51 return new CSysApApp; |
|
52 } |
|
53 |
|
54 GLDEF_C TInt E32Main() |
|
55 { |
|
56 // Change the priority to high during initial application loading. |
|
57 // It will be lowered back in app ui constructor. |
|
58 // If priority < high, app framework will lower it to background since |
|
59 // SysAp is started up as a background application. |
|
60 RThread().SetProcessPriority( EPriorityHigh ); |
|
61 return EikStart::RunApplication(NewApplication); |
|
62 } |
|
63 |
|
64 |
|
65 // End of File |
|
66 |