equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 #ifndef WLANSNIFFER_H |
|
19 #define WLANSNIFFER_H |
|
20 |
|
21 #include <HbApplication> |
|
22 |
|
23 class QTranslator; |
|
24 class WlanSnifferMainWindow; |
|
25 class WlanQtUtils; |
|
26 |
|
27 class WlanSniffer : public HbApplication |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 WlanSniffer(int argc, char* argv[]); |
|
33 virtual ~WlanSniffer(); |
|
34 |
|
35 /** |
|
36 * This function (from QObject) handles timers. Initiates a new WLAN scan. |
|
37 * |
|
38 * @param Unused. |
|
39 */ |
|
40 void timerEvent(QTimerEvent *event); |
|
41 |
|
42 WlanQtUtils *wlanQtUtils() const; |
|
43 |
|
44 private slots: |
|
45 void exitApplication(); |
|
46 |
|
47 private: |
|
48 QTranslator* mTranslator; |
|
49 WlanQtUtils *mWlanQtUtils; |
|
50 // Todo: why does the example use QSharedPointer for these? |
|
51 WlanSnifferMainWindow *mMainWindow; // owned |
|
52 int mScanTimerId; |
|
53 }; |
|
54 |
|
55 #endif |
|
56 |
|
57 // End of File |