|
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 * Declares wait dialog that doesn't consume key events. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef _XNWAITDIALOG_H |
|
21 #define _XNWAITDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknWaitDialog.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 |
|
39 /** |
|
40 * Wait Dialog without key event handling |
|
41 * |
|
42 * @ingroup group_xnlayoutengine |
|
43 * @lib xn3layoutengine.lib |
|
44 * @since S60 5.0 |
|
45 */ |
|
46 NONSHARABLE_CLASS( CXnWaitDialog ) : public CAknWaitDialog |
|
47 { |
|
48 |
|
49 public: |
|
50 // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Class constructor |
|
54 * |
|
55 * @param aSelfPtr Pointer to itself. The pointer needs to be |
|
56 * valid when the dialog is dismissed and must not |
|
57 * be on the stack. |
|
58 * @param aVisibilityDelayOff If set ETrue the dialog will be visible |
|
59 * immediality. Use only when the length of |
|
60 * the process is ALWAYS over 1.5 seconds. |
|
61 */ |
|
62 CXnWaitDialog( CEikDialog** aSelfPtr, TBool aVisibilityDelayOff ); |
|
63 |
|
64 /** |
|
65 * Destructor |
|
66 */ |
|
67 ~CXnWaitDialog(); |
|
68 |
|
69 public: // From CAknWaitDialog |
|
70 |
|
71 /** |
|
72 * From CAknWaitDialog |
|
73 * @since S60 5.2 |
|
74 * @param aKeyEvent the key event |
|
75 * @param aType the type of the event |
|
76 * @return TKeyResponse key event was used by this control or not |
|
77 */ |
|
78 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
79 TEventCode aType ); |
|
80 }; |
|
81 #endif // _XNWAITDIALOG_H |
|
82 |