equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2002 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 * This class is a part of the standard application framework. |
|
16 * The application gets instantiated starting from this class. |
|
17 * Provides a factory method for instantiating the document object. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #include <eikstart.h> |
|
23 #include "CVRApplication.h" |
|
24 #include "CVRAppServer.h" |
|
25 #include "CVRDocument.h" |
|
26 |
|
27 TUid CVRApplication::AppDllUid() const |
|
28 { |
|
29 return KVRAppUID; |
|
30 } |
|
31 |
|
32 CApaDocument* CVRApplication::CreateDocumentL() |
|
33 { |
|
34 return CVRDocument::NewL( *this ); |
|
35 } |
|
36 |
|
37 LOCAL_C CApaApplication* NewApplication() |
|
38 { |
|
39 return new CVRApplication; |
|
40 } |
|
41 |
|
42 void CVRApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
43 { |
|
44 aAppServer = new( ELeave ) CVRAppServer; |
|
45 } |
|
46 |
|
47 GLDEF_C TInt E32Main() |
|
48 { |
|
49 return EikStart::RunApplication( NewApplication ); |
|
50 } |
|
51 |
|