summaryrefslogtreecommitdiffstats
path: root/wifi/kwireless/linuxwirelesswidget.h
blob: 0d4513ca91066bbfbff5190b0b763007f52bdbcb (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
/*
  $ Author: Mirko Boehm $
  $ License: This code is licensed under the LGPL $
  $ Copyright: (C) 1996-2003, Mirko Boehm $
  $ Contact: Mirko Boehm <mirko@kde.org>
         http://www.kde.org
         http://www.hackerbuero.org $
*/

#ifndef LINUXWIRELESSWIDGET_H
#define LINUXWIRELESSWIDGET_H

#include "kwirelesswidget.h"

class LinuxWireLessWidget : public KWireLessWidget
{
    Q_OBJECT
  TQ_OBJECT
public:
    LinuxWireLessWidget(TQWidget *tqparent=0, const char* name=0);
    ~LinuxWireLessWidget();
protected:
    /** poll() is supposed to read the information from
       /proc/net/wireless (Linux) and put it into the data members. */
    void poll();
    static int socketFD; // the socket file descriptor to talk to the
			 // driver
    static TQStringList deviceNames;
    static int devEnumHandler(int	skfd,
                              char *	ifname,
                              char *	args[],
                              int	count);
    /** Store previously found number of wireless devices. */
    int m_number;
};

#endif