networkconfig.h 1.5 KB

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