|
1 /* |
|
2 * Copyright (c) 2007 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: Wait dialog that doesn't consume key events* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef CAMWAITDIALOG_H |
|
19 #define CAMWAITDIALOG_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <AknWaitDialog.h> |
|
23 |
|
24 // CONSTANTS |
|
25 |
|
26 // MACROS |
|
27 |
|
28 // DATA TYPES |
|
29 |
|
30 // FUNCTION PROTOTYPES |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 |
|
37 /** |
|
38 * Wait Dialog without key event handling |
|
39 * @since 2.8 |
|
40 */ |
|
41 class CCamWaitDialog : public CAknWaitDialog |
|
42 { |
|
43 // ======================================================= |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * A class constructor |
|
48 * |
|
49 * @param aSelfPtr Pointer to itself. The pointer needs to be |
|
50 * valid when the dialog is dismissed and must not |
|
51 * be on the stack. |
|
52 * @param aVisibilityDelayOff If set ETrue the dialog will be visible |
|
53 * immediality. Use only when the length of |
|
54 * the process is ALWAYS over 1.5 seconds. |
|
55 */ |
|
56 CCamWaitDialog( CEikDialog** aSelfPtr, TBool aVisibilityDelayOff ); |
|
57 |
|
58 /** |
|
59 * Destructor |
|
60 */ |
|
61 ~CCamWaitDialog(); |
|
62 |
|
63 public: // From base class |
|
64 |
|
65 /** |
|
66 * From CAknWaitDialog |
|
67 * @since 2.8 |
|
68 * @param aKeyEvent the key event |
|
69 * @param aType the type of the event |
|
70 * @return TKeyResponse key event was used by this control or not |
|
71 */ |
|
72 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
73 TEventCode aType ); |
|
74 |
|
75 public: // New methods |
|
76 |
|
77 /** |
|
78 * Set keyevents, which the component should not consume. |
|
79 * @since 2.8 |
|
80 * @param aNonConsumedKeys |
|
81 */ |
|
82 void SetNonConsumedKeysL( const RArray<TInt>& aNonConsumedKeys ); |
|
83 |
|
84 // ======================================================= |
|
85 private: // Data |
|
86 |
|
87 RArray<TInt> iNonConsumedKeys; |
|
88 |
|
89 // ======================================================= |
|
90 }; |
|
91 #endif |
|
92 // end of file |