networkconfig.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * wpa_gui - NetworkConfig class
  3. * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef NETWORKCONFIG_H
  9. #define NETWORKCONFIG_H
  10. #include <QObject>
  11. #include "ui_networkconfig.h"
  12. class WpaGui;
  13. class NetworkConfig : public QDialog, public Ui::NetworkConfig
  14. {
  15. Q_OBJECT
  16. public:
  17. NetworkConfig(QWidget *parent = 0, const char *name = 0,
  18. bool modal = false, Qt::WindowFlags fl = 0);
  19. ~NetworkConfig();
  20. virtual void paramsFromScanResults(QTreeWidgetItem *sel);
  21. virtual void setWpaGui(WpaGui *_wpagui);
  22. virtual int setNetworkParam(int id, const char *field,
  23. const char *value, bool quote);
  24. virtual void paramsFromConfig(int network_id);
  25. virtual void newNetwork();
  26. public slots:
  27. virtual void authChanged(int sel);
  28. virtual void addNetwork();
  29. virtual void encrChanged(const QString &sel);
  30. virtual void writeWepKey(int network_id, QLineEdit *edit, int id);
  31. virtual void removeNetwork();
  32. virtual void eapChanged(int sel);
  33. virtual void useWps();
  34. protected slots:
  35. virtual void languageChange();
  36. private:
  37. WpaGui *wpagui;
  38. int edit_network_id;
  39. bool new_network;
  40. QString bssid;
  41. virtual void wepEnabled(bool enabled);
  42. virtual void getEapCapa();
  43. };
  44. #endif /* NETWORKCONFIG_H */