00001 #ifndef WEXTENSIONS_H 00002 #define WEXTENSIONS_H 00003 00004 #include <qstring.h> 00005 00006 #include <netinet/ip.h> 00007 #include <linux/wireless.h> 00008 00009 class WExtensions { 00010 00011 public: 00012 WExtensions(QString interfaceName); 00013 QString getInterfaceName(){return interface;}; 00014 bool doesHaveWirelessExtensions(){return hasWirelessExtensions;}; 00015 QString station(); 00016 QString essid(); 00017 QString mode(); 00018 double frequency(); 00019 int channel(); 00020 double rate(); 00021 QString ap(); 00022 bool stats( int &signal, int &noise, int &quality); 00023 00024 private: 00025 bool hasWirelessExtensions; 00026 QString interface; 00027 00028 // Used in we calls 00029 struct iwreq iwr; 00030 int fd; 00031 00032 }; 00033 00034 #endif
1.4.2