31
|
1 |
/*
|
53
|
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:
|
60
|
15 |
* WLAN Wizard API.
|
53
|
16 |
*/
|
31
|
17 |
|
|
18 |
#ifndef WLANWIZARD_H
|
|
19 |
#define WLANWIZARD_H
|
|
20 |
|
|
21 |
// System includes
|
60
|
22 |
|
31
|
23 |
#include <QObject>
|
60
|
24 |
#include <QString>
|
|
25 |
#include <QByteArray>
|
31
|
26 |
|
|
27 |
// User includes
|
|
28 |
|
|
29 |
// Forward declarations
|
60
|
30 |
|
31
|
31 |
class HbMainWindow;
|
|
32 |
class WlanWizardPrivate;
|
39
|
33 |
class TestWlanWizardContext;
|
31
|
34 |
|
|
35 |
// External data types
|
|
36 |
|
|
37 |
// Constants
|
60
|
38 |
|
31
|
39 |
#ifdef BUILD_WLAN_WIZARD_DLL
|
|
40 |
#define WLAN_WIZARD_EXPORT Q_DECL_EXPORT
|
|
41 |
#else
|
|
42 |
#define WLAN_WIZARD_EXPORT Q_DECL_IMPORT
|
|
43 |
#endif
|
|
44 |
|
|
45 |
/*!
|
|
46 |
@addtogroup group_wlan_wizard_api
|
|
47 |
@{
|
|
48 |
*/
|
|
49 |
class WLAN_WIZARD_EXPORT WlanWizard: public QObject
|
|
50 |
{
|
|
51 |
Q_OBJECT
|
|
52 |
|
|
53 |
public:
|
53
|
54 |
explicit WlanWizard(HbMainWindow *mainWindow);
|
|
55 |
~WlanWizard();
|
31
|
56 |
|
|
57 |
void setParameters(
|
60
|
58 |
const QString &name,
|
|
59 |
const QByteArray &ssid,
|
31
|
60 |
int networkMode,
|
|
61 |
int securityMode,
|
|
62 |
bool usePsk,
|
|
63 |
bool wps);
|
|
64 |
|
|
65 |
signals:
|
|
66 |
void cancelled();
|
|
67 |
void finished(int iapId, bool connected);
|
|
68 |
|
|
69 |
public slots:
|
|
70 |
void show();
|
|
71 |
|
|
72 |
protected:
|
|
73 |
|
|
74 |
protected slots:
|
|
75 |
|
|
76 |
private:
|
|
77 |
Q_DISABLE_COPY(WlanWizard)
|
|
78 |
|
|
79 |
private slots:
|
|
80 |
|
|
81 |
private:
|
|
82 |
//! Pointer to private implementation
|
|
83 |
WlanWizardPrivate *d_ptr;
|
|
84 |
|
|
85 |
// Friend classes
|
|
86 |
friend class WlanWizardPrivate;
|
39
|
87 |
friend class TestWlanWizardContext;
|
31
|
88 |
};
|
|
89 |
|
|
90 |
/*! @} */
|
|
91 |
|
53
|
92 |
#endif // WLANWIZARD_H
|