author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:40:19 +0300 | |
branch | RCL_3 |
changeset 81 | 42552535c1ac |
parent 66 | 8b7f4e561641 |
permissions | -rw-r--r-- |
0
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
66 | 2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). |
0
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
66 | 14 |
* Description: This module contains the implementation of CIAUpdateApplication |
0
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* class member functions. |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
* |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
*/ |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
|
66 | 19 |
|
20 |
||
21 |
#include <eikstart.h> |
|
22 |
#include "iaupdatedocument.h" |
|
0
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
#include "iaupdateapplication.h" |
66 | 24 |
#include "iaupdateserver.h" |
25 |
||
0
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
|
66 | 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; |
|
0
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
} |
ba25891c3a9e
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
|
66 | 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 |