|
1 /* |
|
2 * Copyright (c) 2002-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 note handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "cphoneprogressnote.h" |
|
20 // ================= MEMBER FUNCTIONS ======================= |
|
21 // C++ default constructor can NOT contain any code, that |
|
22 // might leave. |
|
23 // |
|
24 CPhoneProgressNote::CPhoneProgressNote( |
|
25 TInt aFinalValue, |
|
26 TInt anIncrement, |
|
27 TInt anInterval, |
|
28 CEikDialog** aSelfPtr, |
|
29 MEikCommandObserver* aCommandObserver ) |
|
30 : CAknProgressDialog( |
|
31 aFinalValue, |
|
32 anIncrement, |
|
33 anInterval, |
|
34 aSelfPtr ), |
|
35 iCommandObserver( aCommandObserver ) |
|
36 { |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------- |
|
40 // CPhoneProgressDialog::CPhoneProgressDialog |
|
41 // --------------------------------------------------------- |
|
42 // |
|
43 CPhoneProgressNote::CPhoneProgressNote( |
|
44 CEikDialog** aSelfPtr, |
|
45 MEikCommandObserver* aCommandObserver ) |
|
46 : CAknProgressDialog( |
|
47 aSelfPtr ), |
|
48 iCommandObserver( aCommandObserver ) |
|
49 { |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------- |
|
53 // Destructor |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 CPhoneProgressNote::~CPhoneProgressNote() |
|
57 { |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // CPhoneProgressNote::OfferKeyEventL |
|
62 // --------------------------------------------------------- |
|
63 // |
|
64 TKeyResponse CPhoneProgressNote::OfferKeyEventL( |
|
65 const TKeyEvent& /*aKeyEvent*/, |
|
66 TEventCode /*aType*/ ) |
|
67 { |
|
68 // Let key events be handled by the application |
|
69 return EKeyWasNotConsumed; |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------- |
|
73 // CPhoneProgressNote::OkToExitL |
|
74 // --------------------------------------------------------- |
|
75 // |
|
76 TBool CPhoneProgressNote::OkToExitL( TInt aCommand ) |
|
77 { |
|
78 // Let the command observer process the command |
|
79 if ( iCommandObserver ) |
|
80 { |
|
81 iCommandObserver->ProcessCommandL( aCommand ); |
|
82 } |
|
83 return EFalse; // so that the dialog will not disappear |
|
84 } |
|
85 |
|
86 // end of file |