summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/wellenreiter.cpp
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/wellenreiter.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index def3131..9364a75 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -11,21 +11,36 @@
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 "wellenreiter.h" 16#include "wellenreiter.h"
17#include "scanlistitem.h"
18
19#include <qpushbutton.h>
17 20
18Wellenreiter::Wellenreiter( QWidget* parent, const char* name, WFlags fl ) 21Wellenreiter::Wellenreiter( QWidget* parent, const char* name, WFlags fl )
19 : WellenreiterBase( parent, name, fl ) 22 : WellenreiterBase( parent, name, fl )
20{ 23{
24
25 connect( button, SIGNAL( clicked() ), this, SLOT( buttonClicked() ) );
26
21} 27}
22 28
23Wellenreiter::~Wellenreiter() 29Wellenreiter::~Wellenreiter()
24{ 30{
25 // no need to delete child widgets, Qt does it all for us 31 // no need to delete child widgets, Qt does it all for us
26} 32}
27 33
28void Wellenreiter::theButton() 34void Wellenreiter::buttonClicked()
29{ 35{
30 36
37 // FIXME: communicate with daemon and set button text according to state
38
39 button->setText( "Stop Scanning" );
40
41 // add some icons, so that we can see if this works
42
43 new MScanListItem( netview, "managed", "MyNet", "04:00:20:EF:A6:43", true, 6, 80 );
44 new MScanListItem( netview, "adhoc", "YourNet", "40:03:A3:E7:56:22", false, 11, 30 );
45
31} 46}