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