Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlistitem.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlistitem.cpp b/noncore/net/wellenreiter/gui/scanlistitem.cpp index 398b42d..1e2a52e 100644 --- a/noncore/net/wellenreiter/gui/scanlistitem.cpp +++ b/noncore/net/wellenreiter/gui/scanlistitem.cpp | |||
@@ -1,44 +1,49 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "scanlistitem.h" | 16 | #include "scanlistitem.h" |
17 | #include <qpe/resource.h> | ||
18 | #include <assert.h> | 17 | #include <assert.h> |
19 | #include <qpixmap.h> | 18 | #include <qpixmap.h> |
20 | 19 | ||
20 | #ifdef QWS | ||
21 | #include <qpe/resource.h> | ||
22 | #else | ||
23 | #include "resource.h" | ||
24 | #endif | ||
25 | |||
21 | const int col_type = 0; | 26 | const int col_type = 0; |
22 | const int col_essid = 0; | 27 | const int col_essid = 0; |
23 | const int col_sig = 1; | 28 | const int col_sig = 1; |
24 | const int col_ap = 2; | 29 | const int col_ap = 2; |
25 | const int col_channel = 3; | 30 | const int col_channel = 3; |
26 | const int col_wep = 4; | 31 | const int col_wep = 4; |
27 | const int col_traffic = 5; | 32 | const int col_traffic = 5; |
28 | 33 | ||
29 | MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr, | 34 | MScanListItem::MScanListItem( QListView* parent, QString type, QString essid, QString macaddr, |
30 | bool wep, int channel, int signal ) | 35 | bool wep, int channel, int signal ) |
31 | :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) | 36 | :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) |
32 | { | 37 | { |
33 | qDebug( "creating scanlist item" ); | 38 | qDebug( "creating scanlist item" ); |
34 | decorateItem( type, essid, macaddr, wep, channel, signal ); | 39 | decorateItem( type, essid, macaddr, wep, channel, signal ); |
35 | } | 40 | } |
36 | 41 | ||
37 | MScanListItem::MScanListItem( QListViewItem* parent, QString type, QString essid, QString macaddr, | 42 | MScanListItem::MScanListItem( QListViewItem* parent, QString type, QString essid, QString macaddr, |
38 | bool wep, int channel, int signal ) | 43 | bool wep, int channel, int signal ) |
39 | :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) | 44 | :QListViewItem( parent, essid, QString::null, macaddr, QString::null, QString::null ) |
40 | { | 45 | { |
41 | qDebug( "creating scanlist item" ); | 46 | qDebug( "creating scanlist item" ); |
42 | decorateItem( type, essid, macaddr, wep, channel, signal ); | 47 | decorateItem( type, essid, macaddr, wep, channel, signal ); |
43 | } | 48 | } |
44 | 49 | ||