summaryrefslogtreecommitdiffstats
path: root/wifi/networkscanning.h
blob: b69652e3143e5c5c894d273a5461d419e95f7a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

/***************************************************************************
          networkscanning.h  -  header for the NetworkScanning class
                             -------------------
    begin                : Sam Apr  24 11:44:20 CEST 2005
    copyright            : (C) 2005 by Stefan Winter
    email                : swinter@kde.org
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef NETWORKSCANNING_H
#define NETWORKSCANNING_H

#include <tqwidget.h>

class TQTable;
class TQPushButton;
class Interface_wireless;

enum WEP_KEY { NONE, VALID_HEX, VALID_STRING, INVALID };

class NetworkScanning : public QWidget

{

  Q_OBJECT 

  public:
  NetworkScanning (Interface_wireless * dev, TQWidget * parent = 0, const char * name = 0 );

  protected:
  void networkScan ();
  TQTable* networks;
  Interface_wireless * device;
  TQPushButton* switchNet;

  protected slots:
  void checkSettings(int row, int);
  WEP_KEY checkWEP();
  void switchToNetwork();

};

#endif /* NETWORKSCANNING_H */