|
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 file contains the implementation of CIAUpdateWaitDialog |
|
15 * class member functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "iaupdatewaitdialog.h" |
|
23 #include "iaupdatewaitdialogobserver.h" |
|
24 |
|
25 |
|
26 |
|
27 // ========================= MEMBER FUNCTIONS ================================ |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CIAUpdateDialogs::CIAUpdateDialogs |
|
31 // C++ default constructor can NOT contain any code, that |
|
32 // might leave. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CIAUpdateWaitDialog::CIAUpdateWaitDialog( CEikDialog** aSelfPtr, |
|
36 TBool aVisibilityDelayOff ) |
|
37 :CAknWaitDialog( aSelfPtr, aVisibilityDelayOff ) |
|
38 { |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CIAUpdateDialogs::~CIAUpdateDialogs |
|
43 // Destructor |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CIAUpdateWaitDialog::~CIAUpdateWaitDialog() |
|
47 { |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // CIAUpdateWaitDialog::OkToExitL() |
|
52 // called by framework when the Softkey is pressed. |
|
53 // On cancel either stop installation or exit |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 TBool CIAUpdateWaitDialog::OkToExitL( TInt aButtonId ) |
|
57 { |
|
58 TBool result( ETrue ); |
|
59 |
|
60 if ( iCallback ) |
|
61 { |
|
62 result = iCallback->HandleDialogExitL( aButtonId ); |
|
63 } |
|
64 |
|
65 return result; |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------------------------- |
|
69 // CIAUpdateWaitDialog::SetCallback |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 void CIAUpdateWaitDialog::SetCallback( MIAUpdateWaitDialogObserver* aCallback ) |
|
73 { |
|
74 iCallback = aCallback; |
|
75 } |
|
76 |
|
77 // End of File |