summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/wextensions.h
blob: a89e33a7e0057a607b7a8528186a0a717d566647 (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
#ifndef WEXTENSIONS_H
#define WEXTENSIONS_H

#include <qstring.h>

#include <netinet/ip.h>
#include <linux/wireless.h>

class WExtensions {

public:
  WExtensions(QString interfaceName);
  QString getInterfaceName(){return interface;};
  bool doesHaveWirelessExtensions(){return hasWirelessExtensions;};
  QString station();
  QString essid();
  QString mode();
  double frequency();
  int channel();
  double rate();
  QString ap();
  bool stats( int &signal, int &noise, int &quality);

private:
  bool hasWirelessExtensions;
  QString interface;
  
  // Used in we calls
  struct iwreq iwr;
  int fd;

};

#endif