-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 24 |
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 | |||
@@ -43,9 +43,9 @@ Wellenreiter::Wellenreiter( QWidget* parent, const char* name, WFlags fl ) | |||
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 | } |
@@ -78,9 +78,9 @@ typedef struct { | |||
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 | ||
@@ -122,5 +122,5 @@ bool Wellenreiter::hasMessage() | |||
122 | void Wellenreiter::timerEvent( QTimerEvent* e ) | 122 | void Wellenreiter::timerEvent( QTimerEvent* e ) |
123 | { | 123 | { |
124 | qDebug( "checking for message..." ); | 124 | //qDebug( "checking for message..." ); |
125 | 125 | ||
126 | if ( hasMessage() ) | 126 | if ( hasMessage() ) |
@@ -130,5 +130,5 @@ void Wellenreiter::timerEvent( QTimerEvent* e ) | |||
130 | else | 130 | else |
131 | { | 131 | { |
132 | qDebug( "no message :(" ); | 132 | //qDebug( "no message :(" ); |
133 | } | 133 | } |
134 | } | 134 | } |
@@ -167,6 +167,10 @@ void Wellenreiter::buttonClicked() | |||
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 | } |