|
1 /* |
|
2 * Copyright (c) 2006 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 definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "alfapplication.h" |
|
21 #include "alfuids.h" |
|
22 #include "alf/alfappserver.h" |
|
23 #include "alfdocument.h" |
|
24 |
|
25 #include <eikstart.h> |
|
26 |
|
27 // ======== MEMBER FUNCTIONS ======== |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // From class CAknApplication. |
|
31 // Allocates the server instance. |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 void CAlfApplication::NewAppServerL(CApaAppServer*& aAppServer) |
|
35 { |
|
36 aAppServer = CAlfAppServer::NewAppServerL(); |
|
37 aAppServer->SetPriority(EActivePriorityIpcEventsHigh); |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------------------------- |
|
41 // From class CAknApplication. |
|
42 // Allocates the ducument instance. |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 CApaDocument* CAlfApplication::CreateDocumentL() |
|
46 { |
|
47 return new (ELeave) CAlfDocument( *this ); |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // From class CAknApplication. |
|
52 // Returns the application UID. |
|
53 // --------------------------------------------------------------------------- |
|
54 // |
|
55 TUid CAlfApplication::AppDllUid() const |
|
56 { |
|
57 return TUid::Uid(KAlfAppServerInterfaceUid3); |
|
58 } |
|
59 |
|
60 // ======== GLOBAL FUNCTIONS ======== |
|
61 |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // NewApplication |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 LOCAL_C CApaApplication* NewApplication() |
|
68 { |
|
69 return new CAlfApplication(); |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------------------------- |
|
73 // E32Main |
|
74 // --------------------------------------------------------------------------- |
|
75 // |
|
76 GLDEF_C TInt E32Main() |
|
77 { |
|
78 return EikStart::RunApplication(NewApplication); |
|
79 } |