peers.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 context_menu(const QPoint &pos);
  30. virtual void enter_pin();
  31. virtual void ctx_refresh();
  32. protected slots:
  33. virtual void languageChange();
  34. private:
  35. void update_peers();
  36. WpaGui *wpagui;
  37. QStandardItemModel model;
  38. QIcon *default_icon;
  39. QStandardItem *ctx_item;
  40. };
  41. #endif /* PEERS_H */