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