1 /* |
|
2 * Copyright (c) 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: Application class that also creates the appserver |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <eikstart.h> |
|
20 #include <eikenv.h> |
|
21 #include "lockappdocument.h" |
|
22 #include "lockappserver.h" |
|
23 #include "lockappapplication.h" |
|
24 |
|
25 // UID for the application, this should correspond to the uid defined in the mmp file |
|
26 static const TUid KUidLockAppApp = |
|
27 { |
|
28 0x10283322 |
|
29 }; |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // Create an application, and return a pointer to it |
|
33 // --------------------------------------------------------------------------- |
|
34 CApaApplication* NewApplication( ) |
|
35 { |
|
36 return new CLockAppApplication; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // Main function of the application executable. |
|
41 // --------------------------------------------------------------------------- |
|
42 TInt E32Main( ) |
|
43 { |
|
44 return EikStart::RunApplication( NewApplication ); |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // Returns the UID for the application |
|
49 // --------------------------------------------------------------------------- |
|
50 TUid CLockAppApplication::AppDllUid( ) const |
|
51 { |
|
52 // Return the UID for the LockApp application |
|
53 return KUidLockAppApp; |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // Creates a document object and passes ownership. |
|
58 // --------------------------------------------------------------------------- |
|
59 CApaDocument* CLockAppApplication::CreateDocumentL( ) |
|
60 { |
|
61 // Create an LockApp document, and return a pointer to it |
|
62 CApaDocument* document = CLockAppDocument::NewL( *this ); |
|
63 return document; |
|
64 } |
|