|
1 /* |
|
2 * Copyright (c) 2001-2009 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 the License "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: Declaration of class CWiFiProtInitiateEasySetupDlg. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_WIFIPROTINITIATEEASYSETUPDLG_H |
|
20 #define C_WIFIPROTINITIATEEASYSETUPDLG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknmessagequerydialog.h> |
|
24 |
|
25 // CLASS DECLARATIONS |
|
26 /** |
|
27 * Class implements a query dialog. |
|
28 */ |
|
29 NONSHARABLE_CLASS( CWiFiProtInitiateEasySetupDlg ) : |
|
30 public CAknMessageQueryDialog |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Constructor the CWiFiProtInitiateEasySetupDlg class |
|
35 * @param aStatus Request status of the Active Runner |
|
36 */ |
|
37 CWiFiProtInitiateEasySetupDlg( TRequestStatus& aStatus ); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 virtual ~CWiFiProtInitiateEasySetupDlg(); |
|
43 |
|
44 /** |
|
45 * From @c MEikCommandObserver. |
|
46 */ |
|
47 |
|
48 /** |
|
49 * Tries to exit the dialog when the specified button is pressed, if this |
|
50 * button should exit the dialog. |
|
51 * |
|
52 * See @c OkToExitL() to determine which buttons can exit the dialog. |
|
53 * |
|
54 * This will fail if user exit is prevented by the |
|
55 * @c EEikDialogFlagNoUserExit flag. If the @c EEikDialogFlagNotifyEsc flag |
|
56 * is not set and the dialog has been cancelled it immediately deletes |
|
57 * itself. |
|
58 * |
|
59 * @param aButtonId The id of the pressed button. |
|
60 */ |
|
61 void TryExitL( TInt aButtonId ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Exit function of CWiFiProtInitiateEasySetupDlg |
|
67 * @param aButtonId |
|
68 * @return TBool exit or no |
|
69 */ |
|
70 virtual TBool OkToExitL( TInt aButtonId ); |
|
71 |
|
72 /** |
|
73 * PreLayoutDynInitL |
|
74 * @param - |
|
75 */ |
|
76 virtual void PreLayoutDynInitL(); |
|
77 |
|
78 /** |
|
79 * From @c CCoeControl. |
|
80 * |
|
81 * Handles key events. |
|
82 * |
|
83 * If a control wishes to process key events, it should implement this |
|
84 * function. The implementation must ensure that the function returns |
|
85 * @c EKeyWasNotConsumed if it does not do anything in response to a |
|
86 * key event, otherwise, other controls or dialogs may be prevented |
|
87 * from receiving the key event. If it is able to process the event it |
|
88 * should return @c EKeyWasConsumed. |
|
89 * |
|
90 * @param aKeyEvent The key event. |
|
91 * @return Indicates whether or not the key event was used |
|
92 * by this control. |
|
93 */ |
|
94 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode ); |
|
95 |
|
96 private: |
|
97 // flag to indicate that the button group was changed |
|
98 // this is needed for changing softkey when selecting link |
|
99 TBool iButtonGroupPreviouslyChanged; |
|
100 // Client's request status, dialog completes it when it finished |
|
101 TRequestStatus& iRequestStatus; |
|
102 }; |
|
103 |
|
104 #endif // C_WIFIPROTINITIATEEASYSETUPDLG_H |
|
105 |
|
106 // End of File |