|
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: CMnrpApplication class implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "debug.h" |
|
20 |
|
21 #include "mnrpdocument.h" |
|
22 #include "mnrpappserver.h" |
|
23 #include "mnrpapplication.h" |
|
24 |
|
25 // UID for the application, this should match the uid defined in the mmp file. |
|
26 static const TUid KUidMnRefProviderApp = {0x03132013}; |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CApaDocument* CMnrpApplication::CreateDocumentL() |
|
34 { |
|
35 LOG( "MnRefProvider: CreateDocumentL" ); |
|
36 CApaDocument* document = CMnrpDocument::NewL( *this ); |
|
37 return document; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 TUid CMnrpApplication::AppDllUid() const |
|
44 { |
|
45 // Return the UID for the MnRefProvider application |
|
46 return KUidMnRefProviderApp; |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 void CMnrpApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
53 { |
|
54 LOG( "MnRefProvider: NewAppServerL" ); |
|
55 aAppServer = new (ELeave) CMnrpAppServer; |
|
56 } |