|
1 /* |
|
2 * Copyright (c) 2007-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: This module contains the implementation of CIAUpdateApplication |
|
15 * class member functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #include <eikstart.h> |
|
22 #include "iaupdatedocument.h" |
|
23 #include "iaupdateapplication.h" |
|
24 #include "iaupdateserver.h" |
|
25 |
|
26 |
|
27 // --------------------------------------------------------- |
|
28 // CAppMngrApp::CreateDocumentL() |
|
29 // Creates CIAUpdateDocumentt object |
|
30 // --------------------------------------------------------- |
|
31 // |
|
32 CApaDocument* CIAUpdateApplication::CreateDocumentL() |
|
33 { |
|
34 // Create an IAUpdate document, and return a pointer to it |
|
35 CApaDocument* document = CIAUpdateDocument::NewL(*this); |
|
36 return document; |
|
37 } |
|
38 |
|
39 |
|
40 // --------------------------------------------------------- |
|
41 // CIAUpdateApplication::AppDllUid |
|
42 // Returns application UID |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 TUid CIAUpdateApplication::AppDllUid() const |
|
46 { |
|
47 // Return the UID for the IAUpdate application |
|
48 return KUidIAUpdateApp; |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // CIAUpdateApplication::NewAppServerL |
|
53 // Cretaes an instance of applicayion server class |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 void CIAUpdateApplication::NewAppServerL( CApaAppServer*& aAppServer ) |
|
57 { |
|
58 aAppServer = CIAUpdateServer::NewL(); |
|
59 } |
|
60 |
|
61 |
|
62 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
63 // |
|
64 // Create an application, and return a pointer to it |
|
65 LOCAL_C CApaApplication* NewApplication() |
|
66 { |
|
67 return new CIAUpdateApplication; |
|
68 } |
|
69 |
|
70 GLDEF_C TInt E32Main() |
|
71 { |
|
72 return EikStart::RunApplication(NewApplication); |
|
73 } |
|
74 |
|
75 // End of File |