|
1 /* |
|
2 * Copyright (c) 2005 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: Progress dlg for download |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "FotaDLProgressDlg.h" |
|
22 |
|
23 // ========================= MEMBER FUNCTIONS ================================ |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CFotaDLProgressDlg::CFotaDLProgressDlg |
|
27 // --------------------------------------------------------------------------- |
|
28 CFotaDLProgressDlg::CFotaDLProgressDlg( CEikDialog** aSelfPtr |
|
29 , TBool aVisibilityDelayOff, MDLProgressDlgObserver* aObserver, TInt aNoteType) |
|
30 : CAknProgressDialog( aSelfPtr, aVisibilityDelayOff ) |
|
31 ,iNoteType(aNoteType) |
|
32 ,iObserver( aObserver ) |
|
33 |
|
34 { |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // Destructor |
|
39 // --------------------------------------------------------------------------- |
|
40 CFotaDLProgressDlg::~CFotaDLProgressDlg() |
|
41 { |
|
42 if (iSelfPtr) |
|
43 { |
|
44 *iSelfPtr = NULL; |
|
45 iSelfPtr = NULL; |
|
46 } |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------------------------- |
|
50 // CFotaDLProgressDlg::OkToExitL |
|
51 // Called by framework when the Softkey is pressed. |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 TBool CFotaDLProgressDlg::OkToExitL( TInt aButtonId ) |
|
55 { |
|
56 TBool result( ETrue ); |
|
57 iObserver->HandleDLProgressDialogExitL( aButtonId ); |
|
58 return result; |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // CFotaDLProgressDlg::OfferKeyEventL |
|
63 // --------------------------------------------------------------------------- |
|
64 TKeyResponse CFotaDLProgressDlg::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/ |
|
65 ,TEventCode /*aType*/) |
|
66 { |
|
67 return EKeyWasNotConsumed; |
|
68 } |
|
69 |
|
70 // End of File |