equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * Test application for wizards. |
15 * Test application for wizards. |
16 * |
16 */ |
17 */ |
|
18 |
17 |
19 #include <qgraphicswidget> |
18 #include <qgraphicswidget> |
20 #include <hbpushbutton.h> |
19 #include <hbpushbutton.h> |
21 #include <hbdocumentloader.h> |
20 #include <hbdocumentloader.h> |
22 #include <hbcombobox.h> |
21 #include <hbcombobox.h> |
55 Q_ASSERT_X(mNetworkMode != 0, "TestEapWizard", "networkMode not found"); |
54 Q_ASSERT_X(mNetworkMode != 0, "TestEapWizard", "networkMode not found"); |
56 |
55 |
57 mSecurityMode = qobject_cast<HbComboBox *> (loader.findWidget("securityMode")); |
56 mSecurityMode = qobject_cast<HbComboBox *> (loader.findWidget("securityMode")); |
58 Q_ASSERT_X(mSecurityMode != 0, "TestEapWizard", "securityMode not found"); |
57 Q_ASSERT_X(mSecurityMode != 0, "TestEapWizard", "securityMode not found"); |
59 |
58 |
60 mHidden = qobject_cast<HbCheckBox *> (loader.findWidget("isHidden")); |
|
61 Q_ASSERT_X(mHidden != 0, "TestEapWizard", "isHidden not found"); |
|
62 |
|
63 mUseWpaPsk = qobject_cast<HbCheckBox *> (loader.findWidget("useWpaPsk")); |
59 mUseWpaPsk = qobject_cast<HbCheckBox *> (loader.findWidget("useWpaPsk")); |
64 Q_ASSERT_X(mUseWpaPsk != 0, "TestEapWizard", "useWpaPsk not found"); |
60 Q_ASSERT_X(mUseWpaPsk != 0, "TestEapWizard", "useWpaPsk not found"); |
65 |
61 |
66 mUseWps = qobject_cast<HbCheckBox *> (loader.findWidget("useWps")); |
62 mUseWps = qobject_cast<HbCheckBox *> (loader.findWidget("useWps")); |
67 Q_ASSERT_X(mUseConf != 0, "TestEapWizard", "useWps not found"); |
63 Q_ASSERT_X(mUseConf != 0, "TestEapWizard", "useWps not found"); |
92 mWizard->setParameters( |
88 mWizard->setParameters( |
93 mSsid->text(), |
89 mSsid->text(), |
94 mNetworkMode->currentIndex(), |
90 mNetworkMode->currentIndex(), |
95 1 << mSecurityMode->currentIndex(), |
91 1 << mSecurityMode->currentIndex(), |
96 mUseWpaPsk->isChecked(), |
92 mUseWpaPsk->isChecked(), |
97 mHidden->isChecked(), |
|
98 mUseWps->isChecked()); |
93 mUseWps->isChecked()); |
99 } |
94 } |
100 |
95 |
101 mWizard->show(); |
96 mWizard->show(); |
102 } |
97 } |
125 { |
120 { |
126 qDebug("FirstView::cancelled()"); |
121 qDebug("FirstView::cancelled()"); |
127 mStatus->setPlainText("Cancelled"); |
122 mStatus->setPlainText("Cancelled"); |
128 deleteWizard(); |
123 deleteWizard(); |
129 } |
124 } |
130 |
|