|
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: Implementation of class CWiFiProtConfirmationNoteDlg. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 //system includes |
|
21 #include <uikon/eiksrvui.h> |
|
22 |
|
23 //user includes |
|
24 #include "wifiprotconfirmationnotedlg.h" |
|
25 #include "wifiprotdlgsplugin.h" |
|
26 #include "wifiprotplugin.hrh" |
|
27 |
|
28 // ========================== MEMBER FUNCTIONS ============================== |
|
29 // |
|
30 // -------------------------------------------------------------------------- |
|
31 // CWiFiProtConfirmationNoteDlg::CWiFiProtConfirmationNoteDlg |
|
32 // -------------------------------------------------------------------------- |
|
33 // |
|
34 CWiFiProtConfirmationNoteDlg::CWiFiProtConfirmationNoteDlg( |
|
35 TRequestStatus& aStatus ): |
|
36 iRequestStatus( aStatus ) |
|
37 { |
|
38 iRequestStatus = KRequestPending; |
|
39 } |
|
40 |
|
41 |
|
42 // -------------------------------------------------------------------------- |
|
43 // CWiFiProtConfirmationNoteDlg::~CWiFiProtConfirmationNoteDlg |
|
44 // -------------------------------------------------------------------------- |
|
45 // |
|
46 CWiFiProtConfirmationNoteDlg::~CWiFiProtConfirmationNoteDlg() |
|
47 { |
|
48 STATIC_CAST( CEikServAppUi*, |
|
49 CCoeEnv::Static()->AppUi() )->SuppressAppSwitching( EFalse ); |
|
50 } |
|
51 |
|
52 // -------------------------------------------------------------------------- |
|
53 // CWiFiProtInitiateEasySetupDlg::ProcessCommandL() |
|
54 // -------------------------------------------------------------------------- |
|
55 // |
|
56 void CWiFiProtConfirmationNoteDlg::ProcessCommandL( TInt aCommandId ) |
|
57 { |
|
58 switch ( aCommandId ) |
|
59 { |
|
60 case EWiFiSoftkeyContinue: //should use callback but it doesn't work |
|
61 { |
|
62 TryExitL(aCommandId); |
|
63 break; |
|
64 } |
|
65 default: |
|
66 { |
|
67 CAknQueryDialog::ProcessCommandL( aCommandId ); |
|
68 break; |
|
69 } |
|
70 } |
|
71 } |
|
72 |
|
73 // -------------------------------------------------------------------------- |
|
74 // CWiFiProtConfirmationNoteDlg::OkToExitL |
|
75 // -------------------------------------------------------------------------- |
|
76 // |
|
77 TBool CWiFiProtConfirmationNoteDlg::OkToExitL( TInt aButtonId ) |
|
78 { |
|
79 TInt status = KErrCancel; |
|
80 if (aButtonId == EAknSoftkeyOk |
|
81 || aButtonId == EAknSoftkeyYes |
|
82 || aButtonId == EAknSoftkeyDone |
|
83 || aButtonId == EWiFiSoftkeyContinue ) |
|
84 { |
|
85 status = KErrNone; |
|
86 } |
|
87 else if ( aButtonId == EAknSoftkeyNo ) |
|
88 { |
|
89 status = KErrCancel; // no selected |
|
90 } |
|
91 else |
|
92 { |
|
93 status = KErrAbort; // end key pressed |
|
94 } |
|
95 |
|
96 TRequestStatus* pS = &iRequestStatus; |
|
97 User::RequestComplete( pS, status ); |
|
98 return ETrue; |
|
99 } |
|
100 |
|
101 |
|
102 // -------------------------------------------------------------------------- |
|
103 // CWiFiProtConfirmationNoteDlg::PreLayoutDynInitL() |
|
104 // -------------------------------------------------------------------------- |
|
105 // |
|
106 void CWiFiProtConfirmationNoteDlg::PreLayoutDynInitL() |
|
107 { |
|
108 CAknQueryDialog::PreLayoutDynInitL(); |
|
109 STATIC_CAST( CEikServAppUi*, |
|
110 CCoeEnv::Static()->AppUi() )->SuppressAppSwitching( ETrue ); |
|
111 } |
|
112 |
|
113 |
|
114 // End of File |