peers.h 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * wpa_gui - Peers class
  3. * Copyright (c) 2009, Atheros Communications
  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 PEERS_H
  15. #define PEERS_H
  16. #include <QObject>
  17. #include <QStandardItemModel>
  18. #include "ui_peers.h"
  19. class WpaGui;
  20. class Peers : public QDialog, public Ui::Peers
  21. {
  22. Q_OBJECT
  23. public:
  24. Peers(QWidget *parent = 0, const char *name = 0,
  25. bool modal = false, Qt::WFlags fl = 0);
  26. ~Peers();
  27. void setWpaGui(WpaGui *_wpagui);
  28. public slots:
  29. virtual void clicked(const QModelIndex &index);
  30. protected slots:
  31. virtual void languageChange();
  32. private:
  33. void update_peers();
  34. WpaGui *wpagui;
  35. QStandardItemModel model;
  36. QIcon *default_icon;
  37. };
  38. #endif /* PEERS_H */