|
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 CIAUpdateDocument class |
|
15 * member functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 //INCLUDES |
|
21 #include <e32property.h> |
|
22 #include "iaupdateappui.h" |
|
23 #include "iaupdatedocument.h" |
|
24 #include "iaupdatefwnsmlpskeys.h" |
|
25 #include "iaupdatedebug.h" |
|
26 #include "iaupdateuids.h" |
|
27 |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // CIAUpdateDocument::NewL |
|
33 // Two-phased constructor. |
|
34 // --------------------------------------------------------------------------- |
|
35 // |
|
36 CIAUpdateDocument* CIAUpdateDocument::NewL(CEikApplication& aApp) |
|
37 { |
|
38 CIAUpdateDocument* self = NewLC(aApp); |
|
39 CleanupStack::Pop(self); |
|
40 return self; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // CIAUpdateDocument::NewLC |
|
45 // |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 CIAUpdateDocument* CIAUpdateDocument::NewLC(CEikApplication& aApp) |
|
49 { |
|
50 CIAUpdateDocument* self = new (ELeave) CIAUpdateDocument(aApp); |
|
51 CleanupStack::PushL(self); |
|
52 self->ConstructL(); |
|
53 return self; |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // void CCIAUpdateDocument::ConstructL() |
|
58 // --------------------------------------------------------------------------- |
|
59 // |
|
60 void CIAUpdateDocument::ConstructL() |
|
61 { |
|
62 IAUPDATE_TRACE("[IAUPDATE] CIAUpdateDocument::ConstructL() begin"); |
|
63 TInt err = RProperty::Define( KPSUidNSmlDMSyncApp, |
|
64 KFotaDLStatus, |
|
65 RProperty::EInt); //Policies removed as FOTA to write |
|
66 |
|
67 err = RProperty::Set( KPSUidNSmlDMSyncApp, |
|
68 KFotaDLStatus,KErrNotFound ); |
|
69 |
|
70 IAUPDATE_TRACE("[IAUPDATE] CIAUpdateDocument::ConstructL() end"); |
|
71 } |
|
72 |
|
73 |
|
74 // --------------------------------------------------------------------------- |
|
75 // CIAUpdateDocument::CIAUpdateDocument(CEikApplication& aApp) |
|
76 // constructor |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 CIAUpdateDocument::CIAUpdateDocument(CEikApplication& aApp) : CAknDocument(aApp) |
|
80 { |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------------------------- |
|
84 // CIAUpdateDocument::~CIAUpdateDocument() |
|
85 // Destructor |
|
86 // --------------------------------------------------------------------------- |
|
87 // |
|
88 CIAUpdateDocument::~CIAUpdateDocument() |
|
89 { |
|
90 TInt err = RProperty::Delete(KPSUidNSmlDMSyncApp, KFotaDLStatus); |
|
91 } |
|
92 |
|
93 // ---------------------------------------------------- |
|
94 // CIAUpdateDocument::CreateAppUiL() |
|
95 // constructs CIAUpdateAppUi |
|
96 // ---------------------------------------------------- |
|
97 // |
|
98 CEikAppUi* CIAUpdateDocument::CreateAppUiL() |
|
99 { |
|
100 // Create the application user interface, and return a pointer to it, |
|
101 // the framework takes ownership of this object |
|
102 CEikAppUi* appUi = new (ELeave) CIAUpdateAppUi; |
|
103 return appUi; |
|
104 } |
|
105 |
|
106 // End of File |