|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 #ifndef FOTANOTIFIER_H |
|
18 #define FOTANOTIFIER_H |
|
19 |
|
20 // INCLUDES |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <centralrepository.h> |
|
24 #include <devicedialogconsts.h> |
|
25 #include <e32property.h> |
|
26 |
|
27 #include "FotaDlMgrClient.h" |
|
28 #include "fotaserverPrivateCRKeys.h" |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CClassName |
|
34 * |
|
35 */ |
|
36 |
|
37 //#include <hb/hbcore/hbsymbiandevicedialog.h> // MHbDeviceDialogObserver |
|
38 |
|
39 NONSHARABLE_CLASS ( CFotaDownloadNotifHandler ) : public MHbDeviceDialogObserver |
|
40 { |
|
41 public: |
|
42 // new functions |
|
43 /** |
|
44 * Construction and setting of observer happens here |
|
45 * |
|
46 * @since S60 SF4 |
|
47 * @param aObserver is the parent class which owns the notifier and information is |
|
48 * passed to the parent class from the device dialog. |
|
49 */ |
|
50 |
|
51 static CFotaDownloadNotifHandler* NewL( |
|
52 MfotadevicedialogObserver* aObserver); |
|
53 |
|
54 /** |
|
55 * constructor for CFotaDownloadNotifHandler |
|
56 * |
|
57 * @since S60 SF4 |
|
58 * @param None |
|
59 */ |
|
60 |
|
61 CFotaDownloadNotifHandler(); |
|
62 |
|
63 /** |
|
64 * Destructor for CFotaDownloadNotifHandler |
|
65 * |
|
66 * @since S60 SF4 |
|
67 * @param None |
|
68 */ |
|
69 |
|
70 ~CFotaDownloadNotifHandler(); |
|
71 |
|
72 /** |
|
73 * Shows notifier and/or ends download |
|
74 * |
|
75 * @since S60 SF4 |
|
76 * @param aNotifParams Contains necessary information to lauch a notifier |
|
77 */ |
|
78 |
|
79 void CFotaDownloadNotifHandler::LaunchNotifierL( |
|
80 CHbSymbianVariantMap *aNotifParams, TInt aDialogId); |
|
81 |
|
82 void Cancel(); |
|
83 |
|
84 public: |
|
85 // from MHbDeviceDialogObserver |
|
86 |
|
87 /** |
|
88 * Slot to be called from the device dialog |
|
89 * |
|
90 * @aData - It contains the information from the device dialog |
|
91 */ |
|
92 void DataReceived(CHbSymbianVariantMap& aData); |
|
93 |
|
94 /** |
|
95 * Slot to be called from the device dialog is closed |
|
96 * |
|
97 * @aCompletionCode - It contains the error code due to which dialog is closed. |
|
98 */ |
|
99 void DeviceDialogClosed(TInt aCompletionCode); |
|
100 |
|
101 private: |
|
102 |
|
103 //DownloadClient* iDownload; |
|
104 MfotadevicedialogObserver * iObserver; |
|
105 |
|
106 // Device dialog instance |
|
107 CHbDeviceDialogSymbian* iDevDialog; |
|
108 |
|
109 TInt iDialogID; |
|
110 |
|
111 }; |
|
112 |
|
113 #endif // FOTANOTIFIER_H |