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