|
1 /* |
|
2 * Copyright (c) 2009-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 Sniffer main window. |
|
16 */ |
|
17 |
|
18 #ifndef WLANSNIFFERMAINWINDOW_H |
|
19 #define WLANSNIFFERMAINWINDOW_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QObject> |
|
24 #include <QString> |
|
25 #include <HbMainWindow> |
|
26 #include <QSharedPointer> |
|
27 |
|
28 // User includes |
|
29 |
|
30 #include "wlansniffer.h" |
|
31 |
|
32 // Forward declarations |
|
33 |
|
34 class WlanWizard; |
|
35 class WlanSnifferListView; |
|
36 class WlanQtUtilsAp; |
|
37 class WlanSnifferEngine; |
|
38 |
|
39 // External data types |
|
40 |
|
41 // Constants |
|
42 |
|
43 // Class declaration |
|
44 |
|
45 class WlanSnifferMainWindow : public HbMainWindow |
|
46 { |
|
47 Q_OBJECT |
|
48 |
|
49 public: |
|
50 |
|
51 // Data types |
|
52 |
|
53 explicit WlanSnifferMainWindow(WlanSnifferEngine *engine); |
|
54 |
|
55 ~WlanSnifferMainWindow(); |
|
56 |
|
57 signals: |
|
58 |
|
59 public slots: |
|
60 |
|
61 void toListView(const QString &title); |
|
62 |
|
63 protected: |
|
64 |
|
65 protected slots: |
|
66 |
|
67 private: |
|
68 |
|
69 Q_DISABLE_COPY(WlanSnifferMainWindow) |
|
70 |
|
71 void addListView(); |
|
72 |
|
73 private slots: |
|
74 |
|
75 void startWlanWizard(const WlanQtUtilsAp *ap); |
|
76 |
|
77 void handleWlanWizardComplete(int iapId, bool connected); |
|
78 |
|
79 void handleWlanWizardCancelled(); |
|
80 |
|
81 private: // data |
|
82 |
|
83 // Owned data |
|
84 |
|
85 QSharedPointer<WlanWizard> mWizard; //!< WLAN Wizard object |
|
86 WlanSnifferListView *mListView; //!< List view object |
|
87 |
|
88 // Not owned data |
|
89 |
|
90 WlanSnifferEngine *mEngine; //!< WLAN Sniffer engine |
|
91 |
|
92 // Friend classes |
|
93 }; |
|
94 |
|
95 #endif // WLANSNIFFERMAINWINDOW_H |