-rw-r--r-- | noncore/net/opiestumbler/opiestumbler.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/net/opiestumbler/opiestumbler.cpp b/noncore/net/opiestumbler/opiestumbler.cpp index 3531162..9b0d099 100644 --- a/noncore/net/opiestumbler/opiestumbler.cpp +++ b/noncore/net/opiestumbler/opiestumbler.cpp | |||
@@ -1,64 +1,63 @@ | |||
1 | #include <cstdlib> | 1 | #include <cstdlib> |
2 | 2 | ||
3 | #include <qmenubar.h> | 3 | #include <qmenubar.h> |
4 | #include <qaction.h> | 4 | #include <qaction.h> |
5 | #include <qlistview.h> | 5 | #include <qlistview.h> |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | //#include <qapplication.h> | 7 | //#include <qapplication.h> |
8 | #include <qdatetime.h> | 8 | #include <qdatetime.h> |
9 | #include <qpopupmenu.h> | 9 | #include <qpopupmenu.h> |
10 | #include <qstatusbar.h> | 10 | #include <qstatusbar.h> |
11 | #include <qlayout.h> | 11 | #include <qlayout.h> |
12 | #include <qwhatsthis.h> | 12 | #include <qwhatsthis.h> |
13 | #include <qtimer.h> | 13 | #include <qtimer.h> |
14 | #include <qprogressbar.h> | 14 | #include <qprogressbar.h> |
15 | 15 | ||
16 | #include <qpe/resource.h> | ||
17 | #include <qpe/config.h> | 16 | #include <qpe/config.h> |
18 | //#include <qpe/global.h> | 17 | //#include <qpe/global.h> |
19 | #include <qpe/qcopenvelope_qws.h> | 18 | #include <qpe/qcopenvelope_qws.h> |
20 | #include <qpe/qpeapplication.h> | 19 | #include <qpe/qpeapplication.h> |
21 | 20 | ||
22 | #include <opie2/odebug.h> | 21 | #include <opie2/odebug.h> |
23 | #include <opie2/ostation.h> | 22 | #include <opie2/ostation.h> |
24 | #include <opie2/omanufacturerdb.h> | 23 | #include <opie2/omanufacturerdb.h> |
25 | #include <opie2/onetwork.h> | 24 | #include <opie2/onetwork.h> |
26 | #include <opie2/oprocess.h> | 25 | #include <opie2/oprocess.h> |
27 | 26 | ||
28 | #include "stumbler.h" | 27 | #include "stumbler.h" |
29 | #include "opiestumbler.h" | 28 | #include "opiestumbler.h" |
30 | #include "stumblersettings.h" | 29 | #include "stumblersettings.h" |
31 | #include "stationviewitem.h" | 30 | #include "stationviewitem.h" |
32 | #include "stumblerstation.h" | 31 | #include "stumblerstation.h" |
33 | #include "stationinfo.h" | 32 | #include "stationinfo.h" |
34 | 33 | ||
35 | 34 | ||
36 | using Opie::Net::OWirelessNetworkInterface; | 35 | using Opie::Net::OWirelessNetworkInterface; |
37 | using Opie::Net::ONetwork; | 36 | using Opie::Net::ONetwork; |
38 | 37 | ||
39 | 38 | ||
40 | QString OpieStumbler::appCaption() { | 39 | QString OpieStumbler::appCaption() { |
41 | return QObject::tr("OpieStumbler"); | 40 | return QObject::tr("OpieStumbler"); |
42 | } | 41 | } |
43 | 42 | ||
44 | OpieStumbler::OpieStumbler(QWidget *parent, const char *name, WFlags) | 43 | OpieStumbler::OpieStumbler(QWidget *parent, const char *name, WFlags) |
45 | :QMainWindow(parent, name, WStyle_ContextHelp), | 44 | :QMainWindow(parent, name, WStyle_ContextHelp), |
46 | m_listCurrent(new QListView(this)), m_listHistory(new QListView(this)), | 45 | m_listCurrent(new QListView(this)), m_listHistory(new QListView(this)), |
47 | m_stationsCurrent(new QList<Opie::Net::OStation>), | 46 | m_stationsCurrent(new QList<Opie::Net::OStation>), |
48 | m_popupCurrent(new QPopupMenu(this)), | 47 | m_popupCurrent(new QPopupMenu(this)), |
49 | m_popupHistory(new QPopupMenu(this)), | 48 | m_popupHistory(new QPopupMenu(this)), |
50 | m_db(NULL), m_proc(NULL) | 49 | m_db(NULL), m_proc(NULL) |
51 | { | 50 | { |
52 | 51 | ||
53 | if ( QCopChannel::isRegistered("QPE/OpieStumbler") ) { | 52 | if ( QCopChannel::isRegistered("QPE/OpieStumbler") ) { |
54 | QCopEnvelope e("QPE/OpieStumbler", "show()"); | 53 | QCopEnvelope e("QPE/OpieStumbler", "show()"); |
55 | exit(EXIT_SUCCESS); | 54 | exit(EXIT_SUCCESS); |
56 | } | 55 | } |
57 | 56 | ||
58 | QGridLayout *grid = new QGridLayout( this, 1, 1, 3, 0, "grid"); | 57 | QGridLayout *grid = new QGridLayout( this, 1, 1, 3, 0, "grid"); |
59 | QVBoxLayout *lay = new QVBoxLayout( NULL, 0, 5, "lay" ); | 58 | QVBoxLayout *lay = new QVBoxLayout( NULL, 0, 5, "lay" ); |
60 | QSpacerItem *spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed ); | 59 | QSpacerItem *spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed ); |
61 | lay->addItem(spacer); | 60 | lay->addItem(spacer); |
62 | lay->addWidget(m_listCurrent); | 61 | lay->addWidget(m_listCurrent); |
63 | lay->addWidget(m_listHistory); | 62 | lay->addWidget(m_listHistory); |
64 | grid->addLayout(lay, 0, 0); | 63 | grid->addLayout(lay, 0, 0); |