summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 02a6f76..693f20d 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -42,11 +42,11 @@ Wellenreiter::Wellenreiter( QWidget* parent, const char* name, WFlags fl )
42 // setup socket for daemon communication and start poller 42 // setup socket for daemon communication and start poller
43 // 43 //
44 44
45 daemon_fd = commsock( DAEMONADDR, DAEMONPORT ); 45 daemon_fd = commsock( GUIADDR, GUIPORT );
46 if ( daemon_fd == -1 ) 46 if ( daemon_fd == -1 )
47 qDebug( "D'oh! Could not get file descriptor for daemon socket." ); 47 qDebug( "D'oh! Could not get file descriptor for daemon-->gui communication socket." );
48 else 48 //else
49 startTimer( 700 ); 49 //startTimer( 700 );
50 50
51} 51}
52 52
@@ -77,11 +77,11 @@ typedef struct {
77} wl_network_t; 77} wl_network_t;
78*/ 78*/
79 79
80 if ( result == 1 ) /* new network found */ 80 if ( result == NETFOUND ) /* new network found */
81 { 81 {
82 qDebug( "Sniffer said: new network found." ); 82 qDebug( "Sniffer said: new network found." );
83 wl_network_t n; 83 wl_network_t n;
84 get_network_found( &n, (const char*) &buffer ); 84 get_network_found( &n, (char*) &buffer );
85 n.bssid[n.ssid_len] = "\0"; 85 n.bssid[n.ssid_len] = "\0";
86 86
87 QString type; 87 QString type;
@@ -121,7 +121,7 @@ bool Wellenreiter::hasMessage()
121 121
122void Wellenreiter::timerEvent( QTimerEvent* e ) 122void Wellenreiter::timerEvent( QTimerEvent* e )
123{ 123{
124 qDebug( "checking for message..." ); 124 //qDebug( "checking for message..." );
125 125
126 if ( hasMessage() ) 126 if ( hasMessage() )
127 { 127 {
@@ -129,7 +129,7 @@ void Wellenreiter::timerEvent( QTimerEvent* e )
129 } 129 }
130 else 130 else
131 { 131 {
132 qDebug( "no message :(" ); 132 //qDebug( "no message :(" );
133 } 133 }
134} 134}
135 135
@@ -166,7 +166,11 @@ void Wellenreiter::buttonClicked()
166 166
167 // add some icons, so that we can see if this works 167 // add some icons, so that we can see if this works
168 168
169 addNewItem( "managed", "MyNet", "04:00:20:EF:A6:43", true, 6, 80 ); 169 addNewItem( "managed", "DummyNet", "04:00:20:EF:A6:43", true, 6, 80 );
170 addNewItem( "adhoc", "YourNet", "40:03:A3:E7:56:22", false, 11, 30 ); 170 addNewItem( "adhoc", "DummyNet", "40:03:A3:E7:56:22", false, 11, 30 );
171
172 QString command ("98");
173
174 sendcomm( DAEMONADDR, DAEMONPORT, (const char*) command );
171 175
172} 176}